{% extends 'base.html' %} {% load static %} {% block title %}Delete QC Record - {{ qc_record.test_name }}{% endblock %} {% block css %} {% endblock %} {% block content %}

Delete QC Record {{ qc_record.test_name }} {% if qc_record.result == 'failed' %} FAILED TEST {% endif %}


WARNING: Deleting QC records may violate regulatory compliance requirements.
Consider archiving instead of permanent deletion.

Delete Quality Control Record

CRITICAL ACTION
CRITICAL ACTION REQUIRED

You are about to permanently delete a quality control record.

This action will:

  • Permanently remove the QC test record from the system
  • Delete all associated test results and data
  • Remove compliance documentation
  • Impact regulatory audit trails
  • Potentially violate FDA, AABB, and CAP requirements
  • {% if qc_record.result == 'failed' %}
  • Delete critical failure documentation
  • {% endif %} {% if qc_record.capa_initiated %}
  • Affect active CAPA investigations
  • {% endif %}
QC Record Information
Test Name: {{ qc_record.test_name }}
Test Type: {{ qc_record.get_test_type_display }}
Test Date: {{ qc_record.test_date|date:"M d, Y H:i" }}
Tested By: {{ qc_record.tested_by.get_full_name }}
Result: {{ qc_record.get_result_display }}
Sample ID: {{ qc_record.sample_id|default:"Not specified" }}
Equipment: {{ qc_record.equipment_used|default:"Not specified" }}
Reviewed: {% if qc_record.reviewed_by %} Yes - {{ qc_record.reviewed_by.get_full_name }} {% else %} Pending Review {% endif %}
{% if qc_record.test_notes %}
Test Notes:
{{ qc_record.test_notes }}
{% endif %}
Regulatory Compliance Impact
Affected Standards
  • FDA 21 CFR Part 606: QC record retention requirements
  • AABB Standards: Quality documentation requirements
  • ISO 15189: Quality management system records
  • CAP Requirements: Laboratory quality assurance
Compliance Risks
  • Loss of audit trail integrity
  • Regulatory inspection findings
  • Accreditation issues
  • Legal liability concerns
  • {% if qc_record.result == 'failed' %}
  • Loss of failure investigation records
  • {% endif %}
{% if qc_record.result == 'failed' %}
CRITICAL: This is a failed QC test. Deleting this record may violate regulatory requirements for failure investigation documentation.
{% endif %} {% if qc_record.capa_initiated %}
ACTIVE CAPA: This record is associated with an active CAPA ({{ qc_record.capa_number }}). Deletion may impact the investigation.
{% endif %}
Impact Assessment
Related Records
    {% if qc_record.blood_unit %}
  • Blood Unit: {{ qc_record.blood_unit.unit_number }}
  • {% endif %} {% if qc_record.equipment_used %}
  • Equipment: {{ qc_record.equipment_used }}
  • {% endif %}
  • Test Results: All parameter data will be lost
  • Trend Data: Historical trending will be affected
System Impact
  • QC statistics and reports will be affected
  • Trend analysis data will be incomplete
  • Audit trail will show deletion event
  • Compliance reports may be impacted
  • {% if qc_record.result == 'failed' %}
  • Failure rate calculations will change
  • {% endif %}
{% csrf_token %}
Deletion Authorization
Critical Confirmation Checklist
{% if qc_record.result == 'failed' %}
{% endif %} {% if qc_record.capa_initiated %}
{% endif %}
Cancel Deletion
{% endblock %} {% block js %} {% endblock %}