Test 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 }}
Equipment:
{{ qc_record.equipment_used|default:"Not specified" }}
Lot Numbers:
{{ qc_record.lot_numbers|default:"Not specified" }}
Temperature:
{{ qc_record.temperature|default:"Not recorded" }}°C
Result:
{{ qc_record.get_result_display }}
{% if qc_record.sample_id %}
Sample Information:
Sample ID: {{ qc_record.sample_id }}
{% if qc_record.blood_unit %}
Blood Unit: {{ qc_record.blood_unit.unit_number }}
{% endif %}
Sample Type: {{ qc_record.get_test_type_display }}
{% endif %}
Test Results
{% if qc_record.test_type == 'temperature' %}
Temperature Control
Measured Temperature:
{{ qc_record.temperature }}°C
Acceptable Range:
2-6°C
Deviation:
{% if qc_record.temperature %}
{% if qc_record.temperature >= 2 and qc_record.temperature <= 6 %}
Within range
{% else %}
{{ qc_record.temperature|floatformat:1 }}°C deviation
{% endif %}
{% else %}
Not recorded
{% endif %}
{% elif qc_record.test_type == 'ph' %}
pH Testing
Measured pH:
{{ qc_record.ph_value|default:"Not recorded" }}
Acceptable Range:
6.0-8.0
Buffer Solution:
{{ qc_record.buffer_solution|default:"Not specified" }}
{% elif qc_record.test_type == 'sterility' %}
Sterility Testing
Culture Medium:
{{ qc_record.culture_medium|default:"Not specified" }}
Incubation Period:
{{ qc_record.incubation_period|default:"Standard" }}
Growth Observed:
{% if qc_record.result == 'passed' %}
No growth
{% else %}
Growth detected
{% endif %}
{% elif qc_record.test_type == 'hemolysis' %}
Hemolysis Testing
Hemolysis Percentage:
{{ qc_record.hemolysis_percentage|default:"Not recorded" }}%
Acceptable Limit:
< 0.8%
Visual Assessment:
{{ qc_record.visual_assessment|default:"Not recorded" }}
{% endif %}
{% if qc_record.test_notes %}
Test Notes:
{{ qc_record.test_notes }}
{% endif %}
Compliance Information
Quality Assurance
Equipment Calibrated:
{% if qc_record.equipment_calibrated %}
Yes
{% else %}
No
{% endif %}
SOP Followed:
{% if qc_record.sop_followed %}
Yes
{% else %}
No
{% endif %}
Controls Passed:
{% if qc_record.controls_passed %}
Yes
{% else %}
No
{% endif %}
Trend Analysis
Recent QC Results for {{ qc_record.test_name }}
Last 10 test results showing trend over time
{% if qc_record.result == 'failed' %}
Corrective and Preventive Action (CAPA)
QC Test Failed - Immediate Action Required
Immediate Actions
Quarantine affected products
Investigate root cause
Review equipment calibration
Check reagent integrity
Notify quality manager
Follow-up Required
Document investigation findings
Implement corrective actions
Verify effectiveness
Update procedures if needed
Schedule follow-up testing
{% if qc_record.capa_initiated %}
CAPA Status: {{ qc_record.get_capa_status_display }}
CAPA Number: {{ qc_record.capa_number }}
Initiated By: {{ qc_record.capa_initiated_by.get_full_name }}
Date: {{ qc_record.capa_date|date:"M d, Y H:i" }}
{% else %}
{% endif %}
{% endif %}
Action Timeline
{{ qc_record.test_date|date:"M d, Y H:i" }}
QC test performed by {{ qc_record.tested_by.get_full_name }}
Result: {{ qc_record.get_result_display }}
{% if qc_record.reviewed_by %}
{{ qc_record.review_date|date:"M d, Y H:i" }}
Results reviewed by {{ qc_record.reviewed_by.get_full_name }}
Review completed
{% endif %}
{% if qc_record.capa_initiated %}
{{ qc_record.capa_date|date:"M d, Y H:i" }}
CAPA initiated by {{ qc_record.capa_initiated_by.get_full_name }}
CAPA #{{ qc_record.capa_number }}
{% endif %}
Back to QC List
Print Report
{% if qc_record.result == 'failed' and not qc_record.capa_initiated %}
Initiate CAPA
{% endif %}
{% if not qc_record.reviewed_by %}
Review Results
{% endif %}