{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{{ complaint.reference_number }} - {{ department.get_localized_name }} - PX360{% endblock %} {% block content %}
{% trans "Departments" %} {{ department.get_localized_name }} {% trans "Complaints" %} {{ complaint.reference_number }}

{{ complaint.reference_number }}

{{ complaint.get_status_display }} {% if complaint.severity %} {{ complaint.get_severity_display }} {% endif %} {% if complaint.is_overdue %} {% trans "Overdue" %} {% endif %}

{% trans "Complaint" %}

{% if can_respond and involved_dept %} {% endif %} {% if can_manager_review and involved_dept %} {% trans "Review Response" %} {% endif %} {% trans "Back to complaints" %}
{% if complaint.title %}

{{ complaint.title }}

{% endif %}

{% trans "Description" %}

{{ complaint.description|default:"—" }}

{% if complaint.ai_brief_en %}

{% trans "Short Description" %}

{{ complaint.ai_brief_en }}

{% endif %}

{% trans "Details" %}

{% trans "Department" %}

{{ complaint.department.get_localized_name|default:"—" }}

{% trans "Assigned To" %}

{{ complaint.assigned_to.get_full_name|default:"—" }}

{% trans "Patient MRN" %}

{{ complaint.patient.mrn|default:"—" }}

{% if staff_list %}

{% trans "Staff Involved" %}

{% for s in staff_list %}

{{ s }}

{% endfor %}
{% endif %} {% if taxonomy %}

{% trans "Classification" %}

{{ taxonomy|join:" > " }}

{% endif %} {% if location_str %}

{% trans "Location" %}

{{ location_str }}

{% endif %}

{% trans "Source" %}

{{ complaint.source.name_en|default:"—" }}

{% trans "Created" %}

{{ complaint.created_at|date:"Y-m-d H:i" }}

{% if complaint.due_at %}

{% trans "SLA Deadline" %}

{{ complaint.due_at|date:"Y-m-d H:i" }} {% if complaint.is_overdue %} ({% trans "Overdue" %}){% endif %}

{% endif %} {% if complaint.escalated_at %}

{% trans "Escalated" %}

{{ complaint.escalated_at|date:"Y-m-d H:i" }}

{% endif %}
{% if complaint.expected_result %}

{% trans "Expected Result" %}

{{ complaint.expected_result }}

{% endif %}
{% include "components/department_response_modal.html" %} {% endblock %}