{% extends 'base.html' %} {% load static %} {% block title %}Delete OR Block - {{ block.operating_room.name }}{% endblock %} {% block css %} {% endblock %} {% block content %}

Delete OR Block

Delete Operating Room Block

You are about to permanently delete this OR block. This action cannot be undone and will affect all scheduled cases within this block.

Critical Warning
Block Information
Operating Room
{{ block.operating_room.name }}
Date & Time
{{ block.date|date:"l, M d, Y" }}
{{ block.start_time|time:"g:i A" }} - {{ block.end_time|time:"g:i A" }}
Block Type
{{ block.get_block_type_display }}
Primary Surgeon
{% if block.assigned_surgeon %} {{ block.assigned_surgeon.get_full_name }} {% else %} Not assigned {% endif %}
Anesthesiologist
{% if block.assigned_anesthesiologist %} {{ block.assigned_anesthesiologist.get_full_name }} {% else %} Not assigned {% endif %}
Status
{% if block.status == 'scheduled' %} Scheduled {% elif block.status == 'in_progress' %} In Progress {% elif block.status == 'completed' %} Completed {% elif block.status == 'cancelled' %} Cancelled {% endif %}
Impact Analysis
{{ affected_cases.count }}
Scheduled Cases
{{ affected_staff.count }}
Affected Staff
{{ affected_patients.count }}
Affected Patients
{% if affected_cases %}
Affected Surgical Cases
{% for case in affected_cases %}
{{ case.procedure_name }}
Patient: {{ case.patient.get_full_name }} | Surgeon: {{ case.surgeon.get_full_name }} | Time: {{ case.scheduled_start_time|time:"g:i A" }}
{% if case.status == 'scheduled' %} Scheduled {% elif case.status == 'confirmed' %} Confirmed {% elif case.status == 'in_progress' %} In Progress {% endif %}
{% endfor %}
{% endif %}
Consider These Alternatives

Before deleting this block, consider these alternative actions:

Deletion Confirmation Required
{% csrf_token %}
DELETE {{ block.operating_room.name }} {{ block.date|date:"Y-m-d" }}
This confirmation helps prevent accidental deletions.
Cancel
{% endblock %} {% block js %} {% endblock %}