{% load i18n %} {% load static %} {{ report.indicator_title }} - {% trans "KPI Report" %}
{% trans "Back" %}
Al Hammadi Hospital

{% trans "Key Performance Indicator Report" %}

{{ report.hospital.name }}

{{ report.kpi_id }}

{{ report.report_period_display }}

{% trans "Generated:" %} {% now "M d, Y" %}

{{ report.indicator_title }}

{% if report.overall_result >= report.target_percentage %} {% trans "On Target" %} {% elif report.overall_result >= report.threshold_percentage %} {% trans "Below Target" %} {% else %} {% trans "Critical" %} {% endif %}
{{ report.overall_result }}%
{% trans "Overall Result" %}
{{ report.target_percentage }}%
{% trans "Target" %}
{{ report.total_numerator }}
{{ report.numerator_label }}
{{ report.total_denominator }}
{{ report.denominator_label }}
{% trans "Progress vs Target" %}
0% {% trans "Threshold:" %} {{ report.threshold_percentage }}% {% trans "Target:" %} {{ report.target_percentage }}% 100%
{% trans "Monthly Performance Data" %}
{% for m in monthly_data %} {% endfor %} {% for m in monthly_data %} {% endfor %} {% for m in monthly_data %} {% endfor %}
{% trans "KPI" %} {% trans "Indicator" %} {% trans "Measure" %} {% trans "Jan" %} {% trans "Feb" %} {% trans "Mar" %} {% trans "Apr" %} {% trans "May" %} {% trans "Jun" %} {% trans "Jul" %} {% trans "Aug" %} {% trans "Sep" %} {% trans "Oct" %} {% trans "Nov" %} {% trans "Dec" %} {% trans "TOTAL" %} {% trans "Target" %} {% trans "Threshold" %}
{{ report.kpi_id }} {{ report.indicator_title }} {{ report.numerator_label }} {% if m %}{{ m.numerator }}{% else %}-{% endif %}{{ report.total_numerator }} {{ report.target_percentage }}% {{ report.threshold_percentage }}%
{{ report.denominator_label }} {% if m %}{{ m.denominator }}{% else %}-{% endif %}{{ report.total_denominator }}
{% trans "Result (%)" %} {% if m %}{{ m.percentage }}%{% else %}-{% endif %} {{ report.overall_result }}%
{% trans "Report Metadata" %}
{% trans "Performance Analytics" %}
{% trans "Monthly Performance Trend" %}
{% trans "Target:" %} {{ report.target_percentage }}% | {% trans "Threshold:" %} {{ report.threshold_percentage }}%
{% trans "Distribution by Source" %}
{% if department_breakdowns %}
{% trans "Department Performance Breakdown" %}
{% for dept in department_breakdowns %}
{{ dept.get_department_category_display }}
{{ dept.complaint_count }}
{% trans "complaints" %}
{{ dept.resolved_count }}
{% trans "resolved" %}
{% if dept.avg_resolution_days %}
{% trans "Avg:" %} {{ dept.avg_resolution_days }} {% trans "days" %}
{% endif %}
{% endfor %}
{% endif %} {% if location_breakdowns %}
{% trans "Location Distribution" %}
{% for loc in location_breakdowns %}
{{ loc.location_type }}
{{ loc.complaint_count }}
{{ loc.percentage }}%
{% endfor %}
{% endif %} {% if report.ai_analysis %}
{% trans "AI-Powered Performance Analysis" %}
{% with analysis=report.ai_analysis %} {% if analysis.executive_summary %}

{% trans "Executive Summary" %}

{{ analysis.executive_summary }}

{% endif %}
{% if analysis.performance_analysis %}

{% trans "Performance Analysis" %}

{{ analysis.performance_analysis }}

{% endif %} {% if analysis.comparison_to_target %}

{% trans "Comparison to Target" %}

{{ analysis.comparison_to_target }}

{% endif %} {% if analysis.key_findings %}

{% trans "Key Findings" %}

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

{% trans "Reasons for Delays" %}

    {% for reason in analysis.reasons_for_delays %}
  • {{ reason }}
  • {% endfor %}
{% endif %}
{% if analysis.resolution_time_analysis %}

{% trans "Resolution Time Breakdown" %}

{% if analysis.resolution_time_analysis.within_24h %}

{% trans "Within 24h" %}

{{ analysis.resolution_time_analysis.within_24h.count }}

{{ analysis.resolution_time_analysis.within_24h.percentage }}

{% endif %} {% if analysis.resolution_time_analysis.within_48h %}

{% trans "Within 48h" %}

{{ analysis.resolution_time_analysis.within_48h.count }}

{{ analysis.resolution_time_analysis.within_48h.percentage }}

{% endif %} {% if analysis.resolution_time_analysis.within_72h %}

{% trans "Within 72h" %}

{{ analysis.resolution_time_analysis.within_72h.count }}

{{ analysis.resolution_time_analysis.within_72h.percentage }}

{% endif %} {% if analysis.resolution_time_analysis.over_72h %}

{% trans "Over 72h" %}

{{ analysis.resolution_time_analysis.over_72h.count }}

{{ analysis.resolution_time_analysis.over_72h.percentage }}

{% endif %}
{% endif %} {% if analysis.recommendations %}

{% trans "Recommendations" %}

    {% for rec in analysis.recommendations %}
  • {{ rec }}
  • {% endfor %}
{% endif %} {% endwith %}
{% endif %}

{% trans "Review and Approval" %}

{% trans "Reviewed By:" %}

 

{% trans "Name & Signature" %}

{% trans "Date:" %} _______________

{% trans "Reviewed and Approved By:" %}

 

{% trans "Name & Signature" %}

{% trans "Date:" %} _______________

{% trans "Reviewed and Approved By:" %}

 

{% trans "Name & Signature" %}

{% trans "Date:" %} _______________