{% extends 'base.html' %} {% load static %} {% block title %}Surgical Cases{% endblock %} {% block content %}
| Patient | Procedure | Surgeon | Room | Scheduled | Case Type | Status | Actions |
|---|---|---|---|---|---|---|---|
|
{{ case.patient.first_name }} {{ case.patient.last_name }}
{% if case.patient.mrn %} MRN: {{ case.patient.mrn }}{% endif %} |
{{ case.primary_procedure }}
{% if case.procedure_codes %}
{{ case.procedure_codes|join:", " }} {% endif %} |
{% if case.primary_surgeon %} {{ case.primary_surgeon.first_name }} {{ case.primary_surgeon.last_name }} {% else %} N/A {% endif %} | {% if case.or_block and case.or_block.operating_room %} {{ case.or_block.operating_room.room_number }} {% else %} TBD {% endif %} |
{{ case.scheduled_start|date:"M d, Y H:i" }}
{% if case.estimated_duration %}
Est: {{ case.estimated_duration }} min {% endif %} |
{# Case type badge #} {% with ct=case.case_type %} {{ case.get_case_type_display }} {% endwith %} | {% with st=case.status %} {{ case.get_status_display }} {% endwith %} |