{% extends 'emails/base_email_template.html' %} {% load i18n %} {% block title %}PX360 {{ period_label }} Digest{% endblock %} {% block preheader %}PX360 {% if period == 'weekly' %}Weekly{% else %}Monthly{% endif %} Digest - {{ period_label }}{% endblock %} {% block content %}
PX360 {% if period == 'weekly' %}Weekly{% else %}Monthly{% endif %} Digest
{% if hospital_name %}{{ hospital_name }} - {{ period_label }}
{% else %}{{ period_label }}
{% endif %} {% if summary %}{% trans "AI Executive Summary" %}
{{ summary.summary_en }}
{% if summary.key_findings_en %} {% for f in summary.key_findings_en %}- {{ f }}
{% endfor %} {% endif %} {% if summary.risk_level %}Risk Level: {{ summary.risk_level|title }}
{% else %}{% endif %} {% endif %}
{% trans "Key Metrics" %}
| {{ metrics.total_complaints|default:"—" }} Complaints |
{{ metrics.sla_compliance|default:"—" }}% SLA Compliance |
{{ metrics.nps_score|default:"—" }} NPS Score |
| {{ metrics.avg_survey_score|default:"—" }} Avg Survey |
{{ metrics.total_actions|default:"—" }} Actions |
{{ metrics.avg_resolution_hours|default:"—" }}h Avg Resolution |
{% trans "Early Warning Alerts" %}
| Department | Risk | Level | Signals |
| {{ dept.department_name }} | {{ dept.risk_score }}% | {% if dept.risk_level == 'critical' %}Critical{% elif dept.risk_level == 'high' %}High{% elif dept.risk_level == 'medium' %}Medium{% else %}Low{% endif %} | {{ dept.active_signals }}/5 |
{% trans "AI Recommendations" %}
{% for rec in recommendations %}{{ rec.category }} ({{ rec.complaint_count }} complaints)
{{ rec.problem_summary_en }}
{% if rec.recommended_actions_en %} {% for action in rec.recommended_actions_en %}- {{ action }}
{% endfor %} {% endif %} {% if not forloop.last %}{% endif %} {% endfor %} {% endif %} {% if dashboard_url %}
{% trans "View Full Dashboard" %}
{% endif %} {% if summary and summary.summary_ar %}الملخص العربي
{{ summary.summary_ar }}
{% if summary.key_findings_ar %} {% for f in summary.key_findings_ar %}- {{ f }}
{% endfor %} {% endif %} {% endif %}This report was automatically generated by PX360 - Patient Experience Analytics Platform
{% endblock %}