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

Delete Patient Record

Critical Action Required
Patient Information
{% if object.photo %} Patient Photo {% else %}
{% endif %}
Full Name:
{{ object.get_full_name }}
Medical Record Number:
{{ object.mrn }}

Date of Birth:
{{ object.date_of_birth|date:"F d, Y" }} {% if object.age %}(Age: {{ object.age }}){% endif %}
Gender:
{{ object.get_gender_display }}

Phone:
{{ object.phone_number|default:"Not provided" }}
Email:
{{ object.email|default:"Not provided" }}
Deletion Impact Assessment
The following data will be permanently deleted:
  • Patient Profile: All demographic and contact information
  • Emergency Contacts: {{ object.emergency_contacts.count }} contact(s)
  • Insurance Information: {{ object.insurance_info.count }} insurance record(s)
  • Patient Notes: {{ object.patient_notes.count }} note(s)
  • Consent Forms: {{ object.consent_forms.count }} consent form(s)
  • Medical History: All associated medical records
  • Appointments: All past and future appointments
  • Billing Records: All financial and billing information
{% if object.emergency_contacts.exists or object.insurance_info.exists or object.patient_notes.exists %}
Related Records Summary:
{% if object.emergency_contacts.exists %}
Emergency Contacts:
    {% for contact in object.emergency_contacts.all|slice:":3" %}
  • {{ contact.get_full_name }} ({{ contact.relationship }})
  • {% endfor %} {% if object.emergency_contacts.count > 3 %}
  • ... and {{ object.emergency_contacts.count|add:"-3" }} more
  • {% endif %}
{% endif %} {% if object.insurance_info.exists %}
Insurance Plans:
    {% for insurance in object.insurance_info.all|slice:":3" %}
  • {{ insurance.insurance_company }} ({{ insurance.get_insurance_type_display }})
  • {% endfor %} {% if object.insurance_info.count > 3 %}
  • ... and {{ object.insurance_info.count|add:"-3" }} more
  • {% endif %}
{% endif %} {% if object.patient_notes.exists %}
Recent Notes:
    {% for note in object.patient_notes.all|slice:":3" %}
  • {{ note.created_at|date:"M d, Y" }} - {{ note.note_type }}
  • {% endfor %} {% if object.patient_notes.count > 3 %}
  • ... and {{ object.patient_notes.count|add:"-3" }} more
  • {% endif %}
{% endif %}
{% endif %}
Alternative Actions

Consider these alternatives before proceeding with deletion:

Deactivate Patient

Mark the patient as inactive instead of deleting. This preserves all data while preventing new activities.

Archive Patient

Archive the patient record for long-term storage while removing from active lists.

Deletion Confirmation
{% csrf_token %}
This helps prevent accidental deletions

{% endblock %}