{% load static %} {% block stylesheets%} {% endblock stylesheets%} {% block content %} PRINT
{% for test_type, tests in grouped_tests.items %}
{% if header_base64 %} header {% else %}

Header not available

{% endif %}
Barcode
MR No: {{reportData.patientObject.patientID}}
Age: {{reportData.patientObject.patientAge}} {{reportData.patientObject.patientAgeChoices}}
Gender: {{reportData.patientObject.patientGender}}
Printing Date: {{current_datetime}}
Receiving Date: {{reportData.patientObject.patientDateofEntry}}
Patient Name: {{reportData.patientObject.patientName}}
Referred By: {{reportData.patientObject.refBy}}
CNIC: {{reportData.patientObject.patientCNIC}}
Reg Date: {{reportData.patientObject.patientDateofEntry}}

{{ test_type }}

{% for test_name, test_data in tests.items %}
{{ test_name }}
{% for param in test_data.parameters %} {% if param.user_value %} {% if test_name == "(CP) Complete Blood Picture" and param.name == "Neutrophils" %} {% endif %} {% if test_name == "Urine R/E" and param.name == "Pus Cells" %} {% endif %} {% endif %} {% endfor %}
Parameter Patient Value Unit Reference Values
Diff. Leuc. Count (DLC)
Microscopic Analysis
{{ param.name }} {{ param.user_value }} {{ param.unit }} {{ param.normal_values }}

{% endfor %} {% if forloop.last %} {% if reportData.doctorNotes %} {% if reportData.doctorNotes != 'None' %}

Comments:

{{ reportData.doctorNotes|default:"No additional comments." }}

{% endif %} {% endif %} {% endif %}
{% endfor %} {% endblock content %}