Architecture is proposed and there are also alternative architectures proposed
This commit is contained in:
1 parent
ccf9041183
commit
3426236c6c
24 files changed
+2516
No files matched your search
@@ -0,0 +1,44 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mxfile host="app.diagrams.net" type="device" compressed="false">
|
||||
<diagram id="page1" name="Health App — system context">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="960" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Health App — system context" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="patient" value="Patient client Pre-created synthetic account Own profile and measurements General guidance public" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="app" value="Health App system boundary One HTTPS application process API/access + health modules One database, owned schemas No product frontend in scope" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="professional" value="Healthcare professional client Predefined many-to-many assignments Assigned patient reads only Own assignment list; no writes" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="admin" value="Administrator Install/configure application + DB Protected secrets/certificates Native verification" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="publisher" value="Danish / European clinical publishers Content review input only Source URLs and review provenance No per-request website dependency" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="HTTPS login / own-data APIs" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="patient" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="HTTPS login / assigned reads" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="professional" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="Administrative installation" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="admin" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Reviewed versioned content, offline" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="publisher" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Patient data and assignment lists are protected. General guidance is public and has no patient association. PostgreSQL is inside the Health App managed persistence boundary; clinical publishers and clients are external. No LLM or experiment tooling is a product component." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="770" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mxfile host="app.diagrams.net" type="device" compressed="false">
|
||||
<diagram id="page1" name="Logical components — all in one application process">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="1280" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Logical components — all in one application process" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="edge" value="API/access HTTPS endpoint adapters Login/token validation Actual-owner / assignment policies Public guidance exception" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="profile" value="Profile Initial profile + account association Create / find / update ProfileQueries / ProfileCommands" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="obs" value="Observations Record / specific / latest / history Atomic patch and delete ObservationQueries / Commands" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="overview" value="Overview Compose profile + latest overall + selected-period insight OverviewQueries; transient result" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="analytics" value="Analytics SummaryPolicy / TrendPolicy ClinicalPolicy / comparability AnalyticsQueries; no result store" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="guidance" value="Guidance Public ordered instructions Reviewed reference catalog Versioned applicability/provenance" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="infra" value="Infrastructure ReadSnapshot / WriteTransaction Private per-module DB adapters Bounded DB connection pool" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="Authorized profile operations / association lookup" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="edge" target="profile">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Authorized observation operations / actual owner" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="edge" target="obs">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="Authorized overview" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="edge" target="overview">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Authorized insight / trend" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="edge" target="analytics">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="Public guidance" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="edge" target="guidance">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge5" value="Patient existence, typed query" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="obs" target="profile">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge6" value="Profile read, same snapshot" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="overview" target="profile">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge7" value="Latest overall read" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="overview" target="obs">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge8" value="Selected insight from current series" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="overview" target="analytics">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge9" value="Current selected immutable series" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="analytics" target="obs">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge10" value="Claim-specific reference catalog" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="analytics" target="guidance">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge11" value="Own repository / transaction" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="profile" target="infra">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge12" value="Own repository / transaction" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="obs" target="infra">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Solid boxes are logical modules, not independently deployed processes. Dashed arrows are typed in-process dependencies, not network calls. All public operations pass API/access; no callback into routing. Overview uses private module interfaces and shared read snapshot, never another module’s SQL." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="1090" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
@@ -0,0 +1,144 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mxfile host="app.diagrams.net" type="device" compressed="false">
|
||||
<diagram id="page1" name="Domain — identity and access">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1080" pageHeight="960" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Domain — identity and access" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="920" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="account" value="Account Stable account ID Trusted Patient / Professional role Pre-created credential hash" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="grant" value="Authentication grant Account identity / role Issued / expires instants No health data or assignments" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="patient" value="Patient profile Generated patient ID Name / birth date / contact Durable immutable account association" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="assignment" value="Professional assignment One professional account One patient identifier Predefined read-only entitlement" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="1 account — 0..* grants" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="account" target="grant">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="1 Patient account — 0..1 profile" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="account" target="patient">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="1 Professional account — 0..* assignments" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="account" target="assignment">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="0..* assignments — 1 patient ID; information may be absent" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="assignment" target="patient">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Patient account cardinality is zero before creation and one afterwards. Each newly created profile has exactly one account. Professionals may share patients; no separate managed professional profile, consent workflow or assignment administration is introduced." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="770" width="920" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="page2" name="Domain — observations and selection">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="960" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Domain — observations and selection" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="patient" value="Patient profile «reference» Patient identifier Profile owns patient information" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="obs" value="Blood-pressure observation Observation ID / patient ID Measurement and original recording instants Systolic / diastolic mmHg; pulse beats/min Original context text and note" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="context" value="Measurement context Setting: Home/Clinic/Other/Unknown Activity: AtRest/During/After/Unknown Optional preparation and circumstances Missing values never inferred" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="period" value="Measurement period Inclusive start/end instants Equal valid; reversed invalid UTC meaning independent of host" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="selection" value="Context selection Optional setting / activity Both predicates must match Explicit Unknown differs from omission" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="1 patient — 0..* observations; each observation 1 patient" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="patient" target="obs">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="1 observation — 1 owned context" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="obs" target="context">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="Selects measurement instants" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="period" target="obs">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Selects recorded categories; never edits" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="selection" target="context">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Context has no independent identity/lifecycle; deleting an observation removes its context. Positive three measurements and timestamp are required. Latest uses measurement time, original recording time, then greatest UUID bytes. History ascends measurement time; none of these recording/ID ties determines trend direction." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="770" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="page3" name="Domain — derived views and clinical provenance">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="1280" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Domain — derived views and clinical provenance" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="insight" value="Health insight Patient / period / selection / count Three arithmetic means; BP extrema Context explanation Derived from 1..* current observations" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="trend" value="Trend assessment Patient / period / selection / count Three separate metric assessments Comparability evidence Derived from 0..* current observations" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="metric" value="Metric assessment Name / unit / observed levels Supported direction and variation Unavailable reasons / hint Separate clinical interpretation" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="overview" value="Health overview Profile required Latest overall observation optional Selected-period insight optional Explicit separate bases; no trend" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="evidence" value="Comparability evidence Known similarities / differences Missing relevant details / conflicts Supported basis / limitations Never certified by similar numbers" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="reference" value="Clinical reference Metric and context prerequisites Reference values / operators Allowed claim / limitations General threshold ≠ individual target" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="instruction" value="Guidance instruction Sequence / topic / instruction Preparation / equipment / posture Timing / recording / pulse limits" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="guidance" value="Measurement guidance Applicability / ordered instructions Preparation / measurement / recording Verified content or unavailable No compliance or observation writes" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="source" value="Reference source Title / URL / review date Danish / European applicability Versioned reviewed provenance" style="rounded=1;whiteSpace=wrap;html=0;fillColor=#e8f5e9;strokeColor=#38734a;fontSize=14;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="1 trend — exactly 3 metric assessments" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="trend" target="metric">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="1 trend — 1 evidence value" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="trend" target="evidence">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="0..1 applicable reference per metric" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="metric" target="reference">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="1 reference — 1..* sources" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="reference" target="source">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="Available guidance — 1..* sources" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="guidance" target="source">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge5" value="1 guidance — 0..* ordered instructions" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="guidance" target="instruction">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge6" value="1 overview — 0..1 insight" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="overview" target="insight">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Period and ContextSelection are value references from the preceding page, used by insight/trend/overview insight. Overview contains one profile and zero/one latest observation (preceding pages). All derived views are transient; no stored summary/assessment IDs. Clinical rules gate individual claims; absence of context does not erase valid numerical information." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="1090" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
@@ -0,0 +1,440 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mxfile host="app.diagrams.net" type="device" compressed="false">
|
||||
<diagram id="page1" name="Conceptual classes — access and Profile">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="1280" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Conceptual classes — access and Profile" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="identity" value="«value» AuthenticatedIdentity" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="identity-attrs" value="accountId; trusted role issuedAt; expiresAt" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="identity">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="identity-ops" value="Normalized trusted identity No patient data" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="identity">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="access" value="«policy» AccessPolicy" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="access-attrs" value="AssignmentCatalog ProfileQueries; ObservationQueries" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="access">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="access-ops" value="authorize(identity, action, actualOwner) issue AuthorizedPatientContext" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="access">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="credentials" value="«interface» CredentialVerifier" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="credentials-attrs" value="External pre-created account catalog" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="credentials">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="credentials-ops" value="verify(accountId, secret): identity? Generic rejection" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="credentials">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="account" value="«entity» Account" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="account-attrs" value="accountId; trusted role; credentialHash Pre-created synthetic account" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="account">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="account-ops" value="No registration/admin lifecycle" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="account">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="assignment" value="«value» ProfessionalAssignment" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="assignment-attrs" value="professionalAccountId; patientId Predefined many-to-many entitlement" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="assignment">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="assignment-ops" value="Read-only access; no management API" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="assignment">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="queries" value="«interface» ProfileQueries" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="queries-attrs" value="Private Profile persistence dependency" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="queries">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="queries-ops" value="findByAccount(accountId) find(patientId): ProfileSnapshot?" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="queries">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="commands" value="«application» ProfileCommands" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="commands-attrs" value="Account ID from trusted identity WriteTransaction" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="commands">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="commands-ops" value="createInitial(identity, profileInput) update(authorizedContext, change)" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="commands">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="profile" value="«entity» PatientProfile" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="profile-attrs" value="patientId; accountId {unique, immutable} name; dateOfBirth; contactInfo? createdAt {immutable}; updatedAt" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="profile">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="profile-ops" value="validateRequiredInformation() updatePermittedInformation()" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="profile">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="Consumes normalized identity" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="access" target="identity">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Resolve account association" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="access" target="queries">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="Creates / changes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="commands" target="profile">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Returns immutable snapshot" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="queries" target="profile">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="Establishes account and trusted role" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="credentials" target="identity">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge5" value="Verifies trusted pre-created account" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="credentials" target="account">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge6" value="Evaluates predefined entitlement" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="access" target="assignment">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge7" value="Patient account 1 — profile 0..1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="account" target="profile">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Conceptual UML: name / key attributes / responsibility operations. Types explain design, not source declarations. Dashed arrow = dependency; association = solid line without arrow; filled diamond = composition. Every public facade requires authorized context except narrowly scoped access-policy lookups. Framework token service uses CredentialVerifier and persistent key material; no custom crypto." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="1090" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="page2" name="Conceptual classes — Observations">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="1280" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Conceptual classes — Observations" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="commands" value="«application» ObservationCommands" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="commands-attrs" value="WriteTransaction; ProfileQueries ObservationRepository" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="commands">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="commands-ops" value="record(context, input) patch(context, id, change); delete(...)" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="commands">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="queries" value="«interface» ObservationQueries" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="queries-attrs" value="ReadSnapshot; ObservationRepository" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="queries">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="queries-ops" value="ownerOf(id) [access policy only] find / latest / selectedSeries" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="queries">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="repository" value="«interface» ObservationRepository" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="repository-attrs" value="Private to Observations Own schema only" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="repository">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="repository-ops" value="loadOwnerScoped / save / remove selectInclusive / selectLatest" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="repository">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="obs" value="«entity» BloodPressureObservation" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="obs-attrs" value="id; patientId {immutable}; measuredAt systolic; diastolic; pulse > 0 originalRecordedAt {immutable}; note?" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="obs">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="obs-ops" value="applyValidatedPatch(change) Preserve omitted fields and identity" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="obs">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="context" value="«value» MeasurementContext" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="context-attrs" value="setting; activityCondition restDuration?; position?; arm? device?; cuff?; circumstances?" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="context">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="context-ops" value="Known vs Unknown independent Original context text preserved separately" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="context">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="change" value="«value» ObservationChange" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="change-attrs" value="Each field: omitted / set / clear Required values cannot clear" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="change">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="change-ops" value="validateAllChanges() Atomic patch; invalid applies nothing" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="change">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="period" value="«value» Period" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="period-attrs" value="startInstant; endInstant UTC normalized; inclusive" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="period">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="period-ops" value="validateOrder() Equal instants valid" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="period">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="selection" value="«value» ContextSelection" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="selection-attrs" value="setting?; activityCondition? Explicit Unknown ≠ omission" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="selection">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="selection-ops" value="validateCategories() AND both supplied predicates" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="selection">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="Write within row-locked transaction" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="commands" target="repository">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Read in shared request snapshot" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="queries" target="repository">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="1 — 1 owned value" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="obs" target="context">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Validate then apply" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="commands" target="change">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="Owns persistence mapping" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="repository" target="obs">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge5" value="Inclusive scope" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="queries" target="period">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge6" value="Recorded category predicates" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="queries" target="selection">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Profile existence is a typed query, not SQL through another module. Current result values remain immutable outside the module. A private PostgreSQL adapter realizes ObservationRepository; no Analytics/Overview repository shortcut. Latest tie is descending measurement/original-recording/UUID bytes; history is ascending measurement/UUID bytes." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="1090" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="page3" name="Conceptual classes — Analytics">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="1280" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Conceptual classes — Analytics" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="analytics" value="«application» AnalyticsQueries" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="analytics-attrs" value="ObservationQueries; ReadSnapshot SummaryPolicy; TrendPolicy; ClinicalPolicy" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="analytics">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="analytics-ops" value="insight(context, period, selection) trend(context, period, selection)" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="analytics">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="summary" value="«policy» SummaryPolicy" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="summary-attrs" value="All selected current raw values No stored state" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="summary">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="summary-ops" value="deriveMeansAndExtrema(series) Final half-up 2-decimal means" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="summary">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="trendpolicy" value="«policy» TrendPolicy" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="trendpolicy-attrs" value="Versioned method / assumptions Full-period equal-time handling" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="trendpolicy">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="trendpolicy-ops" value="describeLevelsDirectionVariation(series) Sufficiency / reversals / raw excursions" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="trendpolicy">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="insight" value="«value» HealthInsight" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="insight-attrs" value="patient; period; selection; count Three means; BP minima/maxima Context explanation" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="insight">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="insight-ops" value="One observation sufficient Zero → no insight" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="insight">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="trend" value="«value» TrendAssessment" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="trend-attrs" value="patient; period; selection; count comparability: ComparabilityEvidence" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="trend">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="trend-ops" value="Separate systolic / diastolic / pulse Explicit unavailable parts" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="trend">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="clinical" value="«policy» ClinicalPolicy" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="clinical-attrs" value="Reviewed ReferenceCatalog Claim-specific prerequisites" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="clinical">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="clinical-ops" value="compareApplicableReference(...) interpretWithEvidenceOrExplainLimit(...)" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="clinical">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="evidence" value="«value» ComparabilityEvidence" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="evidence-attrs" value="similarities; differences; missingDetails conflicts; unresolved narrative meaning" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="evidence">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="evidence-ops" value="Explain recorded basis and limitations Never certify technique" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="evidence">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="metric" value="«value» MetricAssessment" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="metric-attrs" value="metric; unit; observed levels direction; variation; availability reasons reference?; interpretation; hint" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="metric">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="metric-ops" value="Keep numerical and clinical parts distinct No forced overall score" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="metric">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="Numerical insight" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="analytics" target="summary">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Numerical assessment" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="analytics" target="trendpolicy">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="Applicable clinical meaning" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="analytics" target="clinical">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Produces transient value" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="summary" target="insight">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="Produces transient value" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="trendpolicy" target="trend">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge5" value="Exactly 3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="trend" target="metric">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge6" value="Exactly 1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="trend" target="evidence">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge7" value="Prerequisite evidence" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="clinical" target="evidence">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge8" value="Adds supported interpretation / limitations" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="clinical" target="metric">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="At least two distinct measurement instants for direction; group equal instants reproducibly without storage/recording ordering. Raw variation preserves hidden excursions. Optional missing facts limit only claims depending on them. Exact mathematical method is a documented implementation policy, not a prescribed energy optimization. Analytics has no SQL repository or result persistence." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="1090" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="page4" name="Conceptual classes — Overview and Guidance">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="1280" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Conceptual classes — Overview and Guidance" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="overviewqueries" value="«application» OverviewQueries" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="overviewqueries-attrs" value="ProfileQueries; ObservationQueries AnalyticsQueries; ReadSnapshot" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="overviewqueries">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="overviewqueries-ops" value="compose(context, period, selection) Capture sources in one snapshot" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="overviewqueries">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="overview" value="«value» HealthOverview" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="overview-attrs" value="profile: ProfileSnapshot latest: ObservationSnapshot? insight: HealthInsight?; basis/reasons" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="overview">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="overview-ops" value="Latest overall; insight period/selection No trend component" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="overview">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="guidance" value="«application» GuidanceQueries" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="guidance-attrs" value="Versioned GuidanceBundle No patient/observation repository" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="guidance">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="guidance-ops" value="get(setting?, activity?): GuidanceResult Available verified content or explanation" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="guidance">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="references" value="«catalog» ReferenceCatalog" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="references-attrs" value="Version; review metadata Applicable ClinicalReference values" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="references">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="references-ops" value="findApplicable(metric, claim, evidence) No live publisher calls" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="references">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="reference" value="«value» ClinicalReference" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="reference-attrs" value="scope; metric; prerequisites values/operators; permitted inference limitations; source provenance" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="reference">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="reference-ops" value="Claim-specific applicability Reference ≠ personal target" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="reference">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="source" value="«value» ReferenceSource" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="source-attrs" value="title; URL; reviewDate Applicable Danish / European provenance" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="source">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="source-ops" value="Versioned review record" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="source">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="instruction" value="«value» GuidanceInstruction" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="instruction-attrs" value="sequence; topic; instruction Applicable setting / limitations" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="instruction">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="instruction-ops" value="Ordered preparation/measurement/recording" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="instruction">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="result" value="«value» GuidanceResult" style="swimlane;html=0;startSize=44;horizontal=1;fillColor=#e8f0fe;strokeColor=#355070;fontSize=15;fontStyle=1;align=left;spacingLeft=12;collapsible=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="result-attrs" value="applicability; ordered instructions source URLs; review date availability / limitations" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#ffffff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="result">
|
||||
<mxGeometry as="geometry" x="0" y="44" width="340" height="100" />
|
||||
</mxCell>
|
||||
<mxCell id="result-ops" value="No stored compliance state Never mutates or blocks observations" style="rounded=0;html=0;whiteSpace=wrap;fillColor=#f8fbff;strokeColor=#355070;fontSize=13;align=left;spacing=10;" vertex="1" parent="result">
|
||||
<mxGeometry as="geometry" x="0" y="144" width="340" height="81" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="Creates transient composition" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="overviewqueries" target="overview">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Returns public content" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="guidance" target="result">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="0..* reviewed references" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="references" target="reference">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Same reviewed provenance bundle" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="guidance" target="references">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="1..* source values" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="reference" target="source">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge5" value="Verified available content: 1..*" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="result" target="source">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge6" value="0..* ordered instructions" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;startArrow=diamond;startFill=1;endArrow=none;" edge="1" parent="1" source="result" target="instruction">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Overview refers to immutable ProfileSnapshot / ObservationSnapshot / HealthInsight from other pages via typed contracts. Cross-module attributes are read values, not mutable entities. Guidance includes home/clinic distinction, preparation/equipment/posture/repetition/recording/pulse limits. Viewing/declining creates no data or compliance claim." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="1090" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mxfile host="app.diagrams.net" type="device" compressed="false">
|
||||
<diagram id="page1" name="Persistence — one database, explicit logical ownership">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="1280" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Persistence — one database, explicit logical ownership" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="profile" value="Profile module Private Profile persistence adapter No observation repository access" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="obs" value="Observations module Private Observation persistence adapter No profile SQL queries" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="derived" value="Analytics + Overview Module query contracts only Current immutable source values No tables/result IDs/cache" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="patientdb" value="PostgreSQL: profile schema patient PK UUID account ID UNIQUE NOT NULL name / birth date / optional contact creation / update instants Profile migration owner" style="shape=cylinder3;whiteSpace=wrap;html=0;fillColor=#f1e8fa;strokeColor=#76558d;fontSize=14;align=left;spacing=14;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="obsdb" value="Same PostgreSQL DB: observations schema observation PK UUID; patient FK restricted measurement / original / update instants positive readings; owned context columns original text / note; patient-time index Observation migration owner" style="shape=cylinder3;whiteSpace=wrap;html=0;fillColor=#f1e8fa;strokeColor=#76558d;fontSize=14;align=left;spacing=14;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="config" value="API/access private files Account credential hashes + trusted roles Predefined assignments Persistent token-protection keys Guidance/reference bundle: versioned" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="role" value="Application runtime DB role Only required DML on both schemas Shared request transaction / bounded pool No DDL/admin rights Module separation is NOT security isolation" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="admin" value="Administrative provisioning material Generated app/DB credentials Protected API certificate/key and settings Separate privileged migration identities No continuously running utility" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="760" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="Owns reads/writes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="profile" target="patientdb">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Owns reads/writes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="obs" target="obsdb">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="patient ID FK; delete restricted" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;endArrow=none;" edge="1" parent="1" source="obsdb" target="patientdb">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Current selected series / latest" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="derived" target="obs">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="Profile read values" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="derived" target="profile">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge5" value="DML capability" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="role" target="patientdb">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge6" value="DML capability" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="role" target="obsdb">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge7" value="Provisions credentials / grants" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="admin" target="role">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="One database process/storage boundary, two owned schemas. Context lives/deletes with its observation. Runtime role can reach both schemas; module ownership is enforced by interfaces/private adapters. Physical database separation in original US-16 is explicitly revised. Keys/configuration are operational state, not generated clinical-result persistence." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="1090" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mxfile host="app.diagrams.net" type="device" compressed="false">
|
||||
<diagram id="page1" name="Deployment — default local Linux">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="960" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Deployment — default local Linux" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="client" value="External clients Trust API certificate / prototype CA HTTPS bearer requests No database access" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="app" value="Supported Linux host / systemd One Health App application process Dedicated app identity Configured HTTPS listener All logical modules in-process" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="db" value="Same host: PostgreSQL process One health database profile + observations schemas Restricted application credentials Native DB lifecycle independent" style="shape=cylinder3;whiteSpace=wrap;html=0;fillColor=#f1e8fa;strokeColor=#76558d;fontSize=14;align=left;spacing=14;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="installer" value="Administrative installer (transient) Detect/provision runtime + PostgreSQL Generate configuration/secrets/certificates Migrate/register/start/verify Exit after success or clear stage failure" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="files" value="Protected local app files Configuration / key ring / certificate No hard-coded or logged secrets Reviewed versioned public content" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="HTTPS; public guidance or authorized data" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="client" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Restricted local database transport" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="app" target="db">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="Install unit; verify PID/HTTPS/restart/workflow" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="installer" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Provision DB/schema/roles; migrate" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="installer" target="db">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge4" value="Load own protected settings" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="app" target="files">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="One application process, NOT five services. App stop/restart does not directly stop PostgreSQL. DB failure prevents health operations without false empty-data responses; public guidance can remain available. Colocation is a workload assumption, not measured energy optimization. No proxy/container/orchestrator required." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="770" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="page2" name="Deployment — optional separate database host">
|
||||
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="960" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Deployment — optional separate database host" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="client" value="External clients HTTPS login / authorized API reads/writes" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="app" value="Host A: Linux / systemd Same single Health App application Own configuration / keys / certificate DB endpoint fully configurable" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="db" value="Host B: PostgreSQL Same health DB / owned schemas Verified encrypted DB transport Only application/admin network origins No application feature services" style="shape=cylinder3;whiteSpace=wrap;html=0;fillColor=#f1e8fa;strokeColor=#76558d;fontSize=14;align=left;spacing=14;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="admin" value="Administrator / transient utility Preflight app + remote DB prerequisites Protected remote admin connection Provision/verify reachable configured DB Do not install unnecessary local PostgreSQL" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
|
||||
</mxCell>
|
||||
<mxCell id="edge0" value="HTTPS" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="client" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge1" value="Verified DB TLS; restricted DML role" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="app" target="db">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge2" value="Native installation/configuration" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="admin" target="app">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="edge3" value="Privileged provisioning / migration" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="admin" target="db">
|
||||
<mxGeometry as="geometry" relative="1" />
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Location changes no application responsibility or public semantics. Runtime app needs no shared local files with DB host. Original five-machine feature-service layout is intentionally unsupported under clarified scope; US-16 revision records the incompatibility. Distributed DB may raise communication/idle cost or benefit shared DB administration." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="60" y="770" width="1380" height="115" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
@@ -0,0 +1,461 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<mxfile host="app.diagrams.net" type="device" compressed="false">
|
||||
<diagram id="seq0" name="Login and initial profile creation">
|
||||
<mxGraphModel grid="1" page="1" pageWidth="1440" pageHeight="1115">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Login and initial profile creation" style="text;fontSize=23;align=left;html=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="30" y="15" width="1320" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="actor0" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="50" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life0" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="135" />
|
||||
<mxPoint as="targetPoint" x="180" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor1" value="API/access" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="380" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life1" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="135" />
|
||||
<mxPoint as="targetPoint" x="510" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor2" value="Profile" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="710" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life2" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="135" />
|
||||
<mxPoint as="targetPoint" x="840" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor3" value="PostgreSQL" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1040" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life3" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="135" />
|
||||
<mxPoint as="targetPoint" x="1170" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg0" value="1. HTTPS credentials; generic failure on invalid login" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="190" />
|
||||
<mxPoint as="targetPoint" x="510" y="190" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg1" value="2. Framework verify; issue protected time-limited ticket" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="275" />
|
||||
<mxPoint as="targetPoint" x="610" y="300" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg2" value="3. Bearer token / trusted role; no patient data" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="360" />
|
||||
<mxPoint as="targetPoint" x="180" y="360" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg3" value="4. POST profile + bearer" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="445" />
|
||||
<mxPoint as="targetPoint" x="510" y="445" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg4" value="5. Patient-only; account ID from validated identity" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="530" />
|
||||
<mxPoint as="targetPoint" x="840" y="530" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg5" value="6. Transaction: profile + account UNIQUE association" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="615" />
|
||||
<mxPoint as="targetPoint" x="1170" y="615" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg6" value="7. Commit; conflict → existing profile; failure → rollback" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="700" />
|
||||
<mxPoint as="targetPoint" x="840" y="700" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg7" value="8. Success only after commit; stable generated ID" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="785" />
|
||||
<mxPoint as="targetPoint" x="510" y="785" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg8" value="9. Created / existing-profile / failure; /me recovers ID" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="870" />
|
||||
<mxPoint as="targetPoint" x="180" y="870" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Lost success response retry reports existing profile. Interrupted uncommitted insert rolls back; concurrency is guarded by unique account constraint. No separate association step or saga. Login is allowed before profile creation; professional creation rejected." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="40" y="965" width="1320" height="105" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="seq1" name="Actual-owner observation correction and deletion">
|
||||
<mxGraphModel grid="1" page="1" pageWidth="1770" pageHeight="1285">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Actual-owner observation correction and deletion" style="text;fontSize=23;align=left;html=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="30" y="15" width="1650" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="actor0" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="50" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life0" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="135" />
|
||||
<mxPoint as="targetPoint" x="180" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor1" value="API/access" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="380" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life1" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="135" />
|
||||
<mxPoint as="targetPoint" x="510" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor2" value="Observations" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="710" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life2" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="135" />
|
||||
<mxPoint as="targetPoint" x="840" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor3" value="Profile / assignment policy" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1040" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life3" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="135" />
|
||||
<mxPoint as="targetPoint" x="1170" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor4" value="PostgreSQL" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1370" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life4" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1500" y="135" />
|
||||
<mxPoint as="targetPoint" x="1500" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg0" value="1. GET / PATCH / DELETE observation ID + bearer" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="190" />
|
||||
<mxPoint as="targetPoint" x="510" y="190" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg1" value="2. Internal owner lookup within request transaction" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="275" />
|
||||
<mxPoint as="targetPoint" x="840" y="275" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg2" value="3. Read actual owner; never expose before access check" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="360" />
|
||||
<mxPoint as="targetPoint" x="1500" y="360" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg3" value="4. owner patient ID or absent" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1500" y="445" />
|
||||
<mxPoint as="targetPoint" x="840" y="445" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg4" value="5. Current account association / predefined assignment" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="530" />
|
||||
<mxPoint as="targetPoint" x="1170" y="530" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg5" value="6. Own patient or assigned read; professional write forbidden" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="615" />
|
||||
<mxPoint as="targetPoint" x="510" y="615" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg6" value="7. Authorized context: current read / locked mutation" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="700" />
|
||||
<mxPoint as="targetPoint" x="840" y="700" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg7" value="8. Recheck owner; validate all changes; atomic patch/delete" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="785" />
|
||||
<mxPoint as="targetPoint" x="1500" y="785" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg8" value="9. Commit / rollback; preserve omitted fields and other rows" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1500" y="870" />
|
||||
<mxPoint as="targetPoint" x="840" y="870" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg9" value="10. Current authorized result / success / safe error" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="955" />
|
||||
<mxPoint as="targetPoint" x="510" y="955" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg10" value="11. Response; unauthorized data never serialized" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="1040" />
|
||||
<mxPoint as="targetPoint" x="180" y="1040" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Mutations use row-locked write transaction; reads use snapshot. Actual patient identity cannot be replaced by a submitted ID/header. Clear → Unknown; invalid patch applies nothing. New requests after deletion commit exclude observation and context." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="40" y="1135" width="1650" height="105" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="seq2" name="Insight, trend and overview snapshot composition">
|
||||
<mxGraphModel grid="1" page="1" pageWidth="1770" pageHeight="1285">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Insight, trend and overview snapshot composition" style="text;fontSize=23;align=left;html=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="30" y="15" width="1650" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="actor0" value="Client" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="50" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life0" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="135" />
|
||||
<mxPoint as="targetPoint" x="180" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor1" value="API/access" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="380" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life1" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="135" />
|
||||
<mxPoint as="targetPoint" x="510" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor2" value="Overview / Analytics" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="710" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life2" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="135" />
|
||||
<mxPoint as="targetPoint" x="840" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor3" value="Profile / Observations" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1040" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life3" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="135" />
|
||||
<mxPoint as="targetPoint" x="1170" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor4" value="PostgreSQL" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1370" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life4" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1500" y="135" />
|
||||
<mxPoint as="targetPoint" x="1500" y="1105" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg0" value="1. GET overview / insight / trend + period and selection" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="190" />
|
||||
<mxPoint as="targetPoint" x="510" y="190" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg1" value="2. Begin snapshot; resolve account association / assignment" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="275" />
|
||||
<mxPoint as="targetPoint" x="1170" y="275" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg2" value="3. Authorized context; validate period/selection" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="360" />
|
||||
<mxPoint as="targetPoint" x="840" y="360" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg3" value="4. Join same read snapshot started for access lookup" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="445" />
|
||||
<mxPoint as="targetPoint" x="1500" y="445" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg4" value="5. Overview: profile + latest overall; selected series once" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="530" />
|
||||
<mxPoint as="targetPoint" x="1170" y="530" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg5" value="6. Inclusive patient/period; AND context filters" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="615" />
|
||||
<mxPoint as="targetPoint" x="1500" y="615" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg6" value="7. Current immutable profile/latest/selected raw values" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1500" y="700" />
|
||||
<mxPoint as="targetPoint" x="1170" y="700" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg7" value="8. Source values captured; release DB snapshot" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="785" />
|
||||
<mxPoint as="targetPoint" x="840" y="785" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg8" value="9. SummaryPolicy or full-period TrendPolicy + ClinicalPolicy" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="870" />
|
||||
<mxPoint as="targetPoint" x="940" y="895" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg9" value="10. Overview preserves separate bases; no trend added" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="955" />
|
||||
<mxPoint as="targetPoint" x="510" y="955" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg10" value="11. Results/count/selection/context limits or honest failure" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="1040" />
|
||||
<mxPoint as="targetPoint" x="180" y="1040" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="note" value="Logical message numbering describes a shared request transaction: access-policy reads and module reads share the snapshot from their first DB operation. Empty insight preserves available overview parts; dependency failure never means no data. Latest ignores insight period/context. No result cache/persistence." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="40" y="1135" width="1650" height="105" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
<diagram id="seq3" name="Native installation and verification">
|
||||
<mxGraphModel grid="1" page="1" pageWidth="1440" pageHeight="1115">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="title" value="Native installation and verification" style="text;fontSize=23;align=left;html=0;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="30" y="15" width="1320" height="45" />
|
||||
</mxCell>
|
||||
<mxCell id="actor0" value="Administrator" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="50" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life0" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="135" />
|
||||
<mxPoint as="targetPoint" x="180" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor1" value="Installer utility" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="380" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life1" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="135" />
|
||||
<mxPoint as="targetPoint" x="510" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor2" value="PostgreSQL" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="710" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life2" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="840" y="135" />
|
||||
<mxPoint as="targetPoint" x="840" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="actor3" value="systemd / app" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="1040" y="80" width="260" height="55" />
|
||||
</mxCell>
|
||||
<mxCell id="life3" style="dashed=1;endArrow=none;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="1170" y="135" />
|
||||
<mxPoint as="targetPoint" x="1170" y="935" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg0" value="1. Select app + local or remote DB topology" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="180" y="190" />
|
||||
<mxPoint as="targetPoint" x="510" y="190" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg1" value="2. Preflight; detect/install supported dependencies" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="275" />
|
||||
<mxPoint as="targetPoint" x="610" y="300" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg2" value="3. Create DB/schemas/roles; generated protected credentials" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="360" />
|
||||
<mxPoint as="targetPoint" x="840" y="360" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg3" value="4. Generate/API certificate/trust/key/config; migrate" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="445" />
|
||||
<mxPoint as="targetPoint" x="610" y="470" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg4" value="5. Register dedicated app unit; enable/start" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="530" />
|
||||
<mxPoint as="targetPoint" x="1170" y="530" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg5" value="6. Verify app PID + HTTPS + configured DB reachability" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="615" />
|
||||
<mxPoint as="targetPoint" x="1170" y="615" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg6" value="7. Representative synthetic profile/observation/overview flows" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="700" />
|
||||
<mxPoint as="targetPoint" x="1170" y="700" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg7" value="8. Demonstrate app stop/restart independent of PostgreSQL" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="785" />
|
||||
<mxPoint as="targetPoint" x="1170" y="785" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="msg8" value="9. Success or precise failed stage; utility exits" style="html=0;endArrow=open;fontSize=12;labelBackgroundColor=#ffffff;" edge="1" parent="1">
|
||||
<mxGeometry as="geometry" relative="1">
|
||||
<mxPoint as="sourcePoint" x="510" y="870" />
|
||||
<mxPoint as="targetPoint" x="180" y="870" />
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="note" value="No implementation supplied. Privileged migration separate from runtime DML. Normal path needs no manually invented secret/database/certificate. Original independent-feature installation criteria require revision; same single app supports local/remote DB configuration." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
|
||||
<mxGeometry as="geometry" x="40" y="965" width="1320" height="105" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
</diagram>
|
||||
</mxfile>
|
||||
Reference in new issue
Block a user