{% extends "base.html" %} {% load static %} {% block title %}{{ object.title }} - Patient Notes{% endblock %} {% block content %}

Patient Note {{ object.title }}

Note Details

Edit
{{ object.title }}
{{ object.get_priority_display }} {{ object.get_category_display }} {% if object.is_confidential %} Confidential {% endif %}
{% if object.priority == 'URGENT' %}
URGENT NOTE - Requires immediate attention
{% endif %} {% if object.follow_up_date %}
Follow-up: {{ object.follow_up_date|date:"M d, Y" }} {% if object.is_follow_up_overdue %}
Overdue by {{ object.days_overdue }} days {% elif object.is_follow_up_due_soon %}
Due in {{ object.days_until_due }} days {% endif %}
{% endif %}
Note Content
{{ object.content|linebreaks }}
{% if object.follow_up_notes %}
Follow-up Instructions
{{ object.follow_up_notes|linebreaks }}
{% endif %} {% if object.attachments.exists %}
Attachments
{% for attachment in object.attachments.all %}
{{ attachment.name }}
{{ attachment.file_size|filesizeformat }}
{% endfor %}
{% endif %} {% if object.note_history.exists %}
Note History
{% for history in object.note_history.all %}
{{ history.get_action_display }}
{{ history.created_at|date:"M d, Y H:i" }}
{{ history.description }}
by {{ history.user.get_full_name }}
{% endfor %}
{% endif %} {% if related_notes %}
Related Notes
{% for note in related_notes %}
{{ note.get_priority_display }}
{{ note.created_at|date:"M d, Y" }} by {{ note.created_by.get_full_name }}
{% endfor %}
{% endif %}

Patient Information

{{ object.patient.get_full_name }}
{{ object.patient.patient_id }}
DOB: {{ object.patient.date_of_birth|date:"M d, Y" }}
Age: {{ object.patient.age }} years
Gender: {{ object.patient.get_gender_display }}
Phone: {% if object.patient.phone %} {{ object.patient.phone }} {% else %} Not provided {% endif %}
Email: {% if object.patient.email %} {{ object.patient.email }} {% else %} Not provided {% endif %}

Note Information

{% if object.updated_at != object.created_at %} {% endif %} {% if object.follow_up_date %} {% endif %}
Created: {{ object.created_at|date:"M d, Y H:i" }}
Created By: {{ object.created_by.get_full_name }}
Updated: {{ object.updated_at|date:"M d, Y H:i" }}
Updated By: {{ object.updated_by.get_full_name|default:"System" }}
Category: {{ object.get_category_display }}
Priority: {{ object.get_priority_display }}
Follow-up: {{ object.follow_up_date|date:"M d, Y" }} {% if object.is_follow_up_overdue %}
Overdue {% elif object.is_follow_up_due_soon %}
Due Soon {% endif %}
Confidential: {% if object.is_confidential %} Yes {% else %} No {% endif %}

Quick Actions

Edit Note {% if not object.follow_up_date %} {% endif %} {% if object.priority != 'URGENT' %} {% endif %} Delete Note

Recent Patient Notes

{% for note in recent_notes %}
{{ note.get_priority_display|slice:":1" }}
{{ note.created_at|date:"M d" }}
{% empty %}
No other notes
{% endfor %} {% if recent_notes %} {% endif %}
{% endblock %} {% block js %} {% endblock %}