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
Practice platform
The practice stores metadata and notes; consultation media flows directly through the video service.
Domain modules within the application
Inside the practice API · five domain modules
Appointment booking protects B-71; consent and consultation access are combined in the access decision.
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
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?