{% extends "base.html" %} {% load static %} {% block title %}{{ object.room_number }} - Operating Room Details - {{ block.super }}{% endblock %} {% block content %}

OR {{ object.room_number }} - {{ object.room_name }}

{% if object.status != 'AVAILABLE' %}
Room Status: {{ object.get_status_display }} {% if object.current_case %}
Current Case: {{ object.current_case.primary_procedure }} — {{ object.current_case.patient }}
{% endif %}
{% endif %}

Room Information

Room Number:{{ object.room_number }}
Room Name:{{ object.room_name }}
Room Type:{{ object.get_room_type_display }}
Status: {{ object.get_status_display }}
Floor:Floor {{ object.floor_number }}
Building:{{ object.building|default:"Not specified" }}
Wing:{{ object.wing|default:"Not specified" }}
Room Size:{{ object.room_size|default:"Not specified" }}{% if object.room_size %} m²{% endif %}
Ceiling Height:{{ object.ceiling_height|default:"Not specified" }}{% if object.ceiling_height %} m{% endif %}
Emergency Cases: {% if object.accepts_emergency %} Accepts {% else %} Does not accept {% endif %}

Capabilities & Equipment

Surgical Capabilities
{% if object.supports_robotic %}Robotic Surgery{% endif %} {% if object.supports_laparoscopic %}Laparoscopic{% endif %} {% if object.supports_microscopy %}Microscopy{% endif %} {% if object.supports_laser %}Laser Surgery{% endif %}
Imaging Capabilities
{% if object.has_c_arm %}C-Arm{% endif %} {% if object.has_ct %}Intraop CT{% endif %} {% if object.has_mri %}Intraop MRI{% endif %} {% if object.has_ultrasound %}Ultrasound{% endif %} {% if object.has_neuromonitoring %}Neuromonitoring{% endif %}
Equipment List
{% if object.equipment_list %}
    {% for equipment in object.equipment_list %}
  • {{ equipment }}
  • {% endfor %}
{% else %}

No equipment list specified

{% endif %}
Special Features
{% if object.special_features %}
    {% for feature in object.special_features %}
  • {{ feature }}
  • {% endfor %}
{% else %}

No special features specified

{% endif %}

Environmental Controls

{{ object.temperature_min }}°C – {{ object.temperature_max }}°C
{{ object.humidity_min }}% – {{ object.humidity_max }}%
Air Changes/Hour:{{ object.air_changes_per_hour }}
Pressure: {% if object.positive_pressure %} Positive {% else %} Negative {% endif %}
{% if object.current_case %}

Current Case

Case Number:{{ object.current_case.case_number }}
Patient:{{ object.current_case.patient }}
Primary Surgeon:{{ object.current_case.primary_surgeon }}
Procedure:{{ object.current_case.primary_procedure }}
Start Time: {% if object.current_case.actual_start %} {{ object.current_case.actual_start|date:"M d, H:i" }} {% else %} Not started {% endif %}
Estimated/Actual End: {% if object.current_case.actual_end %} {{ object.current_case.actual_end|date:"M d, H:i" }} {% else %} {{ object.current_case.scheduled_start|date:"M d, H:i" }} + {{ object.current_case.estimated_duration }} min {% endif %}
Case Type:{{ object.current_case.get_case_type_display }}
Status:{{ object.current_case.get_status_display }}
{% endif %}

Quick Stats

{{ room_stats.total_cases|default:0 }}
Total Cases
{% if room_stats.average_case_duration %} {{ room_stats.average_case_duration }} {% else %} 0 {% endif %}
Avg Duration
{{ object.turnover_time }}
Std Turnover (min)
{{ room_stats.cases_this_month|default:0 }}
Cases This Month

Staffing Requirements

Required Nurses:{{ object.required_nurses }}
Required Technicians:{{ object.required_techs }}
Max Case Duration:{{ object.max_case_duration }} min

Recent Activity

{% if recent_cases %} {% for case in recent_cases %}
{{ case.primary_procedure|truncatechars:30 }}
{{ case.patient }} — {{ case.scheduled_start|date:"M d, H:i" }}
{{ case.get_status_display }}
{% endfor %} {% else %}

No recent activity

{% endif %}
{% endblock %}