{% extends "base.html" %} {% load static %} {% block title %}Imaging Order - {{ object.order_number }}{% endblock %} {% block content %}

Imaging Order Details {{ object.order_number }} - {{ object.patient.get_full_name }}

{% if object.status == 'urgent' %}

Urgent Order

This is an urgent imaging order requiring immediate attention.

{% elif object.status == 'stat' %}

STAT Order

This is a STAT order requiring immediate processing.

{% endif %}

Order Information

Edit Order
Order Number: {{ object.order_number }}
Study Type: {{ object.study_description }}
Body Part: {{ object.body_part }}
Modality: {{ object.modality }}
Priority: {% if object.priority == 'STAT' %} STAT {% elif object.priority == 'URGENT' %} Urgent {% elif object.priority == 'ROUTINE' %} Routine {% elif object.priority == 'EMERGENCY' %} Emergency {% endif %}
Status: {% if object.status == 'PENDING' %} Pending {% elif object.status == 'SCHEDULED' %} Scheduled {% elif object.status == 'IN_PROGRESS' %} In Progress {% elif object.status == 'ON_HOLD' %} On Hold {% elif object.status == 'COMPLETED' %} Completed {% elif object.status == 'CANCELLED' %} Cancelled {% endif %}
Ordering Provider: {{ object.ordering_provider.get_full_name }}
Order Date: {{ object.order_date|date:"M d, Y g:i A" }}
Scheduled Date: {% if object.scheduled_date %} {{ object.scheduled_date|date:"M d, Y g:i A" }} {% else %} Not scheduled {% endif %}
Equipment: {% if object.equipment %} {{ object.equipment.name }} {% else %} Not assigned {% endif %}
Technologist: {% if object.technologist %} {{ object.technologist.get_full_name }} {% else %} Not assigned {% endif %}
Room: {% if object.room %} {{ object.room }} {% else %} Not assigned {% endif %}
{% if object.clinical_indication %}
Clinical Indication:
{{ object.clinical_indication }}
{% endif %} {% if object.special_instructions %}
Special Instructions:
{{ object.special_instructions }}
{% endif %} {% if object.contrast_required %}
Contrast Information

Contrast Required: Yes

{% if object.contrast_type %}

Contrast Type: {{ object.contrast_type }}

{% endif %} {% if object.contrast_amount %}

Amount: {{ object.contrast_amount }}

{% endif %}
{% endif %}

Patient Information

Name: {{ object.patient.get_full_name }}
MRN: {{ object.patient.mrn }}
DOB: {{ object.patient.date_of_birth|date:"M d, Y" }}
Age: {{ object.patient.age }} years
Gender: {{ object.patient.gender|title }}
Weight: {% if object.patient.weight %} {{ object.patient.weight }} kg {% else %} Not recorded {% endif %}
Allergies: {% if object.patient.allergies %} {{ object.patient.allergies }} {% else %} No known allergies {% endif %}
Pregnancy: {% if object.pregnancy_status %} {{ object.pregnancy_status }} {% else %} Not applicable {% endif %}
{% if object.imaging_studies.exists %}

Study Progress

{% for study in object.imaging_studies.all %}
Study {{ study.study_number }} {% if study.status == 'completed' %} Completed {% elif study.status == 'in_progress' %} In Progress {% endif %}

Started: {{ study.start_time|date:"M d, Y g:i A" }} {% if study.end_time %}
Completed: {{ study.end_time|date:"M d, Y g:i A" }} {% endif %}

View Study {% if study.dicom_files.exists %} {% endif %}
{% endfor %}
{% endif %}

Radiology Reports

{% for report in reports %}
Report #{{ report }}
{{ report.created_at|date:"M d, Y g:i A" }}
{% if report.status == 'draft' %} Draft {% elif report.status == 'preliminary' %} Preliminary {% elif report.status == 'final' %} Final {% endif %}

Radiologist: {{ report.radiologist.get_full_name }}

Findings:

{{ report.findings|truncatechars:200 }}
{% endfor %}

Quick Actions

{% if object.status == 'pending' %} {% endif %} {% if object.status == 'scheduled' %} {% endif %} {% if object.status == 'in_progress' %} {% endif %} {% if object.status == 'completed' and not object.radiology_reports.exists %} {% endif %}
{% if object.equipment %}

Equipment Status

{% if object.equipment.status == 'available' %} {% elif object.equipment.status == 'in_use' %} {% elif object.equipment.status == 'maintenance' %} {% endif %}
{{ object.equipment.name }}

{{ object.equipment.model }}

{{ object.equipment.location }}
Status
{% if object.equipment.status == 'available' %} Available {% elif object.equipment.status == 'in_use' %} In Use {% elif object.equipment.status == 'maintenance' %} Maintenance {% endif %}
Next Available
{% if object.equipment.next_available %} {{ object.equipment.next_available|date:"g:i A" }} {% else %} Now {% endif %}
{% endif %} {% if object.notes.exists %}

Order Notes

{% for note in object.notes.all|slice:":3" %}
{{ note.author.get_full_name }} {{ note.created_at|date:"M d, g:i A" }}

{{ note.content|truncatechars:100 }}

{% endfor %} {% if object.notes.count > 3 %}
{% endif %}
{% endif %}

Contact Information

Radiology Department
(555) 123-4567
radiology@hospital.com
24/7 Emergency Services
{% endblock %} {% block js %} {% endblock %}