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

Delete Emergency Contact Confirmation Required

Confirm Contact Deletion

Warning

You are about to delete this emergency contact. This action cannot be undone and may impact patient safety and care coordination.

Contact Details:
Name: {{ object.name }}
Relationship: {{ object.get_relationship_display }}
Phone: {{ object.phone_number|default:"Not provided" }}
Email: {{ object.email|default:"Not provided" }}
Priority: {% if object.is_primary %} Primary Contact {% else %} Secondary Contact {% endif %}
Medical Decisions: {% if object.can_make_medical_decisions %} Authorized {% else %} Not Authorized {% endif %}
Patient Information:
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
Contact Added: {{ object.created_at|date:"M d, Y H:i" }}
Last Updated: {{ object.updated_at|date:"M d, Y H:i" }}
Impact Assessment
  • Patient Safety: Emergency contact information will be removed from patient record
  • Care Coordination: Healthcare team will lose access to this contact method
  • Emergency Situations: Contact will not be reachable during medical emergencies
  • Medical Decisions: {% if object.can_make_medical_decisions %}Authorized decision-maker will be removed{% else %}No impact on medical decision-making{% endif %}
  • Communication: Routine updates and notifications will not be sent to this contact
  • Audit Trail: Contact history and communication logs will be preserved
{% if object.is_primary %}
Primary Contact Warning

This is the patient's primary emergency contact. Deleting it will:

  • Remove the main point of contact for emergencies
  • Require designation of a new primary contact
  • Impact emergency notification protocols
  • Potentially delay critical communications
{% endif %} {% if object.can_make_medical_decisions %}
Medical Decision Authority Warning

This contact is authorized to make medical decisions. Deleting it will:

  • Remove an authorized medical decision-maker
  • Impact consent processes for medical procedures
  • Require identification of alternative decision-makers
  • Potentially delay medical care requiring consent
{% endif %} {% if object.patient.emergency_contacts.count == 1 %}
Only Emergency Contact Warning

This is the patient's only emergency contact. Deleting it will:

  • Leave the patient without any emergency contacts
  • Create a critical gap in emergency communication
  • Violate hospital policies requiring emergency contacts
  • Potentially compromise patient safety protocols
  • Require immediate addition of a replacement contact
{% endif %} {% if object.patient.age < 18 %}
Minor Patient Warning

This patient is a minor ({{ object.patient.age }} years old). Emergency contacts are especially critical for pediatric patients and their legal guardians.

{% endif %} {% if object.patient.emergency_contacts.count > 1 %}
Other Emergency Contacts

Patient has {{ object.patient.emergency_contacts.count|add:"-1" }} other emergency contact(s):

    {% for contact in object.patient.emergency_contacts.all %} {% if contact.pk != object.pk %}
  • {{ contact.name }} ({{ contact.get_relationship_display }}) {% if contact.is_primary %} - Primary{% endif %} {% if contact.can_make_medical_decisions %} - Medical Decisions{% endif %}
  • {% endif %} {% endfor %}
{% endif %}
{{ object.patient.emergency_contacts.count|add:"-1" }}
Remaining Contacts
{% if object.is_primary %}1{% else %}0{% endif %}
Primary Status
{% if object.can_make_medical_decisions %}1{% else %}0{% endif %}
Medical Authority
{{ object.patient.age }}
Patient Age
Alternative Actions

Consider these alternatives instead of deletion:

{% csrf_token %}
Deletion Confirmation
{% if object.is_primary %}
{% endif %} {% if object.can_make_medical_decisions %}
{% endif %} {% if object.patient.emergency_contacts.count == 1 %}
{% endif %}
{% if object.is_primary and object.patient.emergency_contacts.count > 1 %}
If this is the primary contact, select a replacement primary contact.
{% endif %}
{% endblock %} {% block js %} {% endblock %}