{% extends "base.html" %} {% load static %} {% block title %}Bed Management{% endblock %} {% block content %}

Bed Management

Total Beds
{{ total_beds|default:0 }}
Available
{{ available_beds|default:0 }}
Occupied
{{ occupied_beds|default:0 }}
Occupancy Rate
{{ occupancy_rate|default:0 }}%

Bed List

{% if object_list %}
{% for bed in object_list %}
Bed {{ bed.bed_number }}
{{ bed.get_status_display }}
Ward:
{{ bed.ward.name }}
Room:
{{ bed.room_number|default:"Not assigned" }}
Type:
{{ bed.get_bed_type_display }}
{% if bed.current_patient %}
Patient: {{ bed.current_patient.medical_record_number }}
{% endif %}
{% if bed.has_oxygen %} O2 {% endif %} {% if bed.has_suction %} Suction {% endif %} {% if bed.has_monitor %} Monitor {% endif %} {% if bed.is_isolation %} Isolation {% endif %}
{% endfor %}
{% else %}
No Beds Found

No beds match your current filters. Try adjusting your search criteria.

Add First Bed
{% endif %}
{% if is_paginated %} {% endif %}
{% endblock %}