Skip to content

Inpatient (IPD)

Manage admitted patients end to end: ward and bed infrastructure, admissions, bed transfers, and the discharge bill that settles the stay.

Wards & Beds

The location hierarchy is Building → Floor → Ward → Bed:

  • Medical → IPD → Buildings (/medical/ipd/buildings) and Floors (/medical/ipd/floors) — define the physical structure (optional but recommended so the bed board reads "Ward — Building / Floor").
  • Medical → IPD → Wards (/medical/ipd/wards) — define wards/units; each carries a type (General / ICU / HDU / Maternity / Pediatric / Isolation / Cabin wing) and an optional Floor.
  • Medical → IPD → Beds (/medical/ipd/beds) — define beds per ward and track status Available / Occupied / Cleaning / Blocked. A bed has a category (Standard or Cabin), an amenities note (e.g. AC, attached bath, TV), and an optional daily rate. A bed with an active admission can't be deleted — discharge or transfer the patient first; the delete action reports the real reason instead of a false success.
  • Bed Board (/medical/ipd/beds/board) — a live, ward-grouped visual of every bed, colour-coded by status, with available/occupied counts. Occupied beds show the patient name + MRN; clicking one opens the patient action panel with quick links to the patient's EMR, place a Lab/Radiology order, record a Diet order (Regular / Diabetic / Soft / Liquid / NPO), and Discharge. (Refer and Death capture live on the Emergency disposition; the panel notes this.) Empty beds still link to bed configuration.

Screenshot: Bed board — TODO

Admissions

Medical → IPD → Admissions (/medical/ipd/admissions) — admit a patient: assign a bed and admitting provider, set the admit date. Track status Admitted → Transferred → Discharged; filter by status and search by patient name/MRN.

  • One active admission per patient — the system blocks admitting a patient who already has an open admission (no orphaned beds or double‑billing); discharge or transfer the existing one first.
  • Bed/ward transfer — for an admitted patient, the Transfer card moves them to another available bed: it frees the old bed, occupies the new one, keeps the patient Admitted, and records the move on the admission for the audit trail.

Discharge bills

Medical → IPD → Discharge Bills (/medical/ipd/discharge-bills) aggregates the whole stay:

  1. Generate a provisional bill from all stay charges (drugs, procedures, bed-days, services), each line with VAT.
  2. Refresh Charges to pull the latest; Save Adjustments to apply a Discount, record Deposit Paid, and add notes.
  3. Mark Pharmacy Cleared — required before finalising (no discharge with unsettled medication).
  4. Finalise Bill — locks it (Provisional → Finalized).
  5. Mark Settled once paid (Finalized → Settled), or Cancel Bill.

Screenshot: Discharge bill — TODO

Pharmacy clearance gate

A discharge bill can't be finalised until pharmacy is cleared — this prevents discharging a patient with open medication accounts.

When a patient is set to Discharged, pharmacy is automatically notified (a Settle patient dues alert) so they can clear the account before the bill is finalised.

Discharge summary

Medical → IPD → Discharge Summaries (/medical/ipd/discharge-summaries, or the Discharge summary button on a discharged admission) — the clinical discharge document: final diagnosis (with optional ICD code), brief history, treatment given, condition at discharge, medications on discharge, and follow-up advice/date. It prints on the government masthead for handing to the patient.

Print is gated on billing clearance

A discharge summary can only be printed once the patient's discharge bill is Finalized or Settled — so the clinical summary never leaves the counter before the account is cleared. Once printed, the summary locks against further edits.

Care level, referral & theatre routing

  • Care level — every admission records its level of care: ADT (adult / general), HDU or ICU.
  • Refer out — from an active admission, the Refer out / Theatre panel captures the target facility and reason, marks the admission Referred, and frees the bed.
  • To theatre — the same panel links straight to the surgery booking form, pre-filled with the patient, to route them to OT / anaesthesia.