{% extends "base.html" %} {% load static %} {% block title %}Delete Specimen{% endblock %} {% block content %}

Delete Specimen

Back to Specimen

Confirm Specimen Deletion

Are you sure you want to delete this specimen?

This action cannot be undone. The specimen and all associated data will be permanently removed from the system.

Patient Information
Patient: {{ object.patient.get_full_name }}
MRN: {{ object.patient.medical_record_number }}
DOB: {{ object.patient.date_of_birth|date:"M d, Y" }}
Age: {{ object.patient.age }} years
Specimen Information
Specimen ID: {{ object.specimen_id }}
Type: {{ object.get_specimen_type_display }}
Collection Date: {{ object.collection_date|date:"M d, Y g:i A" }}
Status: {{ object.get_status_display }}
Collection Information
Collected By: {{ object.collected_by.get_full_name }}
Collection Site: {{ object.collection_site|default:"Not specified" }}
Volume: {{ object.volume|default:"Not specified" }}
Container: {{ object.container_type|default:"Standard" }}
Priority: {{ object.get_priority_display }}
Condition: {{ object.condition|default:"Good" }}
{% if associated_tests %}
Associated Tests Warning
Warning: This specimen has {{ associated_tests|length }} associated test(s). Deleting this specimen will affect these tests and may impact patient care.
{% for test in associated_tests %} {% endfor %}
Test Name Status Ordered Date Result Status
{{ test.test.name }} {{ test.get_status_display }} {{ test.ordered_date|date:"M d, Y" }} {% if test.result %} Result Available {% else %} Pending {% endif %}
{% endif %} {% if object.collection_notes %}
Collection Notes
{{ object.collection_notes }}
{% endif %}
{% csrf_token %}
These notes will be recorded for audit purposes and quality assurance.
{% if associated_tests %}
Choose what should happen to the {{ associated_tests|length }} associated test(s).
{% endif %}
{% if object.status in 'processing,completed' %}
{% endif %}
What happens when you delete this specimen?
  • The specimen record will be permanently removed from the system
  • All tracking history and collection data will be lost
  • {% if associated_tests %}
  • Associated tests will be affected based on your selection above
  • Test results may need to be invalidated or transferred
  • {% endif %}
  • Quality metrics and laboratory statistics will be updated
  • This action will be logged in the audit trail
  • Inventory tracking may be affected if containers are tracked
  • Billing records may need manual adjustment
  • Patient reports and medical records may be impacted
Cancel
{% if object.condition in 'hemolyzed,clotted,contaminated,rejected' %}
Quality Control Notice
Quality Issue: This specimen has been flagged with condition: {{ object.condition }}. Deleting specimens with quality issues may require additional documentation for compliance.
Recommendation: Consider documenting the quality issue in the laboratory quality management system before deletion to maintain proper quality records.
{% endif %} {% if object.status in 'processing,completed' %}
Processing Status Notice
Processing Status: This specimen has status "{{ object.get_status_display }}" and may have been processed or analyzed. Deleting processed specimens may require supervisor approval.
{% if object.status == 'completed' %}
Completed Specimen: This specimen has been marked as completed and may have results associated with it. Consider the impact on patient care before deletion.
{% endif %}
{% endif %}
Related Information
Specimen Details
  • Specimen ID: {{ object.specimen_id }}
  • Internal ID: {{ object.pk }}
  • Barcode: {{ object.barcode|default:"Not assigned" }}
  • Created: {{ object.created_at|date:"M d, Y g:i A" }}
System Information
  • Patient ID: {{ object.patient.pk }}
  • Collector ID: {{ object.collected_by.pk }}
  • Current Location: {{ object.current_location|default:"Lab" }}
  • Last Updated: {{ object.updated_at|date:"M d, Y g:i A" }}
{% endblock %}