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,76 @@
<mxfile host="Electron">
<diagram id="06_class_health_overview_service" name="Health Overview Service — updated class model">
<mxGraphModel dx="1721" dy="1021" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1740" pageHeight="840" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="title" parent="1" style="text;html=0;fontSize=24;fontStyle=1;align=center;" value="Health Overview Service — updated class model" vertex="1">
<mxGeometry height="50" width="1660" x="40" y="10" as="geometry" />
</mxCell>
<mxCell id="e0" edge="1" parent="1" source="c" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" target="a" value="uses">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e1" edge="1" parent="1" source="a" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;exitX=1;exitY=0.25;exitDx=0;exitDy=0;" target="v" value="creates">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e2" edge="1" parent="1" source="a" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" target="p" value="uses">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e3" edge="1" parent="1" source="a" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" target="o" value="uses">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e4" edge="1" parent="1" source="a" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" target="i" value="uses">
<mxGeometry relative="1" x="0.0255" y="-5" as="geometry">
<mxPoint as="offset" />
<Array as="points">
<mxPoint x="1160.06" y="185" />
<mxPoint x="1160.06" y="545" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="c" parent="1" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" value="HealthOverviewController" vertex="1">
<mxGeometry height="190" width="500" x="40" y="90" as="geometry" />
</mxCell>
<mxCell id="cbody" parent="c" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="getOverview(patientId, period, selection)&#xa;selection applies to insight only&#xa;Returns HealthOverviewDto" vertex="1">
<mxGeometry height="154" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="a" parent="1" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" value="HealthOverviewApplicationService" vertex="1">
<mxGeometry height="190" width="500" x="620" y="90" as="geometry" />
</mxCell>
<mxCell id="abody" parent="a" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="Load profile&#xa;Load latest overall observation&#xa;Load selected-period numerical insight&#xa;Aggregate without own persistence" vertex="1">
<mxGeometry height="154" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="v" parent="1" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" value="HealthOverview / HealthOverviewDto" vertex="1">
<mxGeometry height="240" width="500" x="1280" y="20" as="geometry" />
</mxCell>
<mxCell id="vbody" parent="v" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="patient: PatientDto&#xa;latestObservation: ObservationDto?&#xa;insight: HealthInsightDto?&#xa;Preserve context, selection and limitations&#xa;Explain unavailable insight&#xa;No implicit trend component" vertex="1">
<mxGeometry height="204" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="p" parent="1" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" value="PatientProfileServiceClient" vertex="1">
<mxGeometry height="210" width="500" x="40" y="440" as="geometry" />
</mxCell>
<mxCell id="pbody" parent="p" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="getPatient(patientId): PatientDto&#xa;Implemented by HTTP client&#xa;Calls through API Gateway" vertex="1">
<mxGeometry height="174" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="o" parent="1" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" value="ObservationServiceClient" vertex="1">
<mxGeometry height="210" width="500" x="620" y="440" as="geometry" />
</mxCell>
<mxCell id="obody" parent="o" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="getLatest(patientId): ObservationDto?&#xa;Implemented by HTTP client&#xa;Calls through API Gateway&#xa;Latest remains unfiltered by context" vertex="1">
<mxGeometry height="174" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="i" parent="1" style="swimlane;html=0;startSize=36;horizontal=1;fillColor=#eeeeee;swimlaneFillColor=#ffffff;strokeColor=#333333;fontColor=#111111;fontSize=17;fontStyle=1;align=center;" value="InsightsServiceClient" vertex="1">
<mxGeometry height="210" width="500" x="1200" y="440" as="geometry" />
</mxCell>
<mxCell id="ibody" parent="i" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="getSummary(patientId, period, selection)&#xa;Implemented by HTTP client&#xa;Calls through API Gateway&#xa;Propagate selection and contributing count" vertex="1">
<mxGeometry height="174" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="note0" parent="1" style="text;html=0;align=left;fontSize=15;" value="Only client abstractions are shown; arrows do not represent direct links between service-domain classes." vertex="1">
<mxGeometry height="25" width="1660" x="40" y="735" as="geometry" />
</mxCell>
<mxCell id="note1" parent="1" style="text;html=0;align=left;fontSize=15;" value="No matching insight data does not remove an available profile or latest observation." vertex="1">
<mxGeometry height="25" width="1660" x="40" y="760" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>