documented the architecture and design as is

This commit is contained in:
Steffen committed 2026-10-14 00:44:26 +02:00
1 parent 5d9371388c
commit 2117236366
20 files changed
+6449

No files matched your search

@@ -0,0 +1,47 @@
<?xml version='1.0' encoding='utf-8'?>
<mxfile host="app.diagrams.net" version="24.7.17" compressed="false">
<diagram id="p1" name="Ownership and physical persistence">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1700" pageHeight="1400" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c1" value="Ownership and physical persistence" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1640" height="45" />
</mxCell>
<mxCell id="c2" value="Patient/Profile process&#10;PatientDbContext / SqlPatientRepository&#10;Own credentials only" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#d5e8d4;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="120" width="450" height="160" />
</mxCell>
<mxCell id="c3" value="Observation process&#10;ObservationDbContext / SqlObservationRepository&#10;Own credentials only" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#d5e8d4;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="900" y="120" width="450" height="160" />
</mxCell>
<mxCell id="c4" value="Patient database: patient&#10;PK patient_id UUID&#10;account_id TEXT nullable; UNIQUE&#10;name VARCHAR NOT NULL&#10;date_of_birth DATE NOT NULL&#10;contact_info VARCHAR nullable&#10;created_at / updated_at TIMESTAMP NOT NULL&#10;+ __EFMigrationsHistory" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="420" width="520" height="310" />
</mxCell>
<mxCell id="c5" value="Observation database: blood_pressure_observation&#10;PK observation_id UUID; external patient_id UUID&#10;measured_at / created_at / updated_at TIMESTAMP&#10;systolic / diastolic / pulse INTEGER NOT NULL&#10;context / note VARCHAR nullable&#10;setting / activity_condition TEXT NOT NULL = Unknown&#10;rest_duration_minutes NUMERIC nullable&#10;body_position / measured_arm / device_details /&#10;cuff_details / additional_circumstances TEXT nullable&#10;+ __EFMigrationsHistory" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="900" y="420" width="650" height="350" />
</mxCell>
<mxCell id="c6" value="EF Core / own role" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c2" target="c4">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c7" value="EF Core / own role" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c3" target="c5">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c8" value="Logical patient_id reference ONLY&#10;No SQL access / FK / join" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=none;" edge="1" parent="1" source="c5" target="c4">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c9" value="Gateway-owned files/configuration&#10;Configured password hashes + roles&#10;Configured professional assignment IDs&#10;Persistent Data Protection XML key ring&#10;No Gateway clinical database" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="900" width="520" height="220" />
</mxCell>
<mxCell id="c10" value="Insights / Overview&#10;Deserialize local wire DTOs&#10;Calculate/compose results in request memory&#10;No result database, stored IDs or cache&#10;No source-database credentials" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="640" y="900" width="490" height="220" />
</mxCell>
<mxCell id="c11" value="Administrative deployment material&#10;Manifest/service.env/JSON/PFX&#10;Generated account passwords and service/DB keys&#10;Protected root/admin files; scoped distribution&#10;Public CA exported; signing key not retained" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#f5f5f5;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="1180" y="900" width="450" height="220" />
</mxCell>
<mxCell id="c12" value="TIMESTAMP means timestamp without time zone, interpreted as UTC clock values. MeasurementContext uses columns in the observation row, not a separate table. Only PK and account uniqueness indexes are declared. Diagram shows logical database owners; PostgreSQL servers may be colocated or separate. Sources: DbContexts, migrations, Deployment/DatabaseProvisioning." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff2cc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="1220" width="1630" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>