{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}Complaint #{{ complaint.id|slice:":8" }} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Back to Complaints

{{ complaint.title }}

{{ complaint.get_status_display }} {{ complaint.get_severity_display }}

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 %}

SLA Deadline

{{ complaint.due_at|date:"M d, Y H:i" }}

{% if complaint.is_overdue %}
OVERDUE
{% else %} {{ complaint.due_at|timeuntil }} remaining {% endif %}
{% trans "Complaint Details" %}
Category
{{ complaint.get_category_display }} {% if complaint.subcategory %} / {{ complaint.subcategory }} {% endif %}
Source
{{ complaint.get_source_display }}
Priority
{{ complaint.get_priority_display }}
Encounter ID
{% if complaint.encounter_id %} {{ complaint.encounter_id }} {% else %} N/A {% endif %}
{% if complaint.physician %}
Physician
Dr. {{ complaint.physician.first_name }} {{ complaint.physician.last_name }} ({{ complaint.physician.specialty }})
{% endif %}
Description

{{ complaint.description|linebreaks }}

{% if complaint.resolution %}
Resolution

{{ complaint.resolution|linebreaks }}

Resolved by {{ complaint.resolved_by.get_full_name }} on {{ complaint.resolved_at|date:"M d, Y H:i" }}
{% endif %}
Created
{{ complaint.created_at|date:"M d, Y H:i" }}
Last Updated
{{ complaint.updated_at|date:"M d, Y H:i" }}
{% trans "Activity Timeline" %}
{% if timeline %}
{% for update in timeline %}
{{ update.get_update_type_display }} {% if update.created_by %} by {{ update.created_by.get_full_name }} {% endif %}
{{ update.created_at|date:"M d, Y H:i" }}

{{ update.message }}

{% if update.old_status and update.new_status %}
{{ update.old_status }} {{ update.new_status }}
{% endif %}
{% endfor %}
{% else %}

No timeline entries yet

{% endif %}
{% trans "Attachments" %}
{% if attachments %}
{% for attachment in attachments %}
{{ attachment.filename }}
Uploaded by {{ attachment.uploaded_by.get_full_name }} on {{ attachment.created_at|date:"M d, Y H:i" }} ({{ attachment.file_size|filesizeformat }}) {% if attachment.description %}
{{ attachment.description }} {% endif %}
{% endfor %}
{% else %}

No attachments

{% endif %}
{% trans "Related PX Actions" %}
{% if px_actions %} {% for action in px_actions %}
{{ action.title }}

{{ action.description|truncatewords:20 }}

{{ action.get_status_display }} {{ action.get_priority_display }}
View
{% endfor %} {% else %}

No PX actions created yet

{% endif %}
{% if can_edit %}
{% trans "Quick Actions" %}
{% csrf_token %}
{% csrf_token %}
{% endif %}
{% trans "Add Note" %}
{% csrf_token %}
{% trans "Assignment Info" %}
Assigned To
{% if complaint.assigned_to %} {{ complaint.assigned_to.get_full_name }}
Assigned {{ complaint.assigned_at|date:"M d, Y H:i" }} {% else %} Unassigned {% endif %}
{% if complaint.resolved_by %}
Resolved By
{{ complaint.resolved_by.get_full_name }}
{{ complaint.resolved_at|date:"M d, Y H:i" }}
{% endif %} {% if complaint.closed_by %}
Closed By
{{ complaint.closed_by.get_full_name }}
{{ complaint.closed_at|date:"M d, Y H:i" }}
{% endif %}
{% if complaint.resolution_survey %}
{% trans "Resolution Survey" %}

Status: {{ complaint.resolution_survey.get_status_display }}

{% if complaint.resolution_survey.score %}

Score: {{ complaint.resolution_survey.score }}/100

{% endif %} View Survey
{% endif %}
{% endblock %}