System Design Atlas

Telemedicine appointments and care records

07 / 10Worked example

Critical flow

How is an interrupted consultation brought to an evidenced clinical conclusion?

Trace the failure through the architecture: the video service creates the room, but its response is lost. Practice staff reconcile the same room request. An interrupted consultation enters dokumentation_offen; the clinician records the actual consultation and the agreed next care step. Durable acceptance, actual effect and response are considered separately.

Starting point Operate the video service and practice datastore as separate boundaries.

Assumptions for the example case

Fictitious example design: an outpatient video consultation with one clinician; appointment intervals in UTC; documented consent; manually confirmed consultation end and a versioned clinical note. Figures and quality targets are illustrative test assumptions. Emergency care, automatic diagnosis, prescribing and billing are outside the scope.

Failure point in the sequence

Room request, lost response and documented interruption

The room request is persisted; the video service creates the room, but its response is lost.

Practice interface
Practice API
Care datastore
Room worker
Video service
  1. 01 Practice interface → Practice APIOpen access to T-71
  2. 02 Practice API → Care datastoreCheck E-71 + assignment; persist request
  3. 03 Room worker → Video serviceStable room reference
  4. 04 Video service · Local processingRoom created; response lost
  5. 05 Room worker → Video serviceReconcile the same request
  6. 06 Video service → Room workerRoom reference
  7. 07 Room worker → Care datastoreCommit metadata
  8. 08 Practice interface → Practice APIConsultation interrupted
  9. 09 Practice API → Care datastoredokumentation_offen + next step

Result: One room request; interruption leads to dokumentation_offen, followed by documented encounter closure.

Technical room status and clinical encounter closure remain separate states.

The call ends early. Keep the encounter in dokumentation_offen. Clinicians document the care provided and the next step.

Effect, response and recovery

Specific error
The video service creates the room, but its response is lost. Practice staff reconcile the same room request. An interrupted consultation enters dokumentation_offen; the clinician records the actual consultation and the agreed next care step.
Before and after commit
Commit durably completes the local change. Before commit, the old state remains valid; afterwards, an identical retry returns the stored outcome. Reconcile the external effect using its existing reference.
Retry behaviour
An identical booking with the same key returns T-71. A changed patient identity under the same key is rejected. Repeating approval of N-1 creates no second closure; different note text requires a new version.

Document interruptions

Document interruptions

Keep the encounter in dokumentation_offen.

The call ends early.

Clinicians document the care provided and the next step.

Alternative considered
Marking the encounter done on disconnection falsely implies completeness.
Trade-off
Manual documentation is still necessary.
Reassess
A different encounter closure process is agreed.

Terms in this step

Document interruptions
Clinicians document the care provided and the next step.

Try it yourself

The call drops after five minutes. Predict the encounter state and the next clinical step.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
The encounter enters dokumentation_offen; disconnection does not complete the encounter.
Second part of the solution
Clinicians document the actual consultation and follow-up care. Only the approved note closes F-71.

Apply to your project

Which corresponding assumption would you check first in your project when a different encounter closure process is agreed?

Step 8 examines: Explain waiting time.