Inpatient Discharge Summary and Diagnosis Card - hmislk/hmis GitHub Wiki
Inpatient — Discharge Summary and Diagnosis Card
The discharge summary and diagnosis card are printable clinical documents generated at the end of an admission. The discharge summary is a narrative letter for the patient and referring doctor; the diagnosis card is a structured summary with coded diagnoses and prescriptions.
Discharge Summary (BHT Summary Letter)
Page: Admission Profile → Reports → Discharge Summary
XHTML: /inward/bht_summery_letter.xhtml
Controller: InwardReportController
The discharge summary can be generated for one BHT or for a batch of BHTs from a date range. Filters:
- From / To date range
- Admission Type
- BHT Type (payment method: Cash, Credit, etc.)
- Credit company (for insurance cases)
- Count (limit number of records)
Actions:
- Process All — generates the summary list
- Print — prints the summary letter for selected BHTs
The letter presents: patient demographics, admission and discharge dates, diagnosis, treatment summary, and discharge condition.
Diagnosis Card
Page: Admission Profile → Clinical Data → Diagnosis Card
XHTML: /inward/clinical_data_diagnosis_card.xhtml
Controller: InpatientClinicalDataController
The diagnosis card is a configurable template-based document. The administrator creates a Document Template of type DiagnosisCard and populates it with placeholders. At generation time, InpatientClinicalDataController.createDiagnosisCard() replaces placeholders with live patient data.
Supported Placeholders
| Placeholder | Data |
|---|---|
{name} |
Patient name with title |
{age} |
Age |
{sex} |
Gender |
{address} |
Address |
{bht} |
BHT number |
{doa} |
Date of admission |
{dod} |
Date of discharge |
{dx} |
Current episode diagnoses |
{past-dx} |
Past diagnoses from patient history |
{rx} |
Ward medications (inpatient prescriptions) |
{drx} |
Discharge medications |
{ix} |
Investigations |
{procedures} |
Procedures performed |
{allergies} |
Recorded allergies |
{height}, {weight}, {bmi} |
Anthropometry |
{bp}, {pr}, {rr}, {sat} |
Vital signs |
{temp-series}, {bp-series}, etc. |
Time-series chart data for vitals |
Download as Word Document
The diagnosis card can be downloaded as a .docx file via InpatientClinicalDataController.downloadSampleWordFile(). The Word document is generated using Apache POI, preserving the template formatting with data substituted inline.
Discharge Book
Page: /inward/discharge_book.xhtml
Controller: InwardReportController.fillDischargeBookPaymentFinalizedNoChanges()
The discharge book is a register of all discharged patients for a period. Used by management for census reporting. Filters: date range, admission type, payment mode. Can be printed or exported.
Related Articles
- Inpatient EHR — Clinical Discharge — clinical discharge must be recorded first
- Inpatient EHR — Clinical Data — diagnosis card template management
- Inpatient EHR — Ward Medications —
{rx}placeholder source - Inpatient EHR — Discharge Medications —
{drx}placeholder source - Inpatient — Room Discharge — required before generating discharge documents