Chapter 7: IPD Ward Management & Visual Bed Matrix Grid
The Visual Bed Matrix Grid (ipd_bed_matrix.php) gives hospital administration, nursing supervisors, and admission desks a real-time, color-coded visual overview of all wards, rooms, and beds across the hospital.
1. Visual Bed Matrix Grid Layout
The bed matrix represents all hospital wards arranged logically by floor and category:
┌─────────────────────────────────────────────────────────────────────────────────┐
│ VISUAL BED MATRIX COMMAND GRID │
├─────────────────────────────────────────────────────────────────────────────────┤
│ [All Wards ▼] [Filter: Available Only] 🟢 Available: 10 🔴 Occupied: 48 │
├─────────────────────────────────────────────────────────────────────────────────┤
│ 🏥 GENERAL WARD - MALE (1st Floor) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Bed GM-01 │ │ Bed GM-02 │ │ Bed GM-03 │ │ Bed GM-04 │ │
│ │ 🔴 OCCUPIED │ │ 🔴 OCCUPIED │ │ 🟢 VACANT │ │ 🟡 CLEANING │ │
│ │ Rajesh Verma │ │ Amit Joshi │ │ [Allot Bed] │ │ Housekeeping │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
│ 🏥 INTENSIVE CARE UNIT (ICU - 2nd Floor) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Bed ICU-01 │ │ Bed ICU-02 │ │ Bed ICU-03 │ │ Bed ICU-04 │ │
│ │ 🔴 OCCUPIED │ │ 🔴 OCCUPIED │ │ 🔴 OCCUPIED │ │ 🟢 VACANT │ │
│ │ Ventilator │ │ Multi-Monitor│ │ Post-Surg │ │ [Allot Bed] │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
│ 🏥 DELUXE PRIVATE ROOMS (3rd Floor) │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Room 301 │ │ Room 302 │ │ Room 303 │ │ Room 304 │ │
│ │ 🟢 VACANT │ │ 🔴 OCCUPIED │ │ 🟢 VACANT │ │ 🔴 OCCUPIED │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────┘
Color Indicators:
- 🟢 Green (Vacant / Ready): Cleaned, sanitized, and ready for immediate patient allocation.
- 🔴 Red (Occupied): Patient admitted. Displays patient name, UHID, admitting doctor, and admission date.
- 🟡 Yellow (Under Cleaning / Maintenance): Patient discharged, awaiting housekeeping sanitization before re-allotment.
- 🔵 Blue (Reserved / Planned Admission): Reserved for planned elective surgery or scheduled transfer.
2. One-Click Bed Allocation
To admit a patient directly from the Bed Matrix:
- Click on any 🟢 Vacant Bed tile.
- Select Allot Bed to Patient.
- Search and select the patient by UHID or Mobile Number.
- The system opens the IPD Admission Form pre-populated with the selected Ward and Bed number.
3. Ward & Bed Transfer (Shifting Workflow)
When an admitted patient is stepped down from ICU to General Ward or upgraded to Deluxe:
- Click the patient's active bed tile and select Transfer / Shift Bed.
- Select the Target Ward & Bed Number.
- Enter transfer reason (e.g. Clinical condition stabilized, transferred to recovery ward).
- Click Confirm Bed Transfer.
- The system automatically recalculates the pro-rata room rent per day in the billing ledger without requiring manual accounting adjustments.