{% load static %} {% block stylesheets%} {% endblock stylesheets%} {% block content %} PRINT
Company Logo
{% for test_type, tests in grouped_tests.items %}
{% comment %} REUSABLE PATIENT HEADER {% endcomment %}
Qrcode Qrcode

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}}

Refered By:

{{reportData.patientObject.refBy}}

CNIC:

{{reportData.patientObject.patientCNIC}}

Reg Date:

{{reportData.patientObject.patientDateofEntry}}

{{ test_type }}

{% comment %} END REUSABLE PATIENT HEADER {% endcomment %} {% for test_name, test_data in tests.items %}
{% if forloop.counter > 1 and forloop.counter0|divisibleby:2 %} {% comment %} REPEAT PATIENT HEADER ON NEW PAGE {% endcomment %}
Qrcode Qrcode

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}}

Refered By:

{{reportData.patientObject.refBy}}

CNIC:

{{reportData.patientObject.patientCNIC}}

Reg Date:

{{reportData.patientObject.patientDateofEntry}}

{{ test_type }}

{% endif %} {% comment %} XRAY AND ULTRASOUND STYLE {% endcomment %} {% if test_data.report_style == "imaging" %}

{{ test_name }}

{% for param in test_data.parameters %} {% if param.user_value %}

{{param.name}}

{{param.user_value|safe}}

{% endif %} {% endfor %} {% comment %} OTHER TESTS TABLE STYLE {% endcomment %} {% else %}

{{ test_name }}

{% if test_name != 'Urine R/E' %} {% endif %} {% if test_name == "Urine R/E" %} {# Physico-Chemical Analysis Section #} {% if test_data.physicochemical_params %} {% for param in test_data.physicochemical_params %} {% if param.user_value %} {% endif %} {% endfor %} {% endif %} {# Microscopic Analysis Section - Check if any parameter has value #} {% if test_data.microscopic_params %} {% for param in test_data.microscopic_params %} {% if param.user_value and forloop.first %} {% endif %} {% endfor %} {% for param in test_data.microscopic_params %} {% if param.user_value %} {% endif %} {% endfor %} {% endif %} {% else %} {# For other tests (like CP) #} {% for param in test_data.parameters %} {% if param.user_value %} {% if test_name == "(CP) Complete Blood Picture" and param.name == "Neutrophils" %} {% endif %} {% endif %} {% endfor %} {% endif %}
Parameter Patient Value Unit Reference Values
Physico-Chemical Analysis
{{ param.name }} {{ param.user_value|safe }} {{ param.normal_values }}
Microscopic Analysis
{{ param.name }} {{ param.user_value|safe }} {{ param.normal_values }}
Diff. Leuc. Count (DLC)
{{ param.name }} {{ param.user_value|safe }} {{ param.unit }} {{ param.normal_values }}
{% endif %}
{% endfor %} {% if forloop.last %} {% if reportData.doctorNotes %} {% if reportData.doctorNotes != 'None' %}

Comments:

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

{% endif %} {% endif %} {% endif %}
{% endfor %}
{% if reportData.doctorShow == True %} {% for doctor in reportData.reportDoctors.all %}
{{ doctor.doctorName }}
{{ doctor.doctorEducation }}
{% endfor %} {% endif %}

Note: This is digitally verified report and does not require manual signature.This report is not valid for court.

Printed By: {{request.user.username}} @ {{current_datetime}}

{% endblock content %}