CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Healthcare

πŸ₯ Healthcare Β· Sequence

Pharmacy e-Prescription Fulfilment

How an e-prescription is filled by a pharmacy: prescription verification, stock check, substitution consent, payment and delivery.

More Healthcare templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Pharmacist verifies the prescription before dispensing
  • Generic substitution needs the patient's consent
  • Controlled drugs need the original prescription at delivery

Prompt used

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.

Mermaid code
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

Inside this diagram

A sequence diagram with 5 participants and 11 messages, in the order they happen.

People

  • Patient
  • Pharmacist

Systems

  • Pharmacy App
  • Inventory Service
  • Delivery

Steps in order

  • 1. Patient β†’ Pharmacy App: Upload e-prescription
  • 2. Pharmacy App β†’ Pharmacist: Verify prescription
  • 3. Pharmacist β†’ Pharmacist: Check doctor reg. and dosage
  • 4. Pharmacist β†’ Inventory Service: Check stock
  • 5. Inventory Service β†’ Pharmacist: Brand out of stock, generic available (reply)
  • 6. Pharmacist β†’ Pharmacy App: Suggest generic substitute
  • 7. Pharmacy App β†’ Patient: Approve substitute?
  • 8. Patient β†’ Pharmacy App: Approve and pay (reply)
  • 9. Pharmacy App β†’ Delivery: Pack and dispatch
  • 10. Delivery β†’ Patient: Delivered (reply)
  • 11. Pharmacist β†’ Inventory Service: Log dispense record

Make your own diagram like this

Describe your own system in plain English and the AI sequence diagram generator draws it in seconds, in the same style as this template.

Related templates

C4 ArchitectureProHealthcare

Hospital Management System Architecture

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.

SequenceHealthcare

Patient Appointment Booking Sequence

How a patient books a doctor's appointment online: checking free slots, holding one, paying the consultation fee and getting a confirmation.

FlowchartHealthcare

EHR Integration via HL7 / FHIR

How a hospital's EHR exchanges data with labs, radiology and insurers through an integration engine, translating between HL7 v2 and FHIR.

SequenceHealthcare

Telemedicine Video Consultation

An online doctor consultation from booking to e-prescription: payment, a secure video room, consultation notes and the prescription sent to the patient.

SequenceHealthcare

Cashless Hospitalisation Pre-Authorisation

How a cashless health insurance claim works at a hospital: pre-authorisation with the TPA, treatment, and final bill settlement directly with the insurer.

Database ERDHealthcare

Hospital Database Schema

A core relational schema for a hospital: patients, doctors, departments, appointments, admissions, beds, prescriptions and bills.