65 lines
7.3 KiB
XML
65 lines
7.3 KiB
XML
<?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> |