documented the architecture and design as is

This commit is contained in:
Steffen committed 2026-10-14 00:44:26 +02:00
1 parent 5d9371388c
commit 2117236366
20 files changed
+6449

No files matched your search

@@ -0,0 +1,349 @@
<?xml version='1.0' encoding='utf-8'?>
<mxfile host="app.diagrams.net" version="24.7.17" compressed="false">
<diagram name="PatientProfileService — implementation classes" id="PatientProfileService---implementation-classes">
<mxGraphModel grid="1" gridSize="10" page="1" pageWidth="2660" pageHeight="1870" pageScale="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="n117" value="PatientProfileService — implementation classes" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fontSize=24;fontStyle=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="40" y="25" width="2580" height="45" />
</mxCell>
<mxCell id="n118" value="UML: + public, - private, # protected, ~ internal. Three compartments = classifier / attributes / operations. Hollow triangle: inheritance; dashed hollow triangle: interface realization. Solid line: attribute reference; dashed arrow: dependency; filled diamond: verified owned context. Each source type has its own classifier. Primary-constructor parameters are constructor operations, not invented fields." style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;" vertex="1" parent="1">
<mxGeometry as="geometry" x="40" y="85" width="2580" height="100" />
</mxCell>
<mxCell id="n119" value="«class»&#10;PatientController&#10;PatientProfileService.Controllers" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#dae8fc;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Controllers.PatientController" sourceFiles="src/PatientProfileService/Controllers/PatientController.cs" link="../../src/PatientProfileService/Controllers/PatientController.cs">
<mxGeometry as="geometry" x="70" y="210" width="520" height="316" />
</mxCell>
<mxCell id="n120" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n119">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n121" value="+ PatientController(PatientApplicationService service)&#10;+ CreatePatient(CreatePatientRequest request, CancellationToken&#10;cancellationToken): Task&lt;ActionResult&lt;PatientDto&gt;&gt;&#10;+ GetByAccount(string accountId, CancellationToken cancellationToken):&#10;Task&lt;ActionResult&lt;PatientDto&gt;&gt;&#10;+ GetPatient(Guid patientId, CancellationToken cancellationToken):&#10;Task&lt;ActionResult&lt;PatientDto&gt;&gt;&#10;+ UpdatePatient(Guid patientId, UpdatePatientRequest request,&#10;CancellationToken cancellationToken): Task&lt;ActionResult&lt;PatientDto&gt;&gt;&#10;- ToDto(Patient patient): PatientDto {static}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n119">
<mxGeometry as="geometry" x="0" y="118" width="520" height="198" />
</mxCell>
<mxCell id="n119-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n119">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n122" value="«class»&#10;PatientApplicationService&#10;PatientProfileService.Application" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#e1d5e7;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Application.PatientApplicationService" sourceFiles="src/PatientProfileService/Application/PatientApplicationService.cs" link="../../src/PatientProfileService/Application/PatientApplicationService.cs">
<mxGeometry as="geometry" x="730" y="210" width="520" height="298" />
</mxCell>
<mxCell id="n123" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n122">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n124" value="+ PatientApplicationService(PatientRepository repository)&#10;+ CreatePatientAsync(CreatePatientRequest request, string accountId,&#10;CancellationToken cancellationToken): Task&lt;Patient&gt;&#10;+ GetByAccountAsync(string accountId, CancellationToken&#10;cancellationToken): Task&lt;Patient?&gt;&#10;+ GetPatientAsync(Guid patientId, CancellationToken cancellationToken):&#10;Task&lt;Patient?&gt;&#10;+ UpdatePatientAsync(Guid patientId, UpdatePatientRequest request,&#10;CancellationToken cancellationToken): Task&lt;Patient?&gt;" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n122">
<mxGeometry as="geometry" x="0" y="118" width="520" height="180" />
</mxCell>
<mxCell id="n122-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n122">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n125" value="«interface»&#10;PatientRepository&#10;PatientProfileService.Application" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#e1d5e7;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Application.PatientRepository" sourceFiles="src/PatientProfileService/Application/PatientRepository.cs" link="../../src/PatientProfileService/Application/PatientRepository.cs">
<mxGeometry as="geometry" x="1390" y="210" width="520" height="280" />
</mxCell>
<mxCell id="n126" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n125">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n127" value="+ FindByAccountIdAsync(string accountId, CancellationToken&#10;cancellationToken): Task&lt;Patient?&gt; {abstract}&#10;+ SaveAsync(Patient patient, CancellationToken cancellationToken):&#10;Task&lt;Patient&gt; {abstract}&#10;+ FindByIdAsync(Guid patientId, CancellationToken cancellationToken):&#10;Task&lt;Patient?&gt; {abstract}&#10;+ UpdateProfileAsync(Guid patientId, string name, string? contactInfo,&#10;CancellationToken cancellationToken): Task&lt;bool&gt; {abstract}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n125">
<mxGeometry as="geometry" x="0" y="118" width="520" height="162" />
</mxCell>
<mxCell id="n125-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n125">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n128" value="«class»&#10;ProfileAlreadyExistsException&#10;PatientProfileService.Application" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#e1d5e7;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Application.ProfileAlreadyExistsException" sourceFiles="src/PatientProfileService/Application/ProfileAlreadyExistsException.cs" link="../../src/PatientProfileService/Application/ProfileAlreadyExistsException.cs">
<mxGeometry as="geometry" x="2050" y="210" width="520" height="154" />
</mxCell>
<mxCell id="n129" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n128">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n130" value="(no declared operations)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n128">
<mxGeometry as="geometry" x="0" y="118" width="520" height="36" />
</mxCell>
<mxCell id="n128-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n128">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n131" value="«class»&#10;PatientDbContext&#10;PatientProfileService.Persistence" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#d5e8d4;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Persistence.PatientDbContext" sourceFiles="src/PatientProfileService/Persistence/PatientDbContext.cs" link="../../src/PatientProfileService/Persistence/PatientDbContext.cs">
<mxGeometry as="geometry" x="70" y="706" width="520" height="172" />
</mxCell>
<mxCell id="n132" value="+ Patients: DbSet&lt;Patient&gt; {get}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n131">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n133" value="+ PatientDbContext(DbContextOptions&lt;PatientDbContext&gt; options)&#10;# OnModelCreating(ModelBuilder modelBuilder): void" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n131">
<mxGeometry as="geometry" x="0" y="118" width="520" height="54" />
</mxCell>
<mxCell id="n131-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n131">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n134" value="«class»&#10;SqlPatientRepository&#10;PatientProfileService.Persistence" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#d5e8d4;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Persistence.SqlPatientRepository" sourceFiles="src/PatientProfileService/Persistence/SqlPatientRepository.cs" link="../../src/PatientProfileService/Persistence/SqlPatientRepository.cs">
<mxGeometry as="geometry" x="730" y="706" width="520" height="298" />
</mxCell>
<mxCell id="n135" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n134">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n136" value="+ SqlPatientRepository(PatientDbContext db)&#10;+ SaveAsync(Patient patient, CancellationToken cancellationToken):&#10;Task&lt;Patient&gt;&#10;+ FindByAccountIdAsync(string accountId, CancellationToken&#10;cancellationToken): Task&lt;Patient?&gt;&#10;+ FindByIdAsync(Guid patientId, CancellationToken cancellationToken):&#10;Task&lt;Patient?&gt;&#10;+ UpdateProfileAsync(Guid patientId, string name, string? contactInfo,&#10;CancellationToken cancellationToken): Task&lt;bool&gt;" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n134">
<mxGeometry as="geometry" x="0" y="118" width="520" height="180" />
</mxCell>
<mxCell id="n134-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n134">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n137" value="«class»&#10;Patient&#10;PatientProfileService.Domain" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#fff2cc;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Domain.Patient" sourceFiles="src/PatientProfileService/Domain/Patient.cs" link="../../src/PatientProfileService/Domain/Patient.cs">
<mxGeometry as="geometry" x="1390" y="706" width="520" height="262" />
</mxCell>
<mxCell id="n138" value="+ AccountId: string? {get, set}&#10;+ PatientId: Guid {get, set}&#10;+ Name: string {get, set}&#10;+ DateOfBirth: DateOnly {get, set}&#10;+ ContactInfo: string? {get, set}&#10;+ CreatedAt: DateTime {get, set}&#10;+ UpdatedAt: DateTime {get, set}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n137">
<mxGeometry as="geometry" x="0" y="82" width="520" height="144" />
</mxCell>
<mxCell id="n139" value="(no declared operations)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n137">
<mxGeometry as="geometry" x="0" y="226" width="520" height="36" />
</mxCell>
<mxCell id="n137-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n137">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="226" />
<mxPoint as="targetPoint" x="520" y="226" />
</mxGeometry>
</mxCell>
<mxCell id="n140" value="«record»&#10;CreatePatientRequest&#10;PatientProfileService.Contracts" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#ffe6cc;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Contracts.CreatePatientRequest" sourceFiles="src/PatientProfileService/Contracts/CreatePatientRequest.cs" link="../../src/PatientProfileService/Contracts/CreatePatientRequest.cs">
<mxGeometry as="geometry" x="2050" y="706" width="520" height="190" />
</mxCell>
<mxCell id="n141" value="+ Name: string? {get, init}&#10;+ DateOfBirth: DateOnly? {get, init}&#10;+ ContactInfo: string? {get, init}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n140">
<mxGeometry as="geometry" x="0" y="82" width="520" height="72" />
</mxCell>
<mxCell id="n142" value="(no declared operations)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n140">
<mxGeometry as="geometry" x="0" y="154" width="520" height="36" />
</mxCell>
<mxCell id="n140-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n140">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="154" />
<mxPoint as="targetPoint" x="520" y="154" />
</mxGeometry>
</mxCell>
<mxCell id="n143" value="«record»&#10;PatientDto&#10;PatientProfileService.Contracts" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#ffe6cc;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Contracts.PatientDto" sourceFiles="src/PatientProfileService/Contracts/PatientDto.cs" link="../../src/PatientProfileService/Contracts/PatientDto.cs">
<mxGeometry as="geometry" x="70" y="1184" width="520" height="226" />
</mxCell>
<mxCell id="n144" value="+ PatientId: Guid {get, init}&#10;+ Name: string {get, init}&#10;+ DateOfBirth: DateOnly {get, init}&#10;+ ContactInfo: string? {get, init}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n143">
<mxGeometry as="geometry" x="0" y="82" width="520" height="90" />
</mxCell>
<mxCell id="n145" value="+ PatientDto(Guid PatientId, string Name, DateOnly DateOfBirth, string?&#10;ContactInfo)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n143">
<mxGeometry as="geometry" x="0" y="172" width="520" height="54" />
</mxCell>
<mxCell id="n143-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n143">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="172" />
<mxPoint as="targetPoint" x="520" y="172" />
</mxGeometry>
</mxCell>
<mxCell id="n146" value="«record»&#10;UpdatePatientRequest&#10;PatientProfileService.Contracts" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#ffe6cc;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Contracts.UpdatePatientRequest" sourceFiles="src/PatientProfileService/Contracts/UpdatePatientRequest.cs" link="../../src/PatientProfileService/Contracts/UpdatePatientRequest.cs">
<mxGeometry as="geometry" x="730" y="1184" width="520" height="172" />
</mxCell>
<mxCell id="n147" value="+ Name: string? {get, init}&#10;+ ContactInfo: string? {get, init}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n146">
<mxGeometry as="geometry" x="0" y="82" width="520" height="54" />
</mxCell>
<mxCell id="n148" value="(no declared operations)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n146">
<mxGeometry as="geometry" x="0" y="136" width="520" height="36" />
</mxCell>
<mxCell id="n146-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n146">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="136" />
<mxPoint as="targetPoint" x="520" y="136" />
</mxGeometry>
</mxCell>
<mxCell id="n149" value="«class»&#10;Program&#10;PatientProfileService" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#f5f5f5;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Program" sourceFiles="src/PatientProfileService/Program.cs" link="../../src/PatientProfileService/Program.cs">
<mxGeometry as="geometry" x="1390" y="1184" width="520" height="154" />
</mxCell>
<mxCell id="n150" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n149">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n151" value="+ Main(string[] args): Task {static}" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n149">
<mxGeometry as="geometry" x="0" y="118" width="520" height="36" />
</mxCell>
<mxCell id="n149-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n149">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n152" value="«framework reference»&#10;Exception" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;align=center;fillColor=#ffffff;strokeColor=#777777;dashed=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="70" y="1590" width="520" height="80" />
</mxCell>
<mxCell id="n153" value="«framework reference»&#10;ControllerBase" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;align=center;fillColor=#ffffff;strokeColor=#777777;dashed=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="730" y="1590" width="520" height="80" />
</mxCell>
<mxCell id="n154" value="«framework reference»&#10;DbContext" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;align=center;fillColor=#ffffff;strokeColor=#777777;dashed=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="1390" y="1590" width="520" height="80" />
</mxCell>
<mxCell id="e154-0" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n122" target="n125" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-1" value="creates / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n122" target="n128" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-2" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n122" target="n140" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-3" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n122" target="n146" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-4" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n122" target="n137" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-5" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n125" target="n137" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-6" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n119" target="n122" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-7" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n119" target="n140" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-8" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n119" target="n143" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-9" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n119" target="n146" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-10" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n119" target="n137" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-14" value="Patients [0..*]" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;endArrow=none;" edge="1" parent="1" source="n131" target="n137" relationship="association">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-15" value="" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=block;endFill=0;" edge="1" parent="1" source="n134" target="n125" relationship="realization">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-16" value="creates / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n134" target="n128" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-17" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n134" target="n137" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-18" value="signature / constructor" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n134" target="n131" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-19" value="registers / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n149" target="n122" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-20" value="registers / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n149" target="n131" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-21" value="registers / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n149" target="n134" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-22" value="" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;endArrow=block;endFill=0;" edge="1" parent="1" source="n128" target="n152" relationship="generalization">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-23" value="" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;endArrow=block;endFill=0;" edge="1" parent="1" source="n119" target="n153" relationship="generalization">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e154-24" value="" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;endArrow=block;endFill=0;" edge="1" parent="1" source="n131" target="n154" relationship="generalization">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="n155" value="Source-linked classifier headers. All declared members shown; compiler-generated record members and inherited framework members are omitted. Partial declarations are merged. Framework base/reference boxes are distinguished from service-defined types. A dependency is not ownership or a cross-service in-process call. See class-diagram-coverage.md for exact file/type coverage." style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;" vertex="1" parent="1">
<mxGeometry as="geometry" x="40" y="1735" width="2580" height="110" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram name="PatientProfileService — EF migration classes" id="PatientProfileService---EF-migration-classes">
<mxGraphModel grid="1" gridSize="10" page="1" pageWidth="2660" pageHeight="970" pageScale="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="n195" value="PatientProfileService — EF migration classes" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fontSize=24;fontStyle=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="40" y="25" width="2580" height="45" />
</mxCell>
<mxCell id="n196" value="UML: + public, - private, # protected, ~ internal. Three compartments = classifier / attributes / operations. Hollow triangle: inheritance; dashed hollow triangle: interface realization. Solid line: attribute reference; dashed arrow: dependency; filled diamond: verified owned context. Each source type has its own classifier. Primary-constructor parameters are constructor operations, not invented fields." style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;" vertex="1" parent="1">
<mxGeometry as="geometry" x="40" y="85" width="2580" height="100" />
</mxCell>
<mxCell id="n197" value="«class»&#10;AccountProfileAssociation&#10;PatientProfileService.Persistence.Migrations" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#d5e8d4;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Persistence.Migrations.AccountProfileAssociation" sourceFiles="src/PatientProfileService/Persistence/Migrations/20261005082209_AccountProfileAssociation.Designer.cs|src/PatientProfileService/Persistence/Migrations/20261005082209_AccountProfileAssociation.cs" link="../../src/PatientProfileService/Persistence/Migrations/20261005082209_AccountProfileAssociation.Designer.cs">
<mxGeometry as="geometry" x="70" y="210" width="520" height="190" />
</mxCell>
<mxCell id="n198" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n197">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n199" value="# BuildTargetModel(ModelBuilder modelBuilder): void&#10;# Up(MigrationBuilder migrationBuilder): void&#10;# Down(MigrationBuilder migrationBuilder): void" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n197">
<mxGeometry as="geometry" x="0" y="118" width="520" height="72" />
</mxCell>
<mxCell id="n197-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n197">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n200" value="«class»&#10;InitialPatientSchema&#10;PatientProfileService.Persistence.Migrations" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#d5e8d4;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Persistence.Migrations.InitialPatientSchema" sourceFiles="src/PatientProfileService/Persistence/Migrations/20260930200031_InitialPatientSchema.Designer.cs|src/PatientProfileService/Persistence/Migrations/20260930200031_InitialPatientSchema.cs" link="../../src/PatientProfileService/Persistence/Migrations/20260930200031_InitialPatientSchema.Designer.cs">
<mxGeometry as="geometry" x="730" y="210" width="520" height="190" />
</mxCell>
<mxCell id="n201" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n200">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n202" value="# BuildTargetModel(ModelBuilder modelBuilder): void&#10;# Up(MigrationBuilder migrationBuilder): void&#10;# Down(MigrationBuilder migrationBuilder): void" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n200">
<mxGeometry as="geometry" x="0" y="118" width="520" height="72" />
</mxCell>
<mxCell id="n200-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n200">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n203" value="«class»&#10;PatientDbContextModelSnapshot&#10;PatientProfileService.Persistence.Migrations" style="swimlane;startSize=82;horizontal=1;html=0;whiteSpace=wrap;align=center;verticalAlign=top;fontSize=13;fontStyle=1;spacing=7;fillColor=#d5e8d4;strokeColor=#444444;" vertex="1" parent="1" sourceType="PatientProfileService.Persistence.Migrations.PatientDbContextModelSnapshot" sourceFiles="src/PatientProfileService/Persistence/Migrations/PatientDbContextModelSnapshot.cs" link="../../src/PatientProfileService/Persistence/Migrations/PatientDbContextModelSnapshot.cs">
<mxGeometry as="geometry" x="1390" y="210" width="520" height="154" />
</mxCell>
<mxCell id="n204" value="(no declared attributes)" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n203">
<mxGeometry as="geometry" x="0" y="82" width="520" height="36" />
</mxCell>
<mxCell id="n205" value="# BuildModel(ModelBuilder modelBuilder): void" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;fillColor=none;strokeColor=none;" vertex="1" parent="n203">
<mxGeometry as="geometry" x="0" y="118" width="520" height="36" />
</mxCell>
<mxCell id="n203-sep" style="endArrow=none;strokeColor=#444444;" edge="1" parent="n203">
<mxGeometry as="geometry" relative="1">
<mxPoint as="sourcePoint" x="0" y="118" />
<mxPoint as="targetPoint" x="520" y="118" />
</mxGeometry>
</mxCell>
<mxCell id="n206" value="«framework reference»&#10;Migration" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;align=center;fillColor=#ffffff;strokeColor=#777777;dashed=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="70" y="580" width="520" height="80" />
</mxCell>
<mxCell id="n207" value="«framework reference»&#10;ModelSnapshot" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;align=center;fillColor=#ffffff;strokeColor=#777777;dashed=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="730" y="580" width="520" height="80" />
</mxCell>
<mxCell id="n208" value="«same-service type, other page»&#10;PatientDbContext" style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;align=center;fillColor=#ffffff;strokeColor=#777777;dashed=1;" vertex="1" parent="1" referenceType="PatientProfileService.Persistence.PatientDbContext">
<mxGeometry as="geometry" x="70" y="690" width="520" height="80" />
</mxCell>
<mxCell id="e208-11" value="creates / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n200" target="n208" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e208-12" value="creates / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n197" target="n208" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e208-13" value="creates / configures" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;dashed=1;endArrow=open;" edge="1" parent="1" source="n203" target="n208" relationship="dependency">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e208-22" value="" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;endArrow=block;endFill=0;" edge="1" parent="1" source="n200" target="n206" relationship="generalization">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e208-23" value="" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;endArrow=block;endFill=0;" edge="1" parent="1" source="n197" target="n206" relationship="generalization">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="e208-24" value="" style="edgeStyle=orthogonalEdgeStyle;html=0;rounded=0;fontSize=11;labelBackgroundColor=#ffffff;endArrow=block;endFill=0;" edge="1" parent="1" source="n203" target="n207" relationship="generalization">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="n209" value="Source-linked classifier headers. All declared members shown; compiler-generated record members and inherited framework members are omitted. Partial declarations are merged. Framework base/reference boxes are distinguished from service-defined types. A dependency is not ownership or a cross-service in-process call. See class-diagram-coverage.md for exact file/type coverage." style="text;html=0;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;spacing=8;" vertex="1" parent="1">
<mxGeometry as="geometry" x="40" y="835" width="2580" height="110" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>