Skip to main content

Pharmacy Operations, Dispensing & Medication Safety

This section describes the complete pharmaceutical care workflows in the Pharmacy Dashboard, including prescription clinical verification, barcode-assisted dispensing, dangerous controlled drug registers with dual-witness authentication, inventory replenishment, cold chain monitoring, and billing.


1. Safety Architecture & Four-Stage Lifecycle

The Pharmacy module manages the complete prescription lifecycle from receipt through dispensing. It implements two independent safety layers:

  1. Prescribing Layer: Drug-allergy and drug-interaction advisory displayed to the Doctor at prescribing.
  2. Dispensing Layer (Enforced Safety Gate): Enforced hard stop (403 error) at dispensing that blocks the Pharmacist if a drug alert has not been acknowledged by the prescribing clinician.
  3. Four-Eyes Rule: System-enforced — the staff member who prepares the medication cannot perform the final check.
graph LR
A[Doctor Signs Rx] --> B[PENDING in Queue]
B --> C[Pharmacist: VERIFIES]
C --> D[Staff: PREPARES]
D --> E[Different Pharmacist: FINAL CHECK]
E --> F[DISPENSED & Posted to MAR]
IMPORTANT:

Patient Safety Checkpoint: Dispensing Hard Stop (Enforced Gate) If the linked prescription has an unacknowledged drug alert, dispensing is blocked with a hard stop (403 error). Contact the prescribing doctor immediately. The doctor must review and acknowledge the alert before dispensing can proceed. Document all communication. Never attempt to bypass this block.


2. Pharmacist Workflow — Four-Stage Lifecycle

Stage 1: Prescription Clinical Verification

  1. Open the Dispensing Queue. New prescriptions appear with status Pending.
  2. Confirm: patient Moana ID (check patient banner), drug name, dosage, route, frequency, and prescribing clinician.
  3. Run the drug-allergy and interaction check. If a HARD STOP alert appears, dispensing is blocked. Contact the prescribing doctor immediately.
Clinical Prescription Verification and Drug Interaction Screen
Clinical Prescription Verification and Drug Interaction Screen🔍 Click to enlarge
Clinical Prescription Verification and Drug Interaction Screen
Clinical Prescription Verification and Drug Interaction Screen🔍 Click to enlarge

Stage 2: Medication Preparation

  1. Assign the verified prescription for preparation.
  2. Select the correct drug, dose form, and quantity from pharmacy stock.
  3. Print and affix direction labels with patient name, Moana ID, drug name, dose, route, and administration instructions.
Dispensing Queue with Barcode Scan Verification and Label Preview
Dispensing Queue with Barcode Scan Verification and Label Preview🔍 Click to enlarge

Stage 3: Final Check (Four-Eyes Enforcement)

  1. A DIFFERENT qualified Pharmacist or Senior Pharmacist opens the order.
  2. Performs the independent final check against the physical package and prescription.
  3. The system prevents the same user from completing both preparation and final check.

Stage 4: Dispensing & Patient Counselling

  1. The final-checking Pharmacist dispenses the medication to the patient or inpatient ward.
  2. Pharmacy stock is automatically updated.
  3. A dispensing charge is automatically posted to the patient's billing account.
  4. The medication activates on the nursing Medication Administration Record (MAR).
  5. Provide and document patient medication counselling.

3. Controlled Drugs (Dangerous Drugs) Ledger

For Schedule II / Dangerous Drugs (e.g., Morphine, Fentanyl, Pethidine, Oxycodone, Methadone):

graph LR
A[1. Select Controlled Drug] --> B[2. Primary Pharmacist PIN]
B --> C[3. Witness Clinician PIN / Token]
C --> D[4. Perpetual Ledger Balanced]
  1. Cryptographic Witness Credential Check: A secondary witness clinician (Doctor or Registered Nurse) authenticates using a 5-minute secure cryptographic token. Dispensing without a witness fails outright.
  2. Discrepancy Investigation Gate: Any physical stock count discrepancy automatically opens an investigation. The investigation requires both a documented root cause AND a documented outcome before it can be closed (enforced at the server level).
Controlled Drug Digital Register with Dual Witness Authentication
Controlled Drug Digital Register with Dual Witness Authentication🔍 Click to enlarge
Controlled Drug Digital Register with Dual Witness Authentication
Controlled Drug Digital Register with Dual Witness Authentication🔍 Click to enlarge
Controlled Drug Digital Register with Dual Witness Authentication
Controlled Drug Digital Register with Dual Witness Authentication🔍 Click to enlarge

4. Pharmacy Training Scenarios (P1 – P3)

Scenario CodeScenario TitleAction PerformedExpected Clinical Outcome
P1Standard Four-Stage DispensingPharmacist receives prescription. Completes verification and preparation. A different Pharmacist conducts final check.Four-eyes rule enforced; stock deducted; charge posted; active on nursing MAR.
P2Hard Stop at DispensingPrescription in queue has an unacknowledged contraindicated alert. Pharmacist attempts to dispense.Hard stop fires (403); doctor contacted and acknowledges; override logged and dispensing completed.
P3Controlled Drug DispensingSenior Pharmacist dispenses Schedule 8 narcotic with cryptographic witness verification. Physical count reconciled.Controlled drug log completed; cryptographic witness recorded; perpetual stock balanced.