{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% load math %} {% block title %}Complaint #{{ complaint.id|slice:":8" }} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ _("ID") }}: {{ complaint.id|slice:":8" }} | {{ _("Patient") }}: {{ complaint.patient.get_full_name }} ({{ _("MRN") }}: {{ complaint.patient.mrn }})
{{ _("Hospital") }}: {{ complaint.hospital.name_en }} {% if complaint.department %} | {{ _("Department") }}: {{ complaint.department.name_en }} {% endif %}
AI extracted name: "{{ complaint.metadata.ai_analysis.extracted_staff_name }}" ({% if complaint.metadata.ai_analysis.staff_match_count %}{{ complaint.metadata.ai_analysis.staff_match_count }} potential match{{ complaint.metadata.ai_analysis.staff_match_count|pluralize }}{% else %}No matches found{% endif %})
{% endif %}{{ complaint.description|linebreaks }}
{{ complaint.resolution|linebreaks }}
{{ _("Resolved by")}} {{ complaint.resolved_by.get_full_name }} {{ _("on") }} {{ complaint.resolved_at|date:"M d, Y H:i" }}{{ update.message }}
{% if update.old_status and update.new_status %}{{ _("No timeline entries yet")}}
{{ _("No attachments")}}
{{ action.description|truncatewords:20 }}
{{ _("No PX actions created yet")}}
{{ _("Status") }}: {{ complaint.resolution_survey.get_status_display }}
{% if complaint.resolution_survey.score %}{{ _("Score") }}: {{ complaint.resolution_survey.score }}/100
{% endif %} {{ _("View Survey")}}