Inpatient Room Discharge - hmislk/hmis GitHub Wiki

Inpatient — Room Discharge

Room discharge formally ends the patient's room occupancy. It is performed by ward/nursing staff after the doctor has recorded a clinical discharge. Once room discharge is complete, the patient is no longer shown on the room occupancy board. Nursing discharge (the next stage) can then be confirmed, after which the final bill becomes available.

Page: Admission Profile → Discharge panel → Room Discharge
XHTML: /inward/inward_discharge.xhtml
Controller: DischargeController / RoomOccupancyController.dischargeFromRoom()
Privilege: InwardRoom (or equivalent discharge privilege)


Prerequisites

Before room discharge is allowed, the system may check (depending on configuration):

  • Clinical discharge has been recorded by the doctor (Issue #19307)
  • No pending pharmacy requests are outstanding (Issue #19308)
  • No pending financial transactions
  • The patient is not still in theatre. The last ward room cannot be discharged while a theatre stay (from Send to Theatre) is still open, because theatre charges keep running by the hour until the patient is returned to the ward. The message names the theatre and the time the patient was accepted there. Finish the theatre journey first (Proc. Done → Return to Ward on the Theatre Dashboard), then discharge the room. See Sending a Patient to Theatre.

Room discharge blocked while the patient is still in theatre

Room discharge refused: the theatre stay is still open, so its charges are still running.


Discharge Form

Field Notes
Discharge Date/Time Defaults to current timestamp; can be adjusted
Discharge Condition Optional — state in which patient left (if not already set in clinical discharge)

What Happens on Discharge

  • patientEncounter.discharged = true
  • patientEncounter.dateOfDischarge = discharge timestamp
  • The current PatientRoom record's end time is set to the discharge timestamp
  • The room moves from Occupied to Vacant on the Room Occupancy board
  • Timed services (room rent, oxygen, etc.) stop accruing at the discharge timestamp

After Room Discharge

Once room discharge is recorded:

  • The BHT status on the billing screens shows as "Discharged" (from room)
  • The Admission Profile Room Discharge button reflects completed status
  • Nursing Discharge becomes available as the next step — nursing staff confirm all rooms are cleared, pharmacy is resolved, and the patient is ready to leave
  • Final Bill Generation becomes available only after nursing discharge is also confirmed

Related Articles