Files

66 lines
7.1 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<mxfile host="app.diagrams.net" version="24.7.17" compressed="false">
<diagram id="p1" name="Service processes and communication">
<mxGraphModel dx="1700" dy="1500" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1750" pageHeight="1250" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="c1" value="Service processes and communication" style="text;html=0;fontSize=24;fontStyle=1;align=left;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry as="geometry" x="30" y="15" width="1690" height="45" />
</mxCell>
<mxCell id="c2" value="ApiGateway process&#10;Authentication + PatientAccessMiddleware&#10;Controllers → named HttpClients&#10;Login / public guidance / assignments&#10;Persistent Data Protection key files" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#dae8fc;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ApiGateway/Program.cs">
<mxGeometry as="geometry" x="640" y="110" width="420" height="240" />
</mxCell>
<mxCell id="c3" value="PatientProfileService process&#10;PatientController&#10;→ PatientApplicationService&#10;→ PatientRepository / SqlPatientRepository&#10;→ PatientDbContext" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#d5e8d4;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/PatientProfileService/Program.cs">
<mxGeometry as="geometry" x="30" y="490" width="360" height="220" />
</mxCell>
<mxCell id="c4" value="ObservationService process&#10;ObservationController → application&#10;→ ObservationRepository / SQL / EF&#10;Patient existence client → Gateway" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#d5e8d4;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/ObservationService/Program.cs">
<mxGeometry as="geometry" x="470" y="490" width="360" height="220" />
</mxCell>
<mxCell id="c5" value="InsightsService process&#10;InsightsController → application&#10;→ stateless InsightCalculator&#10;Observation HTTP client → Gateway&#10;No DB" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#d5e8d4;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/InsightsService/Program.cs">
<mxGeometry as="geometry" x="910" y="490" width="360" height="220" />
</mxCell>
<mxCell id="c6" value="HealthOverviewService process&#10;Overview controller → application&#10;Three typed HTTP clients → Gateway&#10;Sequential profile/latest/insight reads&#10;No DB" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#d5e8d4;strokeColor=#666666;fontSize=14;align=left;verticalAlign=top;spacing=12;" vertex="1" parent="1" link="../../src/HealthOverviewService/Program.cs">
<mxGeometry as="geometry" x="1350" y="490" width="360" height="220" />
</mxCell>
<mxCell id="c7" value="Profile APIs&#10;HTTPS + X-Gateway-Key" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c2" target="c3">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c8" value="Observation APIs&#10;HTTPS + X-Gateway-Key" 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="c9" value="Summary / trend APIs&#10;HTTPS + X-Gateway-Key" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c2" target="c5">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c10" value="Overview API&#10;HTTPS + X-Gateway-Key" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c2" target="c6">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c11" value="Patient read&#10;HTTPS + X-Service-Key" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c4" target="c2">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c12" value="History read&#10;HTTPS + X-Service-Key" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c5" target="c2">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c13" value="Profile / latest / summary reads&#10;HTTPS + X-Service-Key" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c6" target="c2">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c14" value="Patient DB&#10;patient + migration history&#10;Only Patient/Profile accesses it" 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="850" width="360" height="150" />
</mxCell>
<mxCell id="c15" value="Observation DB&#10;observation + flattened context&#10;Only Observation accesses it" 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="470" y="850" width="360" height="150" />
</mxCell>
<mxCell id="c16" value="EF Core / PostgreSQL" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c3" target="c14">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c17" value="EF Core / PostgreSQL" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;endArrow=classic;" edge="1" parent="1" source="c4" target="c15">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="c18" value="No direct application-service network links, shared runtime library, shared domain objects, broker or cross-service DB access. Domain/client names do not change the configured Gateway origin. Each box is a separate project/process. Source links are attached to service boxes." 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="1090" width="1680" height="100" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>