{% extends 'base.html' %} {% load static %} {% block title %}{% if form.instance.pk %}Edit{% else %}Create{% endif %} OR Block{% endblock %} {% block css %} {% endblock %} {% block content %}

{% if form.instance.pk %}Edit{% else %}Create{% endif %} OR Block

{% if form.instance.pk %}Edit OR Block{% else %}Create New OR Block{% endif %}

{% if form.instance.pk %} Modify the details of this operating room block. Changes will affect all scheduled cases. {% else %} Create a new operating room block to schedule surgical cases and allocate resources. {% endif %}

Block scheduling helps optimize OR utilization
{% csrf_token %}
Basic Information
{{ form.operating_room }} {% if form.operating_room.errors %}
{{ form.operating_room.errors.0 }}
{% endif %}
Select the operating room for this block
{{ form.block_type }} {% if form.block_type.errors %}
{{ form.block_type.errors.0 }}
{% endif %}
Type of surgical block
{{ form.date }} {% if form.date.errors %}
{{ form.date.errors.0 }}
{% endif %}
{{ form.start_time }} {% if form.start_time.errors %}
{{ form.start_time.errors.0 }}
{% endif %}
{{ form.end_time }} {% if form.end_time.errors %}
{{ form.end_time.errors.0 }}
{% endif %}
0 hours
Team Assignment
{{ form.assigned_surgeon }} {% if form.assigned_surgeon.errors %}
{{ form.assigned_surgeon.errors.0 }}
{% endif %}
Lead surgeon for this block
{{ form.assigned_anesthesiologist }} {% if form.assigned_anesthesiologist.errors %}
{{ form.assigned_anesthesiologist.errors.0 }}
{% endif %}
Assigned anesthesiologist
{{ form.assigned_nurses }} {% if form.assigned_nurses.errors %}
{{ form.assigned_nurses.errors.0 }}
{% endif %}
Select nursing staff for this block
Block Configuration
{{ form.priority }} {% if form.priority.errors %}
{{ form.priority.errors.0 }}
{% endif %}
Block priority for scheduling conflicts
{{ form.max_cases }} {% if form.max_cases.errors %}
{{ form.max_cases.errors.0 }}
{% endif %}
Maximum number of cases for this block
{{ form.turnover_time }} {% if form.turnover_time.errors %}
{{ form.turnover_time.errors.0 }}
{% endif %}
Time between cases for room preparation
{{ form.allow_emergency_cases }}
Allow emergency cases to be scheduled in this block
Notes and Instructions
{{ form.notes }} {% if form.notes.errors %}
{{ form.notes.errors.0 }}
{% endif %}
Special instructions or notes for this block
{{ form.setup_requirements }} {% if form.setup_requirements.errors %}
{{ form.setup_requirements.errors.0 }}
{% endif %}
Special equipment or setup requirements
Block Preview
Operating Room: Not selected
Date & Time: Not set
Duration: 0 hours
Block Type: Not selected
Primary Surgeon: Not assigned
Max Cases: Not set
Cancel
{% endblock %} {% block js %} {% endblock %}