{% extends 'base/base.html' %} {% load static %} {% block title %} {% if object %}Edit Laboratory Test{% else %}Add Laboratory Test{% endif %} {% endblock %} {% block content %}

{% if object %} Edit Laboratory Test: {{ object.test_name }} {% else %} Add New Laboratory Test {% endif %}

Back to Tests
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{{ form.test_code }} {% if form.test_code.errors %}
{{ form.test_code.errors }}
{% endif %} Unique identifier for this test
{{ form.test_name }} {% if form.test_name.errors %}
{{ form.test_name.errors }}
{% endif %}
{{ form.test_description }} {% if form.test_description.errors %}
{{ form.test_description.errors }}
{% endif %}
{{ form.test_category }} {% if form.test_category.errors %}
{{ form.test_category.errors }}
{% endif %}
{{ form.specimen_type }} {% if form.specimen_type.errors %}
{{ form.specimen_type.errors }}
{% endif %}
{{ form.methodology }} {% if form.methodology.errors %}
{{ form.methodology.errors }}
{% endif %}
{{ form.turnaround_time_hours }} {% if form.turnaround_time_hours.errors %}
{{ form.turnaround_time_hours.errors }}
{% endif %}
{{ form.units }} {% if form.units.errors %}
{{ form.units.errors }}
{% endif %}
{{ form.is_active }}
{{ form.requires_fasting }}
{{ form.normal_range_text }} {% if form.normal_range_text.errors %}
{{ form.normal_range_text.errors }}
{% endif %} General description of normal range
{{ form.special_instructions }} {% if form.special_instructions.errors %}
{{ form.special_instructions.errors }}
{% endif %} Special collection or processing instructions
Cancel
Help
Test Code

Use a unique, standardized code for this test. Common formats include LOINC codes or internal lab codes.

Category

Select the appropriate category to help organize and filter tests.

Turnaround Time

Expected time from specimen collection to result availability in hours.

Fasting Requirement

Check if this test requires the patient to fast before specimen collection.

{% if object %}
Test Statistics

Created: {{ object.created_at|date:"M d, Y H:i" }}
Last Updated: {{ object.updated_at|date:"M d, Y H:i" }}

{% if object.reference_ranges.count %}

Reference Ranges: {{ object.reference_ranges.count }}

{% endif %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}