{% extends 'layouts/base.html' %} {% load i18n %} {% block title %}{% trans "Complaints Registry" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Manage and monitor patient feedback in real-time" %}
{% trans "Showing:" %} {{ complaints.start_index|default:0 }}-{{ complaints.end_index|default:0 }} {% trans "of" %} {{ complaints.paginator.count|default:0 }}
| {% trans "Complaint ID" %} | {% trans "Patient Name" %} | {% trans "Description" %} | {% trans "Source" %} | {% trans "Department" %} | {% trans "Status" %} | {% trans "SLA" %} | {% trans "Severity" %} | {% trans "Priority" %} | {% trans "Assigned" %} | {% trans "Actions" %} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ complaint.reference_number }} {% if complaint.reopened_from_id %} R {% endif %} {% if complaint.is_escalated_ovr %} OVR {% endif %} |
{{ complaint.patient.get_full_name|default:complaint.patient_name|default:complaint.contact_name }}
{% if complaint.patient %}
{% trans "MRN:" %} {{ complaint.patient.mrn|default:"-" }}
{% endif %}
|
{% if complaint.ai_brief_en %} {{ complaint.ai_brief_ar|default:complaint.ai_brief_en }} {% else %} {% endif %} | {% if complaint.source %} {{ complaint.source.get_localized_name }} {% else %} {{ complaint.get_complaint_source_type_display }} {% endif %} | {{ complaint.department.get_localized_name|default:"-" }} | {{ complaint.get_status_display }} | {% if complaint.due_at and complaint.status != 'resolved' and complaint.status != 'closed' and complaint.status != 'cancelled' %} {% elif complaint.is_overdue %} {% trans "Overdue" %} {% else %} - {% endif %} | {{ complaint.get_severity_display }} | {{ complaint.get_priority_display }} | {% if complaint.assigned_to %} {{ complaint.assigned_to.get_full_name }} {% else %} {% trans "Unassigned" %} {% endif %} | |
|
{% trans "No complaints found" %} |
||||||||||