Inpatient EHR Clinical Data Investigations Images Diagnosis Card - hmislk/hmis GitHub Wiki

Inpatient EHR — Clinical Data (Investigations / Images / Diagnosis Card)

The clinical data section of the inpatient EHR provides access to investigation results, clinical images, the drug chart, and the diagnosis card — all within the context of the current BHT.

Entry points: Admission Profile → Clinical Data panel → Investigations, Images, Drug Chart, Diagnosis Card
XHTML:

  • /inward/clinical_data_investigations.xhtml — investigation results
  • /inward/clinical_data_images.xhtml — clinical images
  • /inward/clinical_data_drug_chart.xhtml — drug/medication chart
  • /inward/clinical_data_diagnosis_card.xhtml — diagnosis card
    Controller: InpatientClinicalDataController

Investigations

The investigations view shows all lab investigations ordered for this BHT as PatientInvestigation records. Each record shows:

  • Investigation name
  • Ordered date
  • Result values (when reported)
  • Reference ranges
  • Interpretation (normal / abnormal)

Results are read from the LIMS module and displayed inline on the inpatient dashboard without requiring staff to switch to the lab module.


Clinical Images

The images page allows clinical photographs and other image files to be attached to the admission record. Images are stored as ClinicalFindingValue records with clinicalFindingValueType = PatientImage and are rendered using PrimeFaces p:graphicImage. Uploaded images can be:

  • Captured via webcam (PrimeFaces p:imageCropper / camera capture)
  • Uploaded from disk

Each image record can carry a description note.


Drug Chart

The drug chart page (clinical_data_drug_chart.xhtml) shows all medications for the BHT in a consolidated chart view, including:

  • Ward medications (inpatient prescriptions)
  • Pharmacy issues (dispensing records)

This gives a complete picture of what was ordered versus what was actually dispensed.


Diagnosis Card

The diagnosis card (clinical_data_diagnosis_card.xhtml) is a printable summary document for the inpatient episode. It is generated from a configurable Document Template and supports dynamic placeholders:

Placeholder Content
{name} Patient name with title
{age} Age
{sex} Gender
{address} Address
{bht} BHT number
{doa} Date of admission
{dod} Date of discharge
{dx} Current diagnoses (structured)
{past-dx} Past diagnoses from patient history
{rx} Inpatient ward medications
{drx} Discharge medications
{ix} Investigations
{allergies} Recorded allergies
{height}, {weight}, {bmi} Vitals
{bp}, {pr}, {rr}, {sat} Vital sign readings

Templates are created and managed by administrators. See Inpatient — Discharge Summary and Diagnosis Card for the full discharge summary workflow.


Related Articles