{% extends "base.html" %} {% load static %} {% block title %}Bill {{ object.bill_number }} - {{ block.super }}{% endblock %} {% block content %}
| Patient Name: | {{ object.patient.get_full_name }} |
| MRN: | {{ object.patient.mrn }} |
| Date of Birth: | {{ object.patient.date_of_birth|date:"M d, Y" }} |
| Phone: | {{ object.patient.phone_number|default:"-" }} |
| Address: |
{% if object.patient.address %}
{{ object.patient.address }} {{ object.patient.city }}, {{ object.patient.state }} {{ object.patient.zip_code }} {% else %} - {% endif %} |
| Email: | {{ object.patient.email|default:"-" }} |
| Insurance: | {% if object.patient.primary_insurance %} {{ object.patient.primary_insurance.insurance_company }} {% else %} No insurance on file {% endif %} |
| Bill Number: | {{ object.bill_number }} |
| Bill Date: | {{ object.bill_date|date:"M d, Y" }} |
| Due Date: | {% if object.due_date %} {{ object.due_date|date:"M d, Y" }} {% if object.is_overdue %} Overdue {% endif %} {% else %} - {% endif %} |
| 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 %} |
| Billing Provider: | {{ object.billing_provider|default:"-" }} |
| Related Encounter: | {% if object.encounter %} {{ object.encounter.encounter_number }} {% else %} - {% endif %} |
| Created: | {{ object.created_at|date:"M d, Y g:i A" }} |
| Last Updated: | {{ object.updated_at|date:"M d, Y g:i A" }} |
{{ object.notes }}
| Service Code | Description | Quantity | Unit Price | Total |
|---|---|---|---|---|
{{ line_item.service_code }}
|
{{ line_item.service_description }} | {{ line_item.quantity }} | ê{{ line_item.unit_price|floatformat:'2g' }} | ê{{ line_item.total_price|floatformat:'2g' }} |
| No line items found for this bill. | ||||
| Payment Number | Date | Method | Amount | Status | Reference | Actions |
|---|---|---|---|---|---|---|
| {{ payment.payment_number }} | {{ payment.payment_date|date:"M d, Y" }} | {{ payment.get_payment_method_display }} | ê{{ payment.payment_amount|floatformat:'2g' }} | {% if payment.status == 'PENDING' %} Pending {% elif payment.status == 'PROCESSING' %} Processing {% elif payment.status == 'COMPLETED' %} Completed {% elif payment.status == 'FAILED' %} Failed {% elif payment.status == 'REFUNDED' %} Refunded {% endif %} | {{ payment.reference_number|default:"-" }} | |
| No payments recorded for this bill. | ||||||
| Claim Number | Insurance Company | Submit Date | Billed Amount | Approved Amount | Status | Actions |
|---|---|---|---|---|---|---|
| {{ claim.claim_number }} | {{ claim.insurance_info.insurance_company }} | {% if claim.submission_date %} {{ claim.submission_date|date:"M d, Y" }} {% else %} Not submitted {% endif %} | ê{{ claim.billed_amount|floatformat:'2g' }} | {% if claim.approved_amount %} ê{{ claim.approved_amount|floatformat:'2g' }} {% else %} - {% endif %} | {% if claim.status == 'DRAFT' %} Draft {% elif claim.status == 'SUBMITTED' %} Submitted {% elif claim.status == 'PENDING' %} Pending {% elif claim.status == 'APPROVED' %} Approved {% elif claim.status == 'PARTIALLY_APPROVED' %} Partially Approved {% elif claim.status == 'DENIED' %} Denied {% elif claim.status == 'PAID' %} Paid {% elif claim.status == 'APPEALED' %} Appealed {% endif %} | |
| No insurance claims submitted for this bill. | ||||||
{{ object.created_at|date:"M d, Y g:i A" }}
{{ object.submitted_at|date:"M d, Y g:i A"|default:"Unknown" }}
ê{{ payment.payment_amount|floatformat:'2g' }} via {{ payment.get_payment_method_display }}
{{ payment.payment_date|date:"M d, Y g:i A" }}
{{ object.paid_date|date:"M d, Y g:i A"|default:"Unknown" }}