Initial commit: architecture design instructions and documentation

This commit is contained in:
Steffen committed 2026-10-13 13:38:21 +02:00
commit 4bbf5afe3e
64 files changed
+8819

No files matched your search

@@ -0,0 +1,2 @@
<?xml version='1.0' encoding='utf-8'?>
<mxfile host="app.diagrams.net" version="24.7.17"><diagram id="08_er_observation_service" name="Observation Service — updated logical persistence model"><mxGraphModel dx="1740" dy="900" grid="1" gridSize="10" page="1" pageScale="1" pageWidth="1740" pageHeight="900"><root><mxCell id="0" /><mxCell id="1" parent="0" /><mxCell id="title" value="Observation Service — updated logical persistence model" style="text;html=0;fontSize=24;fontStyle=1;align=center;" vertex="1" parent="1"><mxGeometry as="geometry" x="40" y="10" width="1660" height="50" /></mxCell><mxCell id="e0" value="contains optional value" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" edge="1" parent="1" source="o" target="p"><mxGeometry as="geometry" relative="1" /></mxCell><mxCell id="o" value="BloodPressureObservation «owned record»" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" vertex="1" parent="1"><mxGeometry as="geometry" x="60" y="110" width="700" height="550" /></mxCell><mxCell id="obody" value="PK observation_id: UUID&#10;patient_id: UUID (external identifier)&#10;measured_at: timestamp&#10;systolic / diastolic / pulse: integers&#10;context: optional original text&#10;note: optional text&#10;setting: category or unknown&#10;activity_condition: category or unknown&#10;preparation_details: optional owned value&#10;additional_circumstances: optional text&#10;created_at: original recording timestamp&#10;updated_at: update timestamp" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" vertex="1" parent="o"><mxGeometry as="geometry" x="0" y="36" width="700" height="514" /></mxCell><mxCell id="p" value="Preparation details «logical value»" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" vertex="1" parent="1"><mxGeometry as="geometry" x="970" y="110" width="650" height="320" /></mxCell><mxCell id="pbody" value="rest duration (with unit), if recorded&#10;body position, if recorded&#10;measured arm, if recorded&#10;device details, if recorded&#10;cuff details, if recorded&#10;Unknown is not presumed correct technique" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" vertex="1" parent="p"><mxGeometry as="geometry" x="0" y="36" width="650" height="284" /></mxCell><mxCell id="n" value="Persistence semantics" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" vertex="1" parent="1"><mxGeometry as="geometry" x="970" y="510" width="650" height="250" /></mxCell><mxCell id="nbody" value="Context belongs to the observation&#10;No separate shared context database&#10;Partial update: omitted differs from cleared&#10;Delete removes observation context&#10;Old records preserve text and unknowns&#10;Physical column/JSON mapping is not fixed" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" vertex="1" parent="n"><mxGeometry as="geometry" x="0" y="36" width="650" height="214" /></mxCell><mxCell id="note0" value="This logical model supersedes the old field list; it does not mandate a separate preparation table." style="text;html=0;align=left;fontSize=15;" vertex="1" parent="1"><mxGeometry as="geometry" x="40" y="795" width="1660" height="25" /></mxCell><mxCell id="note1" value="Patient identifier is not a cross-service database foreign key." style="text;html=0;align=left;fontSize=15;" vertex="1" parent="1"><mxGeometry as="geometry" x="40" y="820" width="1660" height="25" /></mxCell></root></mxGraphModel></diagram></mxfile>