Files
HealthAppRepositoryB/Docs/AsBuiltArchitecture/diagrams/07-sequences.drawio
T

1020 lines
72 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<mxfile host="app.diagrams.net" version="24.7.17" compressed="false">
<diagram id="p1" name="Login and initial profile creation">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1550" pageHeight="1115" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c1" value="Login and initial profile creation" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1490" height="45" />
</mxCell>
<mxCell id="c2" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="35" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c3" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="180" />
<mxPoint as="targetPoint" x="130" y="965" />
</mxGeometry>
</mxCell>
<mxCell id="c4" value="Gateway login /&#10;access middleware" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Controllers/AuthenticationController.cs">
<mxGeometry as="geometry" x="265" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c5" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="180" />
<mxPoint as="targetPoint" x="360" y="965" />
</mxGeometry>
</mxCell>
<mxCell id="c6" value="PrototypeAccounts" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Security/PrototypeAccounts.cs">
<mxGeometry as="geometry" x="495" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c7" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="180" />
<mxPoint as="targetPoint" x="590" y="965" />
</mxGeometry>
</mxCell>
<mxCell id="c8" value="Patient/Profile" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/PatientProfileService/Application/PatientApplicationService.cs">
<mxGeometry as="geometry" x="725" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c9" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="180" />
<mxPoint as="targetPoint" x="820" y="965" />
</mxGeometry>
</mxCell>
<mxCell id="c10" value="Patient DB" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/PatientProfileService/Persistence/SqlPatientRepository.cs">
<mxGeometry as="geometry" x="955" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c11" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="180" />
<mxPoint as="targetPoint" x="1050" y="965" />
</mxGeometry>
</mxCell>
<mxCell id="c12" value="POST login: accountId + password (HTTPS)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="220" />
<mxPoint as="targetPoint" x="360" y="220" />
</mxGeometry>
</mxCell>
<mxCell id="c13" value="Verify password hash" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="285" />
<mxPoint as="targetPoint" x="590" y="285" />
</mxGeometry>
</mxCell>
<mxCell id="c14" value="Trusted account ID + role, or generic failure" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="350" />
<mxPoint as="targetPoint" x="360" y="350" />
</mxGeometry>
</mxCell>
<mxCell id="c15" value="Protect framework ticket; expiry 30 min default" style="text;html=0;fontSize=12;align=left;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry as="geometry" x="370" y="397" width="205" height="48" />
</mxCell>
<mxCell id="c16" value="200 opaque Bearer / no-store; invalid login 401" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="480" />
<mxPoint as="targetPoint" x="130" y="480" />
</mxGeometry>
</mxCell>
<mxCell id="c17" value="POST patients + Bearer, profile body" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="545" />
<mxPoint as="targetPoint" x="360" y="545" />
</mxGeometry>
</mxCell>
<mxCell id="c18" value="X-Gateway-Key + claim-derived X-Account-Id" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="610" />
<mxPoint as="targetPoint" x="820" y="610" />
</mxGeometry>
</mxCell>
<mxCell id="c19" value="Lookup account; insert profile+association in ONE row" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="675" />
<mxPoint as="targetPoint" x="1050" y="675" />
</mxGeometry>
</mxCell>
<mxCell id="c20" value="Commit or unique-index conflict / DB failure" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="740" />
<mxPoint as="targetPoint" x="820" y="740" />
</mxGeometry>
</mxCell>
<mxCell id="c21" value="201 profile + Location, or 409 duplicate" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="805" />
<mxPoint as="targetPoint" x="360" y="805" />
</mxGeometry>
</mxCell>
<mxCell id="c22" value="Forward result; GET /patients/me can recover ID" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="870" />
<mxPoint as="targetPoint" x="130" y="870" />
</mxGeometry>
</mxCell>
<mxCell id="c23" value="Creation shortcut needs Patient role, not an existing profile. Concurrent/repeated creates end with at most one association. No separate association write or distributed transaction. Invalid token 401; professional POST 403. Evidence: login, PatientAccessMiddleware, profile application/repository, PatientAuthenticationTests." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="990" width="1490" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="p2" name="Record observation with patient existence check">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1550" pageHeight="1245" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c24" value="Record observation with patient existence check" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1490" height="45" />
</mxCell>
<mxCell id="c25" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="35" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c26" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="180" />
<mxPoint as="targetPoint" x="130" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c27" value="Gateway" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Security/PatientAccessMiddleware.cs">
<mxGeometry as="geometry" x="265" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c28" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="180" />
<mxPoint as="targetPoint" x="360" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c29" value="Patient/Profile" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/PatientProfileService/Controllers/PatientController.cs">
<mxGeometry as="geometry" x="495" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c30" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="180" />
<mxPoint as="targetPoint" x="590" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c31" value="Observation" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ObservationService/Application/ObservationApplicationService.cs">
<mxGeometry as="geometry" x="725" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c32" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="180" />
<mxPoint as="targetPoint" x="820" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c33" value="Observation DB" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ObservationService/Persistence/SqlObservationRepository.cs">
<mxGeometry as="geometry" x="955" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c34" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="180" />
<mxPoint as="targetPoint" x="1050" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c35" value="POST patient observations + Bearer" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="220" />
<mxPoint as="targetPoint" x="360" y="220" />
</mxGeometry>
</mxCell>
<mxCell id="c36" value="GET by-account + X-Gateway-Key (ownership)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="285" />
<mxPoint as="targetPoint" x="590" y="285" />
</mxGeometry>
</mxCell>
<mxCell id="c37" value="Own persisted patient ID" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="350" />
<mxPoint as="targetPoint" x="360" y="350" />
</mxGeometry>
</mxCell>
<mxCell id="c38" value="Forward body + Observation incoming X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="415" />
<mxPoint as="targetPoint" x="820" y="415" />
</mxGeometry>
</mxCell>
<mxCell id="c39" value="Validate values/context; normalize timestamp" style="text;html=0;fontSize=12;align=left;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry as="geometry" x="830" y="462" width="205" height="48" />
</mxCell>
<mxCell id="c40" value="GET patient + X-Service-Key (Observation)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="545" />
<mxPoint as="targetPoint" x="360" y="545" />
</mxGeometry>
</mxCell>
<mxCell id="c41" value="GET patient + X-Gateway-Key (whitelisted callback)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="610" />
<mxPoint as="targetPoint" x="590" y="610" />
</mxGeometry>
</mxCell>
<mxCell id="c42" value="200 existing profile or 404" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="675" />
<mxPoint as="targetPoint" x="360" y="675" />
</mxGeometry>
</mxCell>
<mxCell id="c43" value="Forward existence result" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="740" />
<mxPoint as="targetPoint" x="820" y="740" />
</mxGeometry>
</mxCell>
<mxCell id="c44" value="INSERT observation with flattened context" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="805" />
<mxPoint as="targetPoint" x="1050" y="805" />
</mxGeometry>
</mxCell>
<mxCell id="c45" value="Commit saved row" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="870" />
<mxPoint as="targetPoint" x="820" y="870" />
</mxGeometry>
</mxCell>
<mxCell id="c46" value="201 observation + Location" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="935" />
<mxPoint as="targetPoint" x="360" y="935" />
</mxGeometry>
</mxCell>
<mxCell id="c47" value="201 stored observation" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1000" />
<mxPoint as="targetPoint" x="130" y="1000" />
</mxGeometry>
</mxCell>
<mxCell id="c48" value="Only save after valid input and successful existence lookup. Patient absence 404; lookup failure 502/504 prevents save. Owner mismatch produces empty 404 before forwarding. Two distinct Patient/Profile reads are possible; no cross-DB foreign key or transaction. Source: ObservationApplicationService and access middleware." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="1120" width="1490" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="p3" name="Observation-ID read, patch or delete ownership">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1550" pageHeight="1245" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c49" value="Observation-ID read, patch or delete ownership" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1490" height="45" />
</mxCell>
<mxCell id="c50" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="35" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c51" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="180" />
<mxPoint as="targetPoint" x="130" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c52" value="Gateway" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Security/PatientAccessMiddleware.cs">
<mxGeometry as="geometry" x="265" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c53" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="180" />
<mxPoint as="targetPoint" x="360" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c54" value="Patient/Profile" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/PatientProfileService/Controllers/PatientController.cs">
<mxGeometry as="geometry" x="495" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c55" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="180" />
<mxPoint as="targetPoint" x="590" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c56" value="Observation" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ObservationService/Controllers/ObservationController.cs">
<mxGeometry as="geometry" x="725" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c57" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="180" />
<mxPoint as="targetPoint" x="820" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c58" value="Observation DB" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ObservationService/Persistence/SqlObservationRepository.cs">
<mxGeometry as="geometry" x="955" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c59" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="180" />
<mxPoint as="targetPoint" x="1050" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c60" value="GET/PATCH/PUT/DELETE observation/{id} + Bearer" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="220" />
<mxPoint as="targetPoint" x="360" y="220" />
</mxGeometry>
</mxCell>
<mxCell id="c61" value="Patient caller: GET by-account (professional uses assignments)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="285" />
<mxPoint as="targetPoint" x="590" y="285" />
</mxGeometry>
</mxCell>
<mxCell id="c62" value="Associated patient ID" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="350" />
<mxPoint as="targetPoint" x="360" y="350" />
</mxGeometry>
</mxCell>
<mxCell id="c63" value="GET observation/{id} + X-Gateway-Key (actual owner)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="415" />
<mxPoint as="targetPoint" x="820" y="415" />
</mxGeometry>
</mxCell>
<mxCell id="c64" value="Read current observation" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="480" />
<mxPoint as="targetPoint" x="1050" y="480" />
</mxGeometry>
</mxCell>
<mxCell id="c65" value="Observation, or absent" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="545" />
<mxPoint as="targetPoint" x="820" y="545" />
</mxGeometry>
</mxCell>
<mxCell id="c66" value="Actual patientId in DTO" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="610" />
<mxPoint as="targetPoint" x="360" y="610" />
</mxGeometry>
</mxCell>
<mxCell id="c67" value="Compare owner / professional assignment; reject writes for professional" style="text;html=0;fontSize=12;align=left;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry as="geometry" x="370" y="657" width="205" height="48" />
</mxCell>
<mxCell id="c68" value="Forward original authorized method/body + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="740" />
<mxPoint as="targetPoint" x="820" y="740" />
</mxGeometry>
</mxCell>
<mxCell id="c69" value="Read / patch tracked row / numeric update / physical delete" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="805" />
<mxPoint as="targetPoint" x="1050" y="805" />
</mxGeometry>
</mxCell>
<mxCell id="c70" value="Current result / write outcome" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="870" />
<mxPoint as="targetPoint" x="820" y="870" />
</mxGeometry>
</mxCell>
<mxCell id="c71" value="200 read/update; 204 delete; 404 missing" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="935" />
<mxPoint as="targetPoint" x="360" y="935" />
</mxGeometry>
</mxCell>
<mxCell id="c72" value="Forward response" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1000" />
<mxPoint as="targetPoint" x="130" y="1000" />
</mxGeometry>
</mxCell>
<mxCell id="c73" value="Failed ownership lookup fails closed; mismatch/unassigned/absent gives empty 404. Professional write is 403 before lookups. PATCH omission preserves, explicit null clears optional fields. Lookup and mutation are separate reads, without ETags or a distributed lock. Individual-ID reads therefore read Observation twice." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="1120" width="1490" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="p4" name="On-demand numerical insight or trend">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1550" pageHeight="1245" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c74" value="On-demand numerical insight or trend" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1490" height="45" />
</mxCell>
<mxCell id="c75" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="35" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c76" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="180" />
<mxPoint as="targetPoint" x="130" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c77" value="Gateway" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Security/PatientAccessMiddleware.cs">
<mxGeometry as="geometry" x="265" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c78" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="180" />
<mxPoint as="targetPoint" x="360" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c79" value="Patient/Profile" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/PatientProfileService/Controllers/PatientController.cs">
<mxGeometry as="geometry" x="495" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c80" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="180" />
<mxPoint as="targetPoint" x="590" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c81" value="Insights" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/InsightsService/Application/InsightsApplicationService.cs">
<mxGeometry as="geometry" x="725" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c82" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="180" />
<mxPoint as="targetPoint" x="820" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c83" value="Observation" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ObservationService/Persistence/SqlObservationRepository.cs">
<mxGeometry as="geometry" x="955" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c84" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="180" />
<mxPoint as="targetPoint" x="1050" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c85" value="Calculator" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/InsightsService/Domain/InsightCalculator.Trends.cs">
<mxGeometry as="geometry" x="1185" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c86" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1280" y="180" />
<mxPoint as="targetPoint" x="1280" y="1095" />
</mxGeometry>
</mxCell>
<mxCell id="c87" value="GET insights/trends + period/selection + Bearer" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="220" />
<mxPoint as="targetPoint" x="360" y="220" />
</mxGeometry>
</mxCell>
<mxCell id="c88" value="Patient: current account association lookup" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="285" />
<mxPoint as="targetPoint" x="590" y="285" />
</mxGeometry>
</mxCell>
<mxCell id="c89" value="Associated ID; Gateway authorizes requested patient" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="350" />
<mxPoint as="targetPoint" x="360" y="350" />
</mxGeometry>
</mxCell>
<mxCell id="c90" value="Forward query + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="415" />
<mxPoint as="targetPoint" x="820" y="415" />
</mxGeometry>
</mxCell>
<mxCell id="c91" value="GET history + X-Service-Key (Insights identity)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="480" />
<mxPoint as="targetPoint" x="360" y="480" />
</mxGeometry>
</mxCell>
<mxCell id="c92" value="Forward whitelisted history + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="545" />
<mxPoint as="targetPoint" x="1050" y="545" />
</mxGeometry>
</mxCell>
<mxCell id="c93" value="Own DB: inclusive period + AND category filters; ordered rows" style="text;html=0;fontSize=12;align=left;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry as="geometry" x="1060" y="592" width="205" height="48" />
</mxCell>
<mxCell id="c94" value="200 current observation array, including empty" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="675" />
<mxPoint as="targetPoint" x="360" y="675" />
</mxGeometry>
</mxCell>
<mxCell id="c95" value="Forward array" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="740" />
<mxPoint as="targetPoint" x="820" y="740" />
</mxGeometry>
</mxCell>
<mxCell id="c96" value="CalculateSummary or CalculateTrend from current rows" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="805" />
<mxPoint as="targetPoint" x="1280" y="805" />
</mxGeometry>
</mxCell>
<mxCell id="c97" value="Transient result / null summary" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1280" y="870" />
<mxPoint as="targetPoint" x="820" y="870" />
</mxGeometry>
</mxCell>
<mxCell id="c98" value="200 summary/trend; summary empty 404" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="935" />
<mxPoint as="targetPoint" x="360" y="935" />
</mxGeometry>
</mxCell>
<mxCell id="c99" value="Forward response with selection/count/limits" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1000" />
<mxPoint as="targetPoint" x="130" y="1000" />
</mxGeometry>
</mxCell>
<mxCell id="c100" value="No persisted summary/trend or cache. Trend empty/single instant still returns descriptive/unavailable parts. Temporal ties grouped reproducibly; raw extrema retained. Upstream invalid JSON/non-success → 502, local timeout → 504; not silently treated as empty. Professional uses configured assignment instead of account lookup." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="1120" width="1490" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="p5" name="Overview: sequential nested gateway reads">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1550" pageHeight="1830" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c101" value="Overview: sequential nested gateway reads" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1490" height="45" />
</mxCell>
<mxCell id="c102" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="35" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c103" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="180" />
<mxPoint as="targetPoint" x="130" y="1680" />
</mxGeometry>
</mxCell>
<mxCell id="c104" value="Gateway" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Security/PatientAccessMiddleware.cs">
<mxGeometry as="geometry" x="265" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c105" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="180" />
<mxPoint as="targetPoint" x="360" y="1680" />
</mxGeometry>
</mxCell>
<mxCell id="c106" value="Overview" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/HealthOverviewService/Application/HealthOverviewApplicationService.cs">
<mxGeometry as="geometry" x="495" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c107" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="180" />
<mxPoint as="targetPoint" x="590" y="1680" />
</mxGeometry>
</mxCell>
<mxCell id="c108" value="Patient/Profile" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/PatientProfileService/Controllers/PatientController.cs">
<mxGeometry as="geometry" x="725" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c109" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="180" />
<mxPoint as="targetPoint" x="820" y="1680" />
</mxGeometry>
</mxCell>
<mxCell id="c110" value="Observation" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ObservationService/Controllers/ObservationController.cs">
<mxGeometry as="geometry" x="955" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c111" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="180" />
<mxPoint as="targetPoint" x="1050" y="1680" />
</mxGeometry>
</mxCell>
<mxCell id="c112" value="Insights" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/InsightsService/Application/InsightsApplicationService.cs">
<mxGeometry as="geometry" x="1185" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c113" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1280" y="180" />
<mxPoint as="targetPoint" x="1280" y="1680" />
</mxGeometry>
</mxCell>
<mxCell id="c114" value="GET overview + period/insight selection + Bearer" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="220" />
<mxPoint as="targetPoint" x="360" y="220" />
</mxGeometry>
</mxCell>
<mxCell id="c115" value="Patient association lookup (or configured professional check)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="285" />
<mxPoint as="targetPoint" x="820" y="285" />
</mxGeometry>
</mxCell>
<mxCell id="c116" value="Own patient identity" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="350" />
<mxPoint as="targetPoint" x="360" y="350" />
</mxGeometry>
</mxCell>
<mxCell id="c117" value="Authorized overview query + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="415" />
<mxPoint as="targetPoint" x="590" y="415" />
</mxGeometry>
</mxCell>
<mxCell id="c118" value="1. GET patient + X-Service-Key (Overview)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="480" />
<mxPoint as="targetPoint" x="360" y="480" />
</mxGeometry>
</mxCell>
<mxCell id="c119" value="GET patient + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="545" />
<mxPoint as="targetPoint" x="820" y="545" />
</mxGeometry>
</mxCell>
<mxCell id="c120" value="Profile" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="610" />
<mxPoint as="targetPoint" x="360" y="610" />
</mxGeometry>
</mxCell>
<mxCell id="c121" value="Profile (404 stops overview)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="675" />
<mxPoint as="targetPoint" x="590" y="675" />
</mxGeometry>
</mxCell>
<mxCell id="c122" value="2. GET latest overall + Overview key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="740" />
<mxPoint as="targetPoint" x="360" y="740" />
</mxGeometry>
</mxCell>
<mxCell id="c123" value="GET latest + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="805" />
<mxPoint as="targetPoint" x="1050" y="805" />
</mxGeometry>
</mxCell>
<mxCell id="c124" value="Latest overall, or 404" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="870" />
<mxPoint as="targetPoint" x="360" y="870" />
</mxGeometry>
</mxCell>
<mxCell id="c125" value="Latest or null" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="935" />
<mxPoint as="targetPoint" x="590" y="935" />
</mxGeometry>
</mxCell>
<mxCell id="c126" value="3. GET insight + selected period/context + Overview key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="1000" />
<mxPoint as="targetPoint" x="360" y="1000" />
</mxGeometry>
</mxCell>
<mxCell id="c127" value="GET insight + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1065" />
<mxPoint as="targetPoint" x="1280" y="1065" />
</mxGeometry>
</mxCell>
<mxCell id="c128" value="GET history + X-Service-Key (Insights)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1280" y="1130" />
<mxPoint as="targetPoint" x="360" y="1130" />
</mxGeometry>
</mxCell>
<mxCell id="c129" value="GET filtered history + X-Gateway-Key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1195" />
<mxPoint as="targetPoint" x="1050" y="1195" />
</mxGeometry>
</mxCell>
<mxCell id="c130" value="Current observations" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="1260" />
<mxPoint as="targetPoint" x="360" y="1260" />
</mxGeometry>
</mxCell>
<mxCell id="c131" value="History" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1325" />
<mxPoint as="targetPoint" x="1280" y="1325" />
</mxGeometry>
</mxCell>
<mxCell id="c132" value="Calculated summary, or insufficient-data 404" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1280" y="1390" />
<mxPoint as="targetPoint" x="360" y="1390" />
</mxGeometry>
</mxCell>
<mxCell id="c133" value="Insight or null" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1455" />
<mxPoint as="targetPoint" x="590" y="1455" />
</mxGeometry>
</mxCell>
<mxCell id="c134" value="200 composition with separate bases" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="1520" />
<mxPoint as="targetPoint" x="360" y="1520" />
</mxGeometry>
</mxCell>
<mxCell id="c135" value="200 overview" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1585" />
<mxPoint as="targetPoint" x="130" y="1585" />
</mxGeometry>
</mxCell>
<mxCell id="c136" value="Calls 1/2/3 are sequential, not parallel or transactional. Latest ignores insight filters/period. Source absence is allowed only where clients recognize 404; other failures produce 502/504. Client authorization is done once on external request; callbacks are restricted trusted service identities. No end-user token propagation." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="1705" width="1490" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="p6" name="Professional assigned-patient reads and rejection">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1550" pageHeight="1180" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c137" value="Professional assigned-patient reads and rejection" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1490" height="45" />
</mxCell>
<mxCell id="c138" value="Professional client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="35" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c139" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="180" />
<mxPoint as="targetPoint" x="130" y="1030" />
</mxGeometry>
</mxCell>
<mxCell id="c140" value="Gateway" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Security/PatientAccessMiddleware.cs">
<mxGeometry as="geometry" x="265" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c141" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="180" />
<mxPoint as="targetPoint" x="360" y="1030" />
</mxGeometry>
</mxCell>
<mxCell id="c142" value="ProfessionalAssignments" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Security/ProfessionalAssignments.cs">
<mxGeometry as="geometry" x="495" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c143" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="180" />
<mxPoint as="targetPoint" x="590" y="1030" />
</mxGeometry>
</mxCell>
<mxCell id="c144" value="Target service" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Program.cs">
<mxGeometry as="geometry" x="725" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c145" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="180" />
<mxPoint as="targetPoint" x="820" y="1030" />
</mxGeometry>
</mxCell>
<mxCell id="c146" value="GET professionals/me/patients + professional Bearer" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="220" />
<mxPoint as="targetPoint" x="360" y="220" />
</mxGeometry>
</mxCell>
<mxCell id="c147" value="GetPatients(authenticated account)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="285" />
<mxPoint as="targetPoint" x="590" y="285" />
</mxGeometry>
</mxCell>
<mxCell id="c148" value="Sorted own assignment IDs (possibly empty)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="350" />
<mxPoint as="targetPoint" x="360" y="350" />
</mxGeometry>
</mxCell>
<mxCell id="c149" value="200 assignment list" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="415" />
<mxPoint as="targetPoint" x="130" y="415" />
</mxGeometry>
</mxCell>
<mxCell id="c150" value="GET patient resource + professional Bearer" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="480" />
<mxPoint as="targetPoint" x="360" y="480" />
</mxGeometry>
</mxCell>
<mxCell id="c151" value="IsAssigned(account, actual patientId)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="545" />
<mxPoint as="targetPoint" x="590" y="545" />
</mxGeometry>
</mxCell>
<mxCell id="c152" value="True / false" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="610" />
<mxPoint as="targetPoint" x="360" y="610" />
</mxGeometry>
</mxCell>
<mxCell id="c153" value="If true: forward GET with service incoming key" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="675" />
<mxPoint as="targetPoint" x="820" y="675" />
</mxGeometry>
</mxCell>
<mxCell id="c154" value="Profile/observation/history/insight/trend/overview" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="740" />
<mxPoint as="targetPoint" x="360" y="740" />
</mxGeometry>
</mxCell>
<mxCell id="c155" value="Forward authorized read; if unassigned empty 404" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="805" />
<mxPoint as="targetPoint" x="130" y="805" />
</mxGeometry>
</mxCell>
<mxCell id="c156" value="Any patient POST/PUT/PATCH/DELETE" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="870" />
<mxPoint as="targetPoint" x="360" y="870" />
</mxGeometry>
</mxCell>
<mxCell id="c157" value="403; no target write" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="935" />
<mxPoint as="targetPoint" x="130" y="935" />
</mxGeometry>
</mxCell>
<mxCell id="c158" value="Observation-ID GET establishes actual patient via an extra Observation read before assignment check (see ownership sequence). Assignments are startup config, not client-supplied or token-carried. Unauthenticated/expired is 401; patient cannot list professional assignments. No assignment administration API." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="1055" width="1490" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="p7" name="Installation: preparation, provisioning and verification">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1550" pageHeight="1440" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c159" value="Installation: preparation, provisioning and verification" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1490" height="45" />
</mxCell>
<mxCell id="c160" value="Administrator" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="35" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c161" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="180" />
<mxPoint as="targetPoint" x="130" y="1290" />
</mxGeometry>
</mxCell>
<mxCell id="c162" value="Native installer" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../deploy/installer/install.sh">
<mxGeometry as="geometry" x="265" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c163" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="180" />
<mxPoint as="targetPoint" x="360" y="1290" />
</mxGeometry>
</mxCell>
<mxCell id="c164" value="Provisioning CLI" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../deploy/HealthApp.Provisioning/Program.cs">
<mxGeometry as="geometry" x="495" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c165" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="180" />
<mxPoint as="targetPoint" x="590" y="1290" />
</mxGeometry>
</mxCell>
<mxCell id="c166" value="PostgreSQL" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../deploy/HealthApp.Provisioning/DatabaseProvisioning.cs">
<mxGeometry as="geometry" x="725" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c167" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="180" />
<mxPoint as="targetPoint" x="820" y="1290" />
</mxGeometry>
</mxCell>
<mxCell id="c168" value="Native manager" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="955" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c169" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="180" />
<mxPoint as="targetPoint" x="1050" y="1290" />
</mxGeometry>
</mxCell>
<mxCell id="c170" value="Five service processes" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../deploy/HealthApp.Provisioning/InstallationVerification.cs">
<mxGeometry as="geometry" x="1185" y="95" width="190" height="80" />
</mxCell>
<mxCell id="c171" value="" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=none;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1280" y="180" />
<mxPoint as="targetPoint" x="1280" y="1290" />
</mxGeometry>
</mxCell>
<mxCell id="c172" value="Select services + reachable topology / existing plan" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="130" y="220" />
<mxPoint as="targetPoint" x="360" y="220" />
</mxGeometry>
</mxCell>
<mxCell id="c173" value="Preflight; install missing supported runtime/DB packages" style="text;html=0;fontSize=12;align=left;verticalAlign=middle;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry as="geometry" x="370" y="267" width="205" height="48" />
</mxCell>
<mxCell id="c174" value="prepare (unless compatible material exists)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="350" />
<mxPoint as="targetPoint" x="590" y="350" />
</mxGeometry>
</mxCell>
<mxCell id="c175" value="Generated protected keys/accounts/CA/PFX/config plan" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="415" />
<mxPoint as="targetPoint" x="360" y="415" />
</mxGeometry>
</mxCell>
<mxCell id="c176" value="database for each selected persistent owner" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="480" />
<mxPoint as="targetPoint" x="590" y="480" />
</mxGeometry>
</mxCell>
<mxCell id="c177" value="Create/reuse own role+DB; revoke PUBLIC; check identity" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="545" />
<mxPoint as="targetPoint" x="820" y="545" />
</mxGeometry>
</mxCell>
<mxCell id="c178" value="Dedicated DB reachable" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="820" y="610" />
<mxPoint as="targetPoint" x="590" y="610" />
</mxGeometry>
</mxCell>
<mxCell id="c179" value="configure per selected service / native format" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="675" />
<mxPoint as="targetPoint" x="590" y="675" />
</mxGeometry>
</mxCell>
<mxCell id="c180" value="Protected env/JSON/PFX paths" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="740" />
<mxPoint as="targetPoint" x="360" y="740" />
</mxGeometry>
</mxCell>
<mxCell id="c181" value="Run --migrate for selected persistent services (then exit)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="805" />
<mxPoint as="targetPoint" x="1280" y="805" />
</mxGeometry>
</mxCell>
<mxCell id="c182" value="Register separate identities/units; enable/start" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="870" />
<mxPoint as="targetPoint" x="1050" y="870" />
</mxGeometry>
</mxCell>
<mxCell id="c183" value="Start independent dotnet processes" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1050" y="935" />
<mxPoint as="targetPoint" x="1280" y="935" />
</mxGeometry>
</mxCell>
<mxCell id="c184" value="verify-startup then verify (or defer topology)" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="360" y="1000" />
<mxPoint as="targetPoint" x="590" y="1000" />
</mxGeometry>
</mxCell>
<mxCell id="c185" value="HTTPS/key/DB/callback probes; complete synthetic API workflow" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=0;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="1065" />
<mxPoint as="targetPoint" x="1280" y="1065" />
</mxGeometry>
</mxCell>
<mxCell id="c186" value="Expected statuses / profile+latest+insight" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="1280" y="1130" />
<mxPoint as="targetPoint" x="590" y="1130" />
</mxGeometry>
</mxCell>
<mxCell id="c187" value="Success or failed step; retained material/data" style="html=0;rounded=0;fontSize=13;labelBackgroundColor=#ffffff;endArrow=classic;dashed=1;" edge="1" parent="1">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="590" y="1195" />
<mxPoint as="targetPoint" x="130" y="1195" />
</mxGeometry>
</mxCell>
<mxCell id="c188" value="Distributed mode adds scoped SSH/SCP installation per host and final topology verification. Not an atomic installation/rollback. Complete verification can create synthetic data; live verifier does not cycle stop/restart. Native-host execution and actual multi-machine proof remain separate from config/command-double tests." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="1315" width="1490" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>