System Design Atlas

Telemedicine appointments and care records

08 / 10Worked example

Investigating bottlenecks

Which measurement explains long waiting-room times when technical response times are low?

The failure sequence shows where load and retries interact. The diagnostic plan treats measured waiting time, processing duration and business conflicts separately.

Starting point Keep the encounter in dokumentation_offen.

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.

Diagnose the limiting resource

Distinguish start bursts from appointment conflicts

Start backlog1 appointment/s
Room queue + response timeMeasure
Appointment conflictB-71
Interval lock + conflict rateMeasure

A start backlog is a technical issue; an overlapping interval is correctly rejected by the domain rule.

Patients wait despite spare server capacity. Separate waiting-room time from API latency. Delayed treatment calls for changes to practice organisation.

From signal to action

SignalValidationReaction
Explain waiting timePatients wait despite spare server capacity.Separate waiting-room time from API latency.
Conflicts on the shared entityTwo 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.Count expected conflicts separately from technical errors.
Peak test profile exceeded60 appointment starts in 60 s = 1 start/sConversations regularly exceed planned duration.

Explain waiting time

Validation
Patients wait despite spare server capacity.
Reaction
Separate waiting-room time from API latency.

Conflicts on the shared entity

Validation
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.
Reaction
Count expected conflicts separately from technical errors.

Peak test profile exceeded

Validation
60 appointment starts in 60 s = 1 start/s
Reaction
Conversations regularly exceed planned duration.

Explain waiting time

Explain waiting time

Separate waiting-room time from API latency.

Patients wait despite spare server capacity.

Delayed treatment calls for changes to practice organisation rather than more API instances.

Alternative considered
Only technical metrics do not explain the waiting time.
Trade-off
Appointment and operational data need limited, purpose-bound correlation.
Reassess
Conversations regularly exceed planned duration.

Terms in this step

Explain waiting time
Delayed treatment calls for changes to practice organisation rather than more API instances.

Try it yourself

Waiting-room time increases while API latency remains normal. Choose a measurement and the responsible role.

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
Measure time from authorized entry to start of the call separately from technical response time.
Second part of the solution
Practice staff check delayed appointments and consultation duration; additional API instances do not resolve organisational waiting time.

Apply to your project

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

Step 9 examines: Restrict access.