{% extends "shared/letterhead_pdf_repeating_base.html" %} {% load i18n %} {% block title %}{{ report.kpi_id }} - {{ report.indicator_title }} - PX360{% endblock %} {% block page_override %}@page { size: A4 landscape; margin: 28mm 15mm 20mm 15mm; }{% endblock %} {% block extra_css %} {% endblock %} {% block pdf_content %}
{{ report.kpi_id }}

{{ report.indicator_title }}

{{ report.hospital.name }}  |  {{ report.report_period_display }}  |  {% trans "Generated" %}: {{ report.generated_at|default:report.created_at|date:"M d, Y H:i" }}
{% trans "Overall Result" %}
{{ report.overall_result|floatformat:1 }}%
{{ report.numerator_label }}
{{ report.total_numerator }}
{{ report.denominator_label }}
{{ report.total_denominator }}
{% trans "Target" %}
{{ report.target_percentage|floatformat:0 }}%
{% trans "Threshold" %}
{{ report.threshold_percentage|floatformat:0 }}%
{% trans "Performance vs Target" %} {{ report.overall_result|floatformat:1 }}% / {{ report.target_percentage|floatformat:0 }}%
{% trans "Monthly Performance Data" %}
{% for m in monthly_data %}{% endfor %} {% for m in monthly_data %}{% endfor %} {% for m in monthly_data %} {% endfor %}
{% trans "Month" %} JanFebMarApr MayJunJulAug SepOctNovDec {% trans "TOTAL" %}
{{ report.numerator_label }}{% if m %}{{ m.numerator }}{% else %}-{% endif %}{{ report.total_numerator }}
{{ report.denominator_label }}{% if m %}{{ m.denominator }}{% else %}-{% endif %}{{ report.total_denominator }}
{% trans "Result %" %} {% if m %}{{ m.percentage|floatformat:1 }}{% else %}-{% endif %} {{ report.overall_result|floatformat:1 }}
{% trans "Target" %} {{ report.target_percentage|floatformat:0 }}% {{ report.target_percentage|floatformat:0 }}%
{% trans "Threshold" %} {{ report.threshold_percentage|floatformat:0 }}% {{ report.threshold_percentage|floatformat:0 }}%
{% trans "Category" %}
{{ report.category }}
{% trans "KPI Type" %}
{{ report.kpi_type }}
{% trans "Risk Level" %}
{{ report.risk_level }}
{% trans "Dimension" %}
{{ report.dimension }}
{% trans "Data Collection" %}
{{ report.data_collection_method }}
{% trans "Frequency" %}
{{ report.reporting_frequency }}
{% if report.collector_name %}
{% trans "Collector" %}
{{ report.collector_name }}
{% endif %} {% if report.analyzer_name %}
{% trans "Analyzer" %}
{{ report.analyzer_name }}
{% endif %}
{% if trend_chart or source_chart %}
{% if trend_chart %}
Monthly Performance Trend
{% endif %} {% if source_chart %}
Complaints by Source
{% endif %}
{% endif %} {% if department_breakdowns %}
{% trans "Department Breakdown" %}
{% for dept in department_breakdowns %}

{{ dept.get_department_category_display }}

{% trans "Complaints" %}: {{ dept.complaint_count }}
{% trans "Resolved" %}: {{ dept.resolved_count }}
{% if dept.avg_resolution_days %}
{% trans "Avg Resolution" %}: {{ dept.avg_resolution_days|floatformat:1 }} {% trans "days" %}
{% endif %}
{% endfor %}
{% endif %} {% if location_breakdowns %}
{% trans "Location Breakdown" %}
{% for loc in location_breakdowns %}

{{ loc.location_type }}

{% trans "Complaints" %}: {{ loc.complaint_count }}
{% trans "Share" %}: {{ loc.percentage|floatformat:1 }}%
{% endfor %}
{% endif %} {% if ai_analysis %}
{% trans "AI-Generated Analysis" %}
{% if ai_analysis.executive_summary %}

{% trans "Executive Summary" %}

{{ ai_analysis.executive_summary }}

{% endif %} {% if ai_analysis.performance_analysis %}

{% trans "Performance Analysis" %}

{{ ai_analysis.performance_analysis }}

{% endif %} {% if ai_analysis.key_findings %}

{% trans "Key Findings" %}

{% for finding in ai_analysis.key_findings %}
{{ finding }}
{% endfor %}
{% endif %} {% if ai_analysis.reasons_for_delays %}

{% trans "Reasons for Delays" %}

{% endif %} {% if ai_analysis.recommendations %}

{% trans "Recommendations" %}

{% for rec in ai_analysis.recommendations %}
{{ rec }}
{% endfor %}
{% endif %} {% if ai_analysis.comparison_to_target %}

{% trans "Comparison to Target" %}

{{ ai_analysis.comparison_to_target }}

{% endif %} {% endif %}
{% trans "Prepared By" %}
{% trans "Name & Signature" %}
{% trans "Reviewed By" %}
{% trans "Name & Signature" %}
{% trans "Approved By" %}
{% trans "Name & Signature" %}
{% endblock %}