
🏥 Healthcare · Sequence
An online doctor consultation from booking to e-prescription: payment, a secure video room, consultation notes and the prescription sent to the patient.
Drawing diagram…
Telemedicine sequence: the patient books a slot and pays, the appointment service creates a secure video room token at the booked time, patient and doctor join the video service (WebRTC), the doctor views past records from the EHR, writes consultation notes and an e-prescription, the prescription PDF is sent to the patient and optionally to a partner pharmacy for home delivery.
sequenceDiagram actor P as Patient participant App as Patient App participant AS as Appointment Service participant V as Video Service actor D as Doctor participant EHR as EHR participant Rx as e-Prescription Service P->>App: Book 6 pm slot and pay App->>AS: Create appointment AS->>V: Create room for 6 pm V-->>AS: Room tokens P->>V: Join call D->>V: Join call D->>EHR: Open patient history D->>EHR: Save consultation notes D->>Rx: Create e-prescription Rx-->>P: Prescription PDF Rx-)App: Offer pharmacy home delivery
A container-level view of a hospital management system: patient and staff apps, the core services behind them, and the external systems a hospital depends on, such as insurers and labs.
How a patient books a doctor's appointment online: checking free slots, holding one, paying the consultation fee and getting a confirmation.
How a hospital's EHR exchanges data with labs, radiology and insurers through an integration engine, translating between HL7 v2 and FHIR.
How a cashless health insurance claim works at a hospital: pre-authorisation with the TPA, treatment, and final bill settlement directly with the insurer.
A core relational schema for a hospital: patients, doctors, departments, appointments, admissions, beds, prescriptions and bills.
The lifecycle of a lab test in a hospital, from the doctor's order to the result in the patient's record, including recollection and critical values.