{% extends 'base.html' %} {% load static %} {% block title %}Delete Blood Unit - {{ blood_unit.unit_number }}{% endblock %} {% block css %} {% endblock %} {% block content %}

Delete Blood Unit {{ blood_unit.unit_number }}

⚠️ CRITICAL ACTION REQUIRED ⚠️

You are about to permanently delete this blood unit

This action cannot be undone and may have serious implications for patient safety and regulatory compliance.

Blood Unit Information
Unit Number: {{ blood_unit.unit_number }}
Blood Group: {{ blood_unit.blood_group.display_name }}
Component: {{ blood_unit.component.get_name_display }}
Volume: {{ blood_unit.volume_ml }} ml
Status: {{ blood_unit.get_status_display }}
Donor: {{ blood_unit.donor.full_name }}
Collection Date: {{ blood_unit.collection_date|date:"M d, Y" }}
Expiry Date: {{ blood_unit.expiry_date|date:"M d, Y" }}
Location: {{ blood_unit.location.name }}
Created: {{ blood_unit.created_at|date:"M d, Y H:i" }}
Impact Assessment
Deletion Impact Analysis
    {% if blood_unit.status == 'issued' %}
  • CRITICAL: This unit has been issued and may be in use for patient transfusion
  • {% endif %} {% if blood_unit.status == 'available' %}
  • WARNING: This unit is currently available in inventory
  • {% endif %} {% if blood_unit.blood_tests.exists %}
  • Blood test records will be permanently lost
  • {% endif %} {% if blood_unit.crossmatch_results.exists %}
  • Crossmatch results will be permanently deleted
  • {% endif %} {% if blood_unit.transfusions.exists %}
  • CRITICAL: Transfusion records will be affected
  • {% endif %}
  • Audit trail and traceability will be compromised
  • Regulatory compliance may be affected
Deletion Options
{% csrf_token %}
Alternative Recommendation

Consider these alternatives instead of permanent deletion:

Mark as Inactive

Preserve all data while removing from active inventory

Update Status

Change status to reflect current condition

Cancel
{% endblock %} {% block js %} {% endblock %}