{% extends "base.html" %} {% load static %} {% block title %}Delete Dispensing Record - Pharmacy{% endblock %} {% block content %}

Delete Dispensing Record {{ object.prescription.prescription_number }} - {{ object.prescription.patient.get_full_name }}

Confirm Dispensing Record Deletion

Critical Action Warning

You are about to permanently delete a dispensing record. This action cannot be undone and may have serious regulatory and audit implications.

{% if object.status == 'dispensed' %}
Dispensed Medication Warning

This medication has already been dispensed to the patient. Deleting this record may violate regulatory requirements and audit trails. Consider marking as cancelled or creating a reversal entry instead.

{% elif object.status == 'in_progress' %}
Active Dispensing Warning

This dispensing record is currently in progress. Deleting it may disrupt the dispensing workflow and cause confusion for pharmacy staff.

{% endif %} {% if object.medication.is_controlled %}
Controlled Substance Alert

This is a controlled substance (Schedule {{ object.medication.controlled_schedule }}). Deletion of controlled substance records may violate DEA regulations and require special documentation.

{% endif %} {% if object.medication.is_high_alert %}
High Alert Medication

This is a high alert medication. Extra caution is required when modifying or deleting records for these medications.

{% endif %}
Record to be Deleted
Prescription: {{ object.prescription.prescription_number }}
Patient: {{ object.prescription.patient.get_full_name }}
Medication: {{ object.medication.generic_name }} {{ object.medication.strength }}
Quantity: {{ object.quantity_dispensed }} {{ object.medication.unit }}
Status: {% if object.status == 'pending' %} Pending {% elif object.status == 'in_progress' %} In Progress {% elif object.status == 'dispensed' %} Dispensed {% elif object.status == 'partial' %} Partial Fill {% elif object.status == 'rejected' %} Rejected {% elif object.status == 'cancelled' %} Cancelled {% endif %}
Pharmacist: {{ object.pharmacist.get_full_name|default:"Not assigned" }}
Created: {{ object.created_at|date:"M d, Y H:i" }}
Last Updated: {{ object.updated_at|date:"M d, Y H:i" }}
Deletion Impact Assessment
Affected Systems:
  • Pharmacy dispensing records
  • Patient medication history
  • Inventory tracking system
  • Billing and insurance records
  • {% if object.medication.is_controlled %}
  • DEA controlled substance logs
  • {% endif %}
  • Audit trail and compliance reports
Potential Consequences:
  • Loss of audit trail
  • Regulatory compliance issues
  • Inventory discrepancies
  • Patient safety concerns
  • Insurance claim problems
  • Legal liability issues
{% if object.status == 'dispensed' or object.medication.is_controlled %}
Deletion Requirements
Special Authorization Required

Due to the nature of this record, special authorization is required for deletion:

{% if object.medication.is_controlled %}
{% endif %} {% if object.status == 'dispensed' %}
{% endif %}
{% endif %}
Deletion Justification
This reason will be permanently recorded in the audit log.
Final Confirmation
{% csrf_token %}

Deletion Checklist

Regulatory Information

Important Regulations
    {% if object.medication.is_controlled %}
  • DEA Regulations: Controlled substance records must comply with 21 CFR Part 1304
  • {% endif %}
  • HIPAA: Patient information deletion must follow privacy regulations
  • State Pharmacy Law: Check state-specific record retention requirements
  • Joint Commission: Medication management standards apply
  • Audit Requirements: Maintain audit trail for all deletions

Contact Information

Pharmacy Supervisor:
(555) 123-4567
supervisor@hospital.com
Compliance Officer:
(555) 123-4568
compliance@hospital.com
IT Support:
(555) 123-4569
itsupport@hospital.com
{% endblock %} {% block js %} {% endblock %}