{% extends 'base.html' %} {% load static %} {% block title %}Sign Operative Note - Operating Theatre{% endblock %} {% block content %}
Operative Note - {{ surgical_case.case_id }}
{{ note.status|title }}
Patient Information

Patient Name: {{ surgical_case.patient.get_full_name }}
MRN: {{ surgical_case.patient.medical_record_number }}
DOB: {{ surgical_case.patient.date_of_birth|date:"M d, Y" }}
Age: {{ surgical_case.patient.age }} years
Date of Surgery: {{ surgical_case.actual_start_time|date:"M d, Y" }}
Operating Room: {{ surgical_case.operating_room.room_number }}
Case Duration: {{ case_duration }} minutes
Procedure Information

Primary Procedure:

{{ note.primary_procedure|default:surgical_case.procedure_name }}

{% if note.secondary_procedures %} Secondary Procedures:

{{ note.secondary_procedures }}

{% endif %} Procedure Code(s):

{{ surgical_case.procedure_code }}

Surgical Team

Primary Surgeon: {{ surgical_case.primary_surgeon.get_full_name }}
{% if surgical_case.assistant_surgeon %} Assistant Surgeon: {{ surgical_case.assistant_surgeon.get_full_name }}
{% endif %} Anesthesiologist: {{ surgical_case.anesthesiologist.get_full_name|default:"Not specified" }}
{% if note.scrub_nurse %} Scrub Nurse: {{ note.scrub_nurse }}
{% endif %} {% if note.circulating_nurse %} Circulating Nurse: {{ note.circulating_nurse }}
{% endif %} Anesthesia Type: {{ note.anesthesia_type|title|default:"Not specified" }}
Pre-operative Diagnosis

{{ note.preop_diagnosis|default:"Not specified" }}

Post-operative Diagnosis

{{ note.postop_diagnosis|default:"Same as pre-operative diagnosis" }}

Operative Findings

{{ note.operative_findings|default:"No significant findings documented" }}

Procedure Description

{{ note.procedure_description|default:"Detailed procedure description pending" }}

Complications

{{ note.complications|default:"None" }}

Estimated Blood Loss

{{ note.estimated_blood_loss|default:"Not documented" }} mL

Fluid Balance

{{ note.fluid_balance|default:"Not documented" }} mL

{% if note.specimens_collected %}
Specimens Collected

{{ note.specimens_collected }}

{% endif %} {% if note.implants_used %}
Implants and Devices

{{ note.implants_used }}

{% endif %}
Post-operative Plan

{{ note.postop_plan|default:"Standard post-operative care" }}

{% if note.additional_notes %}
Additional Notes

{{ note.additional_notes }}

{% endif %}
{% if note.status != 'signed' %}
Electronic Signature Required
{% csrf_token %}
Your password is required to electronically sign this document
{% else %}
Document Signed
Signed By:
{{ note.signed_by.get_full_name }}
{{ note.signed_by.professional_title|default:"Physician" }}
Signature Date/Time:
{{ note.signature_datetime|date:"M d, Y H:i" }}
{{ note.signature_datetime|timesince }} ago
This operative note has been electronically signed and is legally binding.
{% endif %}
Document Information
Document Type:
Operative Note
Case ID:
{{ surgical_case.case_id }}
Created:
{{ note.created_at|date:"M d, Y H:i" }}
Last Modified:
{{ note.updated_at|date:"M d, Y H:i" }}
Status:
{{ note.status|title }}
{% if note.status == 'signed' %}
Signed By:
{{ note.signed_by.get_full_name }}
{% endif %}
Actions
Print Note Download PDF {% if note.status != 'signed' %} Edit Note {% endif %} View History
{% if signature_history %}
Signature History
{% for signature in signature_history %}
{{ signature.signer_name }}
{{ signature.signature_datetime|date:"M d, Y H:i" }}
{{ signature.status|title }}
{% endfor %}
{% endif %}
{% endblock %}