{% if watermark_text %}
{{ watermark_text }}
{% endif %}
{{ lab.name | default('Munal Medical Laboratory') }}
{{ lab.address | default('Kathmandu, Nepal') }}
Diagnostic Pathology & Clinical Testing Laboratory
{% if order.destination_country %} PRE-DEPARTURE / VISA MEDICAL REPORT {% else %} DIAGNOSTIC LAB REPORT {% endif %}
{% if order.destination_country %}
✈ Abroad Clearance: {{ order.destination_country }}
{% endif %}
{% if report.status.value == 'draft' %} Draft {% elif report.status.value == 'pending_verification' %} Pending Verification {% elif report.status.value == 'verified' %} Verified {% elif report.status.value == 'released' %} Official Report {% elif report.status.value == 'rejected' %} Rejected {% endif %}
{% if report.version > 1 %}
Amended (Version {{ report.version }})
{% endif %}
{% if order.referred_by_custom or order.destination_country %} {% endif %}
Patient Name {{ patient.name }} Order / Bill No {{ order.order_number }}
Patient ID / UHID {{ patient.patient_code }} Order Date {{ order_date }}
Age / Gender {{ patient_age_gender }} Specimen Sample {{ specimen_display }}
Contact / Phone {{ patient.phone }} Reported Date {{ reported_date }}
Referred By {{ order.referred_by_custom or 'Self / Direct Walk-in' }} Destination Country {{ order.destination_country or 'N/A' }}
{% if report.version > 1 %}
AMENDMENT NOTICE (Version {{ report.version }}): This document supersedes report version {{ report.version - 1 }} for Order {{ order.order_number }}. {% if report.verification_reason %}
Remarks / Reason: {{ report.verification_reason }} {% endif %}
{% endif %} {% if report_modality == 'imaging' and imaging_sections %} {% for section in imaging_sections %}
{{ section.test_name }} {% if section.test_code %} [{{ section.test_code }}] {% endif %}
{% if section.views %}

Views examined: {{ section.views | join(', ') }}

{% endif %}
Remarks:
{{ section.findings }}
Impression:
{{ section.impression }}
{% endfor %} {% else %} {% for group in test_groups %}
{{ group.test_name }} {% if group.test_code %} [{{ group.test_code }}] {% endif %}
{% if report.status.value not in ('verified', 'released') %} {% endif %} {% for param in group.parameters %} {# Flags guide review on working copies; approved finals drop the column. #} {% if report.status.value not in ('verified', 'released') %} {% endif %} {% endfor %}
Investigation / Parameter Observed Value Unit Biological Ref. IntervalFlag
{{ param.name }} {% if param.notes %}
{{ param.notes }}
{% endif %}
{{ param.value }} {{ param.unit or '—' }} {{ param.reference_interval or '—' }} {% if param.flag == 'H' %} HIGH {% elif param.flag == 'L' %} LOW {% elif param.flag == 'ABNORMAL' %} ABNORMAL {% elif param.flag == 'N' %} Normal {% else %} {{ param.flag or '—' }} {% endif %}
{% endfor %} {% endif %} {# Imaging sections carry their own remarks; the shared box would duplicate them. #} {% if report.notes and not (report_modality == 'imaging' and imaging_sections) %}
Clinical Remarks & Interpretation:
{{ report.notes }}
{% endif %} {# v1 sign-off impression: on amendments it already prints inside the amendment notice above. #} {% if report.verification_reason and report.version == 1 %}
{% if report_modality == 'imaging' %}Diagnostic Impression & Conclusion:{% else %}Verification Remarks:{% endif %}
{{ report.verification_reason }}
{% endif %}
Electronic Verification Record
Report ID: {{ report.id }}
Verification Status: {{ report.status.value | upper }}
{% if report.verified_at %}
Verified At: {{ report.verified_at.strftime('%Y-%m-%d %H:%M UTC') }}
{% endif %}
Digitally certified via Munal LMS. Valid without physical signature.
{% if report.verifier %} {% if verifier_signature_b64 %} Authorizer signature {% endif %}
{{ report.verifier.name }}
{% if report.verifier.license_no %}
NMC No.: {{ report.verifier.license_no }}
{% endif %}
{{ (report.verifier.role.value if report.verifier.role.value is defined else report.verifier.role) | capitalize }} / Medical Officer
Electronically Signed & Authorized
{% else %}
Awaiting Verification
{% endif %}
Laboratory investigation results should be correlated clinically with patient history, physical examination, and other relevant diagnostic evaluations.
{% if report_qr_b64 %}
Report QR code
Scan to view this report online — no login required
{% endif %}