{% 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.get_full_name }}
{% 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.get_full_name }}
Primary Surgeon: {{ object.current_case.primary_surgeon.get_full_name }}
Procedure: {{ object.current_case.primary_procedure }}
Start Time: {{ object.current_case.actual_start_time|default:"Not started" }}
Estimated End: {{ object.current_case.estimated_end_time|default:"Not specified" }}
Case Type: {{ object.current_case.get_case_type_display }}
Status: {{ object.current_case.get_status_display }}
{% endif %}
Quick Stats
{{ room_stats.cases_today|default:0 }}
Cases Today
{{ room_stats.utilization|default:0 }}%
Utilization
{{ room_stats.avg_turnover|default:0 }}
Avg Turnover (min)
{{ room_stats.cases_this_week|default:0 }}
Cases This Week
Staffing Requirements
Required Nurses: {{ object.required_nurses }}
Required Technicians: {{ object.required_techs }}
Max Case Duration: {{ object.max_case_duration }} min
Scheduling Information
Turnover Time: {{ object.turnover_time }} min
Cleaning Time: {{ object.cleaning_time }} min
Active Status: {% if object.is_active %} Active {% else %} Inactive {% endif %}
Recent Activity
{% if recent_cases %} {% for case in recent_cases %}
{{ case.primary_procedure|truncatechars:30 }}
{{ case.patient.get_full_name }} - {{ case.scheduled_start_time|date:"M d, H:i" }}
{{ case.get_status_display }}
{% endfor %} {% else %}

No recent activity

{% endif %}
{% endblock %}