Prescription Number: {{ object.prescription_number }}
Patient: {{ object.patient.full_name }}
Medication: {{ object.medication.name }}
Dosage: {{ object.dosage }} {{ object.dosage_unit }}
Quantity: {{ object.quantity }}
Prescriber: {{ object.prescriber.full_name }}
Status:
{{ object.get_status_display }}
Date Prescribed: {{ object.date_prescribed|date:"M d, Y" }}
Due Date: {{ object.due_date|date:"M d, Y"|default:"Not specified" }}
{% if object.is_controlled %}
Controlled Substance
{% endif %}
{% if object.instructions %}
Instructions:
{{ object.instructions }}
{% endif %}
Potential Issues:
{% if object.status == 'dispensed' %}
- Prescription has already been dispensed
{% endif %}
{% if object.status == 'in_progress' %}
- Prescription is currently being processed
{% endif %}
{% if object.is_controlled %}
- Controlled substance requires special handling
{% endif %}
{% if object.refills_remaining > 0 %}
- {{ object.refills_remaining }} refill(s) remaining
{% endif %}
{% if object.urgent %}
- Marked as urgent prescription
{% endif %}
Related Records:
- Patient: {{ object.patient.full_name }}
- Prescriber: {{ object.prescriber.full_name }}
{% if object.dispensing_records.exists %}
- {{ object.dispensing_records.count }} dispensing record(s)
{% endif %}
{% if object.interaction_checks.exists %}
- {{ object.interaction_checks.count }} interaction check(s)
{% endif %}
{% if object.status == 'dispensed' %}
Critical Warning
This prescription has already been dispensed to the patient. Deleting it may:
- Create gaps in the patient's medication history
- Affect insurance claims and billing records
- Impact regulatory compliance and audit trails
- Remove important clinical documentation
Consider marking as cancelled instead of deleting.
{% elif object.status == 'in_progress' %}
Processing Warning
This prescription is currently being processed. Deleting it may disrupt the pharmacy workflow and confuse staff members.
{% elif object.is_controlled %}
Controlled Substance Warning
This prescription contains controlled substances. Deletion must be properly documented for DEA compliance and audit purposes.
{% endif %}
Instead of deleting this prescription, consider these alternatives: