Restructure project requirements and design documentation

This commit is contained in:
Steffen committed 2026-10-04 16:20:06 +02:00
1 parent fa5e20f4d6
commit ebf50827d6
32 files changed
+2078 -485

No files matched your search

@@ -0,0 +1,82 @@
<mxfile host="Electron">
<diagram id="05_class_insights_service" name="Insights Service — updated class and result model">
<mxGraphModel dx="1951" dy="1157" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1740" pageHeight="1220" 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="Insights Service — updated class and result 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;" target="http" value="uses">
<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="calc" value="uses">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e3" edge="1" parent="1" source="http" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" target="dto" value="returns">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e4" edge="1" parent="1" source="calc" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" target="trend" value="creates">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="e5" edge="1" parent="1" source="trend" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;endArrow=open;dashed=1;fontSize=13;labelBackgroundColor=#ffffff;" target="ma" value="contains three">
<mxGeometry relative="1" as="geometry" />
</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="InsightsController" 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="getSummary(patientId, period, selection)&#xa;getTrend(patientId, period, selection)&#xa;Return result metadata and limitations" 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="InsightsApplicationService" 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="Obtain current observations&#xa;Apply requested selection&#xa;Invoke summary / trend calculations" vertex="1">
<mxGeometry height="154" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="http" 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 «interface»" vertex="1">
<mxGeometry height="190" width="500" x="1200" y="90" as="geometry" />
</mxCell>
<mxCell id="httpbody" parent="http" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="getByPeriod(patientId, period, selection)&#xa;HttpObservationServiceClient implements it&#xa;HTTP requests pass through API Gateway" vertex="1">
<mxGeometry height="154" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="calc" 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="InsightCalculator" vertex="1">
<mxGeometry height="190" width="500" x="620" y="390" as="geometry" />
</mxCell>
<mxCell id="calcbody" parent="calc" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="calculateSummary(observations, selection)&#xa;calculateTrend(observations, selection)&#xa;Document mathematical methods&#xa;No stored summaries or trend results" vertex="1">
<mxGeometry height="154" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="dto" 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="ObservationDto" vertex="1">
<mxGeometry height="230" width="500" x="1200" y="390" as="geometry" />
</mxCell>
<mxCell id="dtobody" parent="dto" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="observationId, patientId, measuredAt&#xa;systolic, diastolic, pulse&#xa;measurementContext (setting / conditions)&#xa;legacy context text and note&#xa;Carry unknown or conflicting context" vertex="1">
<mxGeometry height="194" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="sum" 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="HealthInsight" vertex="1">
<mxGeometry height="340" width="500" x="40" y="740" as="geometry" />
</mxCell>
<mxCell id="sumbody" parent="sum" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="patientId; periodStart; periodEnd&#xa;appliedSelection; contributingCount&#xa;averageSystolic / Diastolic / Pulse&#xa;minimumSystolic / maximumSystolic&#xa;minimumDiastolic / maximumDiastolic&#xa;context explanation&#xa;Final means: 2 decimals, half-up&#xa;No summary persistence identifier" vertex="1">
<mxGeometry height="304" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="trend" 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="TrendAssessment" vertex="1">
<mxGeometry height="340" width="500" x="620" y="740" as="geometry" />
</mxCell>
<mxCell id="trendbody" parent="trend" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="patientId; periodStart; periodEnd&#xa;appliedSelection; contributingCount&#xa;systolic: MeasurementAssessment&#xa;diastolic: MeasurementAssessment&#xa;pulse: MeasurementAssessment&#xa;comparability evidence and limitations&#xa;Unavailable parts explained explicitly" vertex="1">
<mxGeometry height="304" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="ma" 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="MeasurementAssessment «value object»" vertex="1">
<mxGeometry height="340" width="500" x="1260" y="740" as="geometry" />
</mxCell>
<mxCell id="mabody" parent="ma" style="text;html=0;align=left;verticalAlign=top;spacing=10;fontSize=15;fontFamily=Helvetica;whiteSpace=wrap;overflow=hidden;" value="measurement name and unit&#xa;observed level / numerical description&#xa;direction and variation when supported&#xa;interpretation and explanatory hint&#xa;reference values / guidance basis&#xa;data sufficiency and limitations&#xa;No direction inferred from storage order" vertex="1">
<mxGeometry height="304" width="500" y="36" as="geometry" />
</mxCell>
<mxCell id="note0" parent="1" style="text;html=0;align=left;fontSize=15;" value="HealthInsight is also created by InsightCalculator. All results reflect current observations." vertex="1">
<mxGeometry height="25" width="1660" x="40" y="1115" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>