Generic Name: {{ object.generic_name }}
Brand Name: {{ object.brand_name|default:"Not specified" }}
Strength: {{ object.strength }}
Dosage Form: {{ object.get_dosage_form_display }}
Route: {{ object.get_route_display }}
Manufacturer: {{ object.manufacturer|default:"Not specified" }}
NDC Number: {{ object.ndc_number|default:"Not specified" }}
Category: {{ object.get_category_display }}
Status:
{% if object.is_active %}
Active
{% else %}
Inactive
{% endif %}
{% if object.is_controlled %}
Controlled Substance - Schedule {{ object.controlled_schedule }}
{% endif %}
{% if object.is_high_alert %}
High Alert
{% endif %}
Potential Issues:
{% if object.prescriptions.exists %}
- {{ object.prescriptions.count }} active prescription(s)
{% endif %}
{% if object.inventory_items.exists %}
- {{ object.inventory_items.count }} inventory record(s)
{% endif %}
{% if object.is_controlled %}
- Controlled substance requires special handling
{% endif %}
{% if object.is_high_alert %}
- High alert medication
{% endif %}
{% if object.is_active %}
- Currently active in formulary
{% endif %}
Related Records:
- Prescriptions: {{ object.prescriptions.count }}
- Inventory items: {{ object.inventory_items.count }}
- Dispensing records: {{ object.dispensing_records.count }}
{% if object.drug_interactions.exists %}
- Drug interactions: {{ object.drug_interactions.count }}
{% endif %}
{% if object.prescriptions.exists %}
Critical Warning
This medication has {{ object.prescriptions.count }} active prescription(s). Deleting it may:
- Disrupt patient care and medication therapy
- Create gaps in prescription history
- Affect pharmacy workflow and dispensing
- Impact insurance claims and billing
- Remove important clinical documentation
Consider marking as inactive instead of deleting.
{% endif %}
{% if object.is_controlled %}
Controlled Substance Warning
This medication is a Schedule {{ object.controlled_schedule }} controlled substance. Deletion must be properly documented for DEA compliance and audit purposes.
{% endif %}
{% if object.is_high_alert %}
High Alert Medication Warning
This is a high alert medication that requires special safety protocols. Deletion may affect safety procedures and clinical guidelines.
{% endif %}
{% if object.inventory_items.exists %}
Inventory Warning
This medication has {{ object.inventory_items.count }} inventory record(s). Deleting the medication may affect inventory tracking and stock management.
{% endif %}
Instead of deleting this medication, consider these alternatives: