
🏥 Healthcare · Sequence
How an e-prescription is filled by a pharmacy: prescription verification, stock check, substitution consent, payment and delivery.
Drawing diagram…
Pharmacy sequence: the patient uploads or forwards an e-prescription, the pharmacist verifies the doctor's registration and dosage, the inventory service checks stock and suggests a generic substitute if a brand is out of stock, the patient consents to the substitute and pays, the order is packed and delivered, and the dispense record is logged.
sequenceDiagram actor P as Patient participant App as Pharmacy App actor Ph as Pharmacist participant Inv as Inventory Service participant Del as Delivery P->>App: Upload e-prescription App->>Ph: Verify prescription Ph->>Ph: Check doctor reg. and dosage Ph->>Inv: Check stock Inv-->>Ph: Brand out of stock, generic available Ph->>App: Suggest generic substitute App->>P: Approve substitute? P-->>App: Approve and pay App->>Del: Pack and dispatch Del-->>P: Delivered Ph->>Inv: Log dispense record
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.
An online doctor consultation from booking to e-prescription: payment, a secure video room, consultation notes and the prescription sent to the patient.
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.