{% extends "base.html" %} {% load static %} {% block title %}Delete Patient Note - Patients{% endblock %} {% block content %}

Delete Patient Note Confirmation Required

Confirm Note Deletion

Warning

You are about to delete this patient note. This action cannot be undone and may impact patient care documentation and clinical records.

Note Details:
{% if object.follow_up_date %} {% endif %}
Title: {{ object.title }}
Category: {{ object.get_category_display }}
Priority: {{ object.get_priority_display }}
Created: {{ object.created_at|date:"M d, Y H:i" }}
Created By: {{ object.created_by.get_full_name }}
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 %}
Patient Information:
{% if object.is_confidential %} {% endif %}
Patient: {{ object.patient.get_full_name }}
Patient ID: {{ object.patient.patient_id }}
DOB: {{ object.patient.date_of_birth|date:"M d, Y" }}
Age: {{ object.patient.age }} years
Last Updated: {{ object.updated_at|date:"M d, Y H:i" }}
Confidential: Yes
Note Content Preview
{{ object.content|truncatewords:100|linebreaks }}
{% if object.content|wordcount > 100 %}
Content truncated for preview. Full note contains {{ object.content|wordcount }} words.
{% endif %}
Impact Assessment
  • Clinical Documentation: Note will be permanently removed from patient's clinical record
  • Audit Trail: Deletion will be logged for compliance and audit purposes
  • Follow-up Actions: Any pending follow-up actions will be cancelled
  • References: Other notes or documents referencing this note may be affected
  • Legal Compliance: Ensure deletion complies with medical record retention policies
  • Care Continuity: May impact understanding of patient's care history
{% if object.category == 'CLINICAL' %}
Clinical Note Warning

This is a clinical note. Deleting it will:

  • Remove important clinical documentation from patient record
  • Potentially impact continuity of care
  • Affect clinical decision-making for future treatments
  • May violate medical record retention requirements
  • Could impact legal or insurance proceedings
{% endif %} {% if object.priority == 'URGENT' %}
Urgent Priority Warning

This note is marked as urgent. Deleting it will:

  • Remove urgent clinical information from patient record
  • Potentially impact immediate patient care decisions
  • Remove critical alerts or warnings for care team
  • May affect patient safety protocols
  • Could impact emergency care procedures
{% endif %} {% if object.is_confidential %}
Confidential Note Warning

This is a confidential note. Deleting it will:

  • Permanently remove sensitive patient information
  • Impact privacy-protected documentation
  • May affect specialized care protocols
  • Could impact legal or compliance requirements
{% endif %} {% if object.follow_up_date %}
Follow-up Action Warning

This note has a scheduled follow-up on {{ object.follow_up_date|date:"M d, Y" }}. Deleting it will:

  • Cancel the scheduled follow-up action
  • Remove follow-up instructions and context
  • Potentially impact patient care continuity
  • May require rescheduling or alternative arrangements
  • {% if object.is_follow_up_overdue %}
  • Note: This follow-up is already overdue
  • {% elif object.is_follow_up_due_soon %}
  • Note: This follow-up is due soon
  • {% endif %}
{% endif %} {% if object.attachments.exists %}
Attachments Information

This note has {{ object.attachments.count }} attachment{{ object.attachments.count|pluralize }}:

    {% for attachment in object.attachments.all %}
  • {{ attachment.name }} ({{ attachment.file_size|filesizeformat }})
  • {% endfor %}

Note: All attachments will also be permanently deleted.

{% endif %} {% if related_notes_count > 0 %}
Related Notes Information

This patient has {{ related_notes_count }} other note{{ related_notes_count|pluralize }} that may reference or relate to this note. Consider reviewing them before deletion.

{% endif %} {% if object.updated_at != object.created_at %}
Recent Activity

This note was recently updated on {{ object.updated_at|date:"M d, Y H:i" }}. Ensure all recent changes are properly documented elsewhere if needed.

{% endif %}
{{ object.content|wordcount }}
Words
{{ object.attachments.count }}
Attachments
{% if object.follow_up_date %}1{% else %}0{% endif %}
Follow-ups
{{ related_notes_count|default:0 }}
Related Notes
Alternative Actions

Consider these alternatives instead of deletion:

{% csrf_token %}
Deletion Confirmation
{% if object.category == 'CLINICAL' %}
{% endif %} {% if object.priority == 'URGENT' %}
{% endif %} {% if object.is_confidential %}
{% endif %} {% if object.follow_up_date %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}