Files
HealthAppRepositoryB/Docs/Architecture/.$05_class_insights_service.drawio.bkp

2 lines
8.6 KiB
XML

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