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

Delete Medical Bill

Warning: Permanent Deletion

You are about to permanently delete this medical bill. This action cannot be undone and will remove all associated data.

Bill to be Deleted
Bill Number: {{ object.bill_number }}
Patient: {{ object.patient.get_full_name }}
MRN: {{ object.patient.mrn }}
Bill Date: {{ object.bill_date|date:"M d, Y" }}
Total Amount: ${{ object.total_amount|floatformat:2 }}
Status: {% if object.status == 'DRAFT' %} Draft {% elif object.status == 'PENDING' %} Pending {% elif object.status == 'SUBMITTED' %} Submitted {% elif object.status == 'PARTIAL_PAID' %} Partially Paid {% elif object.status == 'PAID' %} Paid {% elif object.status == 'OVERDUE' %} Overdue {% elif object.status == 'COLLECTIONS' %} Collections {% elif object.status == 'WRITTEN_OFF' %} Written Off {% elif object.status == 'CANCELLED' %} Cancelled {% endif %}
Created: {{ object.created_at|date:"M d, Y" }}
Last Updated: {{ object.updated_at|date:"M d, Y" }}
Deletion Impact
Will be Deleted:
  • Bill record and all line items
  • {{ object.payment_set.count }} associated payment(s)
  • {{ object.insuranceclaim_set.count }} insurance claim(s)
  • All billing history and notes
  • Financial reporting data
Will be Preserved:
  • Patient record and information
  • Medical records and encounters
  • Insurance information
  • Provider and staff records
{% if object.status not in 'DRAFT,CANCELLED' %}
Deletion Restrictions
Cannot Delete This Bill

This bill cannot be deleted because:

    {% if object.status == 'PAID' %}
  • The bill has been paid in full
  • {% endif %} {% if object.status == 'PARTIAL_PAID' %}
  • The bill has received partial payments
  • {% endif %} {% if object.status == 'SUBMITTED' %}
  • The bill has been submitted to the patient
  • {% endif %} {% if object.status == 'OVERDUE' %}
  • The bill is overdue and may be in collections
  • {% endif %} {% if object.status == 'COLLECTIONS' %}
  • The bill is currently in collections
  • {% endif %} {% if object.insuranceclaim_set.exists %}
  • Insurance claims have been submitted for this bill
  • {% endif %}
{% else %}
Confirm Deletion
{% csrf_token %}
Final Warning

Once you click "Delete Bill", this bill and all associated data will be permanently removed from the system. This action cannot be reversed.

Cancel
{% endif %}
{% endblock %}