Inpatient EHR Discharge Medications - hmislk/hmis GitHub Wiki

Inpatient EHR — Discharge Medications

Discharge medications are the take-home prescriptions written for the patient at the time of discharge. They are distinct from ward medications (drugs given during the stay) and appear on the printed discharge summary.

Page: Admission Profile → Clinical Data → Discharge Medications, or from inside a Clinical Assessment → Discharge Medicines tab
XHTML: /inward/inward_assessment_discharge_medicines.xhtml
Controller: InpatientClinicalDataController
Field: dischargeMedicine / dischargeMedicines
Privilege: InpatientClinicalAssessment


Adding a Discharge Medication

Field Required Notes
Medicine Yes Auto-complete search across the pharmaceutical item master (minimum 4 characters)
Dose No Numeric value
Dose Unit No Selected from units available for the chosen medicine
Frequency No e.g., Once daily, Three times daily
Duration No Numeric value
Duration Unit No Days, weeks, etc.
Indoor / Outdoor Auto Discharge medications are marked indoor = false (outdoor prescription)

Click Add. The allergy check fires — if the prescribed drug's VTM matches a recorded patient allergy, a yellow ALLERGY ALERT growl is shown.

The prescription is saved as a ClinicalFindingValue with clinicalFindingValueType = DischargeMedicine.


Discharge Medications List

The page shows all discharge medications added so far in a single list:

Column Content
(tick box) Select rows to issue from a pharmacy (shown to users with the discharge-issue privilege)
Medications Formatted prescription (drug name, dose, frequency, duration)
Prescribed By Clinician who added the prescription
Prescribed At Date and time
Comment Any note entered when the medication was added
(remove) The × button removes that prescription from the list

Issuing Discharge Medicines from a Pharmacy

Pharmacy staff can turn the discharge prescription into an actual discharge issue bill in one step, without re-keying the medicines.

  1. Tick the discharge medicines to issue (one, several, or all).
  2. Click Create Discharge Issue Bill (in the panel header).
  3. The system converts each ticked prescription into an issue line — picking a batch from your logged-in pharmacy (earliest expiry first) and calculating the quantity from the prescription — and opens the Issue Discharge Medicines page with the lines pre-filled.
  4. Review batch and quantity, then settle. Discharge medicines are issued at the retail rate with no inward service charge.

The button appears only for users who have the Pharmacy Discharge Medicine Issue privilege. A Prescription → Dispensing report on the issue page flags any medicine that could not be issued in full (out of stock, low stock, or a quantity that had to be defaulted) so nothing is missed.

See Issue Discharge Medicines for the full pharmacy-side workflow.


On the Discharge Summary

Discharge medications appear in the Discharge Summary Letter and the printed Diagnosis Card under the "Discharge Rx" section. The template uses the {drx} placeholder which is populated by the discharge medicines list.


Navigation

  • Back to Assessment — return to the parent clinical assessment
  • Assessment List — return to the assessment list
  • Inpatient Dashboard — return to the Admission Profile
  • Inward Medicines — switch to the ward medications view

Related Articles