System Design Atlas

Telemedicine appointments and care records

10 / 10Worked example

Design and evidence

What evidence links a conflict-free appointment to documented encounter closure?

The final design reuses the complete runtime topology from step 6. Test markers connect key decisions to expected results and earlier steps to revisit. The following items form a test plan; measured evidence is still outstanding.

Starting point Limit support views to operational metadata.

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.

Overall architecture with evidence

Runtime architecture · separate practice data and media channel

  1. 1 · Book appointment
  2. 2 · Check access
  3. 3 · Reconcile room
  4. 4 · Approve note
Patient portal / practice interfaceBooking + Documents
ParticipantsMedia endpoints

Practice platform

Practice APIAppointment + access
Appointment and care datastoreE-71, F-71, N-1
Room workerStable room request
Video serviceConfidential media channel
Patient portal / practice interface → Practice APIBooking + Document access
Practice API → Appointment and care datastoreLeading level
Practice API → Room workerRoom request
Room worker → Video serviceCreate/reconcile room
Video service → Room workerRoom reference
Participants → Video serviceConsultation media without recording
Room worker → Appointment and care datastoreConsultation metadata
Booking race · Step 5Consent replay · Step 4Room response · Step 7

The practice stores metadata and notes; consultation media flows directly through the video service.

Confidential media requires a suitable service. Operate the video service and practice datastore as separate boundaries. The practice API holds only necessary metadata and notes.

Test plan with review loops

ValidationExpected resultReturn to an earlier step
Concurrency in both ordersTwo patients book the same available appointment. Either commit order yields exactly one booking. Second test: consent revocation races with issuance of new access. Revocation first blocks issuance; access first remains logged as issued, and the active session is ended according to the agreed service contract.Steps 3 and 5
Identical and changed retriesAn 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.Step 4
Exact value or time limitT-71 covers [12:00,12:20). Another appointment starting at 12:19:59.999 overlaps; starting at 12:20:00.000 or 12:20:00.001 does not overlap. The start must precede the end.Steps 2 and 5
Lost response and restartThe 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.Steps 7 and 9

Concurrency in both orders

Expected result
Two patients book the same available appointment. Either commit order yields exactly one booking. Second test: consent revocation races with issuance of new access. Revocation first blocks issuance; access first remains logged as issued, and the active session is ended according to the agreed service contract.
Return to an earlier step
Steps 3 and 5

Identical and changed retries

Expected result
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.
Return to an earlier step
Step 4

Exact value or time limit

Expected result
T-71 covers [12:00,12:20). Another appointment starting at 12:19:59.999 overlaps; starting at 12:20:00.000 or 12:20:00.001 does not overlap. The start must precede the end.
Return to an earlier step
Steps 2 and 5

Lost response and restart

Expected result
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.
Return to an earlier step
Steps 7 and 9

First end-to-end validation

End-to-end path
Book T-71, lose the room response and complete the encounter with a note. The result is one booking, one associated room and one evidenced completion.
Open decision
Further appointment and consultation types can be added later. Emergency care, automatic diagnosis, prescribing and billing require their own follow-up design.

Test interruption through documentation

Test interruption through documentation

Book T-71, lose the room response and complete the encounter with a note.

Successfully joining a video call does not establish encounter closure.

The result is one booking, one associated room and one evidenced closure.

Alternative considered
A pure call test overlooks documentation.
Trade-off
The service needs failure points that tests can simulate.
Reassess
Further appointment and contact types are then added.

Terms in this step

Test interruption through documentation
The result is one booking, one associated room and one evidenced closure.

Try it yourself

Define tests for double booking and clinical closure, including the earlier design steps to revisit.

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
Two bookings for the same interval: exactly one succeeds; failures return to step 2/5.
Second part of the solution
Interrupted call: remain in dokumentation_offen until note approval, then enter abgeschlossen; failures return to step 7 and role clarification in step 9.

Apply to your project

Which corresponding assumption would you check first in your project when additional appointment and consultation types are introduced?

Transfer the system boundary, evidence and open decisions to the editable Markdown design template.

Start your own design

Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.

Download design template (.md)
Compare the ten tasks with the example case
  1. Purpose and boundary

    Which corresponding assumption would you check first in your project when additional types of care are added?

    In the example: Clinicians decide whether the consultation is appropriate. Technical connectivity does not guarantee adequate treatment.

  2. Requirements

    Which corresponding assumption would you check first in your project when user testing reveals unclear presentation?

    In the example: Track each prerequisite separately. A booked appointment is not yet approved consultation access.

  3. Scale estimates

    Which corresponding assumption would you check first in your project when measured concurrency exceeds the assumption?

    In the example: Calculate appointment rates and consultation minutes separately. API load does not determine video capacity.

  4. Interfaces

    Which corresponding assumption would you check first in your project when guest participation requires a separate authorisation contract?

    In the example: Check the appointment and authorised participants when issuing access. A room identifier alone grants no access.

  5. Data and states

    Which corresponding assumption would you check first in your project when larger documents require an agreed structure?

    In the example: Preserve the approved note and reference any addendum. The actual documented version remains identifiable.

  6. Overall architecture

    Which corresponding assumption would you check first in your project when an in-house media service is explicitly commissioned?

    In the example: Operate the video service and practice datastore as separate boundaries. The practice API holds only the necessary metadata and notes.

  7. Critical flow

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

    In the example: Keep the encounter in dokumentation_offen. Clinicians record the care actually provided and the next step.

  8. Bottlenecks and trade-offs

    Which corresponding assumption would you check first in your project when consultations regularly exceed their planned duration?

    In the example: Separate waiting-room time from API latency. Delayed treatment requires practice organisation rather than more instances.

  9. Operations and security

    Which corresponding assumption would you check first in your project when a specifically governed exceptional access route is needed?

    In the example: Limit support views to operational metadata. Clinicians see clinical content according to case assignment.

  10. Final design

    Which corresponding assumption would you check first in your project when additional appointment and consultation types are introduced?

    In the example: Book T-71, lose the room response and complete the encounter with a note. The result is one booking, one associated room and one evidenced completion.