System Design Atlas

Telemedicine appointments and care records

06 / 10Worked example

The overall architecture

Which data belongs in the practice datastore and which belongs to the video service?

The data contract leads to this runtime topology: patient portal and practice interface → practice API → appointment and care datastore. Practice API → room worker → external video service. Media flows between participants and the video service; the practice API stores consultation metadata and clinical notes, without a recording. Document access is separately authorised through the practice API. Internal modules define domain code boundaries; a separate process has its own operational lifecycle.

Starting point Preserve the approved note and reference any addendum.

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.

Runtime architecture

Runtime architecture · separate practice data and media channel

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

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.

Domain modules within the application

Inside the practice API · five domain modules

Appointment bookingProtect the interval
ConsentPurpose + Revocation
Consultation accessAppointment + participants
Treatment documentationNotes + Addendums
Contact resolutionInterruption + next step

Appointment booking protects B-71; consent and consultation access are combined in the access decision.

Appointment booking protects the clinician's availability. Consent tracks purpose, text version and revocation. Consultation access binds access to the appointment and participants. Clinical documentation preserves approved notes and addenda. Contact resolution assigns interruption and follow-up handling to practice staff.

Operational boundaries

Runtime
Patient portal and practice interface → practice API → appointment and care datastore. Practice API → room worker → external video service. Media flows between participants and the video service; the practice API stores consultation metadata and clinical notes, without a recording. Document access is separately authorised through the practice API.
Persistence
Transactional store for appointment T-71, consent E-71 and care encounter F-71. Authoritative changes and their retry result are persisted together; external effects require separate evidence.

Delegate the media path

Delegate the media path

Operate the video service and practice datastore as separate boundaries.

Confidential media need a suitable service.

The practice API holds only necessary metadata and notes.

Alternative considered
Media via the same general API process increases scope and exposure.
Trade-off
Service integration requires a verified contract.
Reassess
Operating an in-house media service is explicitly commissioned.

Terms in this step

Delegate the media path
The practice API holds only necessary metadata and notes.

Try it yourself

Place video recording, consultation metadata and the clinical note within or outside the case boundary.

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 practice API stores necessary consultation metadata and approved notes in the care datastore.
Second part of the solution
Consultation media flows through the video service; recordings are outside this case's scope and are not created automatically.

Apply to your project

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

Step 7 examines: Document interruptions.