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:


2. One-Click Bed Allocation

To admit a patient directly from the Bed Matrix:

  1. Click on any 🟢 Vacant Bed tile.
  2. Select Allot Bed to Patient.
  3. Search and select the patient by UHID or Mobile Number.
  4. 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:

  1. Click the patient's active bed tile and select Transfer / Shift Bed.
  2. Select the Target Ward & Bed Number.
  3. Enter transfer reason (e.g. Clinical condition stabilized, transferred to recovery ward).
  4. Click Confirm Bed Transfer.
  5. The system automatically recalculates the pro-rata room rent per day in the billing ledger without requiring manual accounting adjustments.