System Design Atlas

Social care case coordination across organisations

06 / 10Worked example

The overall architecture

How are support-plan responsibility and external processing divided among modules and processes?

The local consistency rule defines the coordination API boundary. Handover processing runs separately for deferred work. Support plan extracts, permission checks, responsibility and handover evidence are modules inside the API. The lead organisation’s coordination API stores the full plan in a protected relational datastore. A separate permission-check path produces a minimal versioned extract. Handover processing supplies it to the partner and receives acknowledgement. Partner access always checks current permission and never exposes the full plan. The supported person and case coordinator see permission status; withdrawal updates the same authoritative store synchronously. Already received copies are outside this access boundary. Permission, receipt and investigation/deletion tasks are separate authoritative records in the same store. Store empfang_unbekannt before releasing bytes; partner acknowledgements and handling evidence return through handover processing. Withdrawal blocks new retrievals while investigation is open.

Starting point Receipt and permission remain separate evidence.

Assumptions for the example case

Own fictitious example design. A fictitious voluntary exchange of a specific section of the aid plan between two organisations. A release granted for 3600 seconds in the example is only valid for age < 3600 seconds. All figures and test goals are illustrative assumptions.

Runtime components and datastores

Runtime topology · External entities, processes and datastores

Partner organisationReceive extract and send evidence
Supported personView permission status and withdraw permission

Leading case coordination

Coordination APIManage full plan, permission and investigation
Protected master planAuthoritative relational datastore
Authorisation checkExamine purpose, recipient, age and revocation
Handover storeU-29, receipt and investigation/deletion task
Handover processingProvide bytes and accept receipts
Supported person → Coordination APIGrant or withdraw permission
Coordination API → Protected master planWrite permission synchronously
Protected master plan → Authorisation checkCurrent permission version
Authorisation check → Handover storeCommit U-29 as empfang_unbekannt
Handover store → Handover processingProvide only after committing
Handover processing → Partner organisationRelease extract bytes
Partner organisation → Handover processingReceipt or deletion document
Handover processing → Handover storeStore evidence with deduplication
Coordination API → Handover storeOpen investigation/deletion task after withdrawal

Every new partner access requires current permission for the specified purpose and recipient.

The lead organisation’s coordination API stores the full plan in a protected relational datastore. A separate permission-check path produces a minimal versioned extract. Handover processing supplies it to the partner and receives acknowledgement. Partner access always checks current permission and never exposes the full plan. The supported person and case coordinator see permission status; withdrawal updates the same authoritative store synchronously. Already received copies are outside this access boundary. The disclosure path commits empfang_unbekannt before releasing bytes; partner acknowledgement and investigation/deletion evidence return to the API. Withdrawal remains independently effective.

Domain responsibilities within the API

Interior view · Coordination API

Master planMaintain master plan and release status
Authorisation checkExamine purpose, recipient, age and revocation
Extract creationCreate a minimal versioned extract
Handover evidenceTrack empfang_unbekannt, ACK and handling evidence
Gesamtplan → FreigabeprüfungDomain call
Freigabeprüfung → AusschnittbildungDomain call
Ausschnittbildung → ÜbergabenachweisDomain call

These responsibilities run within the same API process.

The coordination API contains support plan extracts, permission checks, responsibility and handover evidence. Arrows show domain calls; modules do not have separate server icons.

Map responsibilities to runtime components

Domain taskRuntimeResponsibility
Support plan extractCoordination APILimits the content to be released to the agreed purpose.
Authorisation checkCoordination APIChecks recipient, validity and revocation before access.
ResponsibilityCoordination APILinks the delegated task to the receiving organisation.
Handover evidenceCoordination APIDocuments provided content and confirmed receipt.
Handover processingSeparate background processProcesses stored work and external feedback.
Partner organisationExternal boundaryProvides or confirms the evidence agreed for this case.

Support plan extract

Runtime
Coordination API
Responsibility
Limits the content to be released to the agreed purpose.

Authorisation check

Runtime
Coordination API
Responsibility
Checks recipient, validity and revocation before access.

Responsibility

Runtime
Coordination API
Responsibility
Links the delegated task to the receiving organisation.

Handover evidence

Runtime
Coordination API
Responsibility
Documents provided content and confirmed receipt.

Handover processing

Runtime
Separate background process
Responsibility
Processes stored work and external feedback.

Partner organisation

Runtime
External boundary
Responsibility
Provides or confirms the evidence agreed for this case.

The partner boundary has its own delivery contract

The partner boundary has its own delivery contract

The partner boundary has its own delivery contract.

Every new external reading authorization requires a currently valid purpose- and receiver-related release; existing receipts remain traceable.

Support plan revisions, sharing permissions, and receipt acknowledgements must represent the same valid state. Your exercise identifies the input and expected result.

Alternative considered
A separate service for every module would distribute the guarantee that each new external read requires current purpose- and recipient-specific permission, while existing receipt evidence remains traceable, across additional network boundaries.
Trade-off
Common schema changes require coordinated releases.
Reassess
Substantially different handover-processing load or independent ownership justifies revisiting process boundaries.

Try it yourself

Classify support plan extracts, handover processing and the partner organisation as module, process or external system. Identify the authoritative datastore.

A hint for your attempt

A domain responsibility becomes a process only when it has its own execution unit.

Compare with a possible solution
Boundaries
Support plan extracts form a module in the coordination API; handover processing is a separate process; the partner organisation is external.
Storage
Support plan revisions, permissions and receipt records hold the authoritative evidence. Each new external read requires current purpose- and recipient-specific permission; existing receipt evidence remains traceable. A shared transaction protects this relationship; external responses remain separate evidence.

Apply to your project

Which planned service boundary would distribute a currently local guarantee across the network?

Next: check withdrawal before every new disclosure.