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

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