{% extends "base.html" %} {% load static %} {% block title %}Deactivate Lab Test - {{ lab_test.test_name }} - {{ block.super }}{% endblock %} {% block content %}

Deactivate Lab Test

Confirm Lab Test Deactivation
Important Information

You are about to deactivate the lab test "{{ lab_test.test_name }}". This action will make the test unavailable for new orders but will preserve all historical data.

Test Details
Test Name: {{ lab_test.test_name }}
Test Code: {{ lab_test.test_code }}
Category: {{ lab_test.get_category_display }}
Price: ${{ lab_test.price|floatformat:2 }}
Created: {{ lab_test.created_at|date:"M d, Y" }}
Impact Assessment
{{ total_orders }}
Total Orders
{{ pending_orders }}
Pending Orders
{{ reference_ranges }}
Reference Ranges
{{ qc_records }}
QC Records
What happens when you deactivate this test:
Preserved: All historical orders and results
Preserved: Reference ranges and QC records
Preserved: Billing and financial data
Disabled: New order creation
Hidden: From active test lists
Disabled: Test scheduling
{% if pending_orders > 0 %}
Pending Orders Warning

This test has {{ pending_orders }} pending order(s). Deactivating the test will not affect these existing orders, but you should consider:

  • Completing all pending orders before deactivation
  • Notifying laboratory staff about the deactivation
  • Ensuring alternative tests are available if needed
{% endif %}
Reactivation

This test can be reactivated later by editing the test details and setting the status to "Active". All historical data will remain intact.

{% csrf_token %}
Cancel
Alternative Actions
Edit Test

Modify test parameters without deactivating

Edit Test
Duplicate Test

Create a new version of this test

Duplicate Test
Archive Test

Move to archived tests section

{% endblock %}