{% extends base_layout %} {% load i18n %} {% load static %} {% load math %} {% block title %}{{ complaint.reference_number }} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Ref #" %}: {{ complaint.reference_number }} | {% trans "Patient" %}: {{ complaint.patient.get_full_name }} ({% trans "MRN" %}: {{ complaint.patient.mrn }})
{% trans "Source" %}: {% if complaint.source %} {{ complaint.source.name_en }} {% if complaint.created_by %} {% if complaint.created_by.source_user_profile %} | {% trans "by" %} {{ complaint.created_by.get_full_name }} ({% trans "Source User" %}) {% else %} | {% trans "by" %} {{ complaint.created_by.get_full_name }} {% endif %} {% endif %} {% elif complaint.complaint_source_type == 'internal' %} {% trans "Internal" %} {% if complaint.created_by %} | {% trans "by" %} {{ complaint.created_by.get_full_name }} {% endif %} {% else %} {% trans "External (Patient)" %} {% if complaint.created_by %} | {% trans "by" %} {{ complaint.created_by.get_full_name }} {% endif %} {% endif %}
{% trans "Hospital" %}: {{ complaint.hospital.name_en }} {% if complaint.department %} | {% trans "Department" %}: {{ complaint.department.name_en }} {% endif %}
{{ complaint.description|linebreaks }}
{{ complaint.resolution|linebreaks }}
{% if complaint.status == 'partially_resolved' %} {% trans "Partially resolved by" %} {% else %} {% trans "Resolved by" %} {% endif %} {{ complaint.resolved_by.get_full_name }} {% trans "on" %} {{ complaint.resolved_at|date:"M d, Y H:i" }}{{ update.message }}
{% if update.old_status and update.new_status %}{% trans "No timeline entries yet" %}
{% trans "No attachments" %}
{% if exp.metadata.is_escalation %}
{% trans "Manager:" %}
{% else %}
{% trans "Staff Member:" %}
{% endif %}
{{ exp.staff.get_full_name }}
{% if exp.staff.job_title %}
({{ exp.staff.job_title }})
{% endif %}
{% if exp.metadata.original_staff_name %}
{% trans "Regarding:" %} {{ exp.metadata.original_staff_name }}
{% endif %}
{{ exp.explanation|linebreaks }}
{% else %}{% trans "No explanation submitted yet." %}
{% endif %}{% trans "No explanation has been submitted yet." %}
{% if can_edit %}{% trans "Send explanation link to the assigned staff member. Manager will be notified for awareness." %}
{% if complaint.staff %}{{ action.description|truncatewords:20 }}
{% trans "No PX actions created yet" %}
{{ complaint.resolution|linebreaks }}
{% if complaint.resolution_category %}{% trans "Resolution Category" %}: {{ complaint.get_resolution_category_display }}
{% endif %}{% trans "This complaint has been resolved. You can re-open it if needed." %}
{% trans "This complaint has not been resolved yet. Provide resolution details below to close this complaint." %}
{% trans "PDF generation requires WeasyPrint to be installed. If you see an error message, please contact your system administrator." %}
{% trans "No admin assigned to this complaint" %}
{% else %}{% trans "No admin assigned to this complaint" %}
{% endif %}{% trans "Status" %}: {{ complaint.resolution_survey.get_status_display }}
{% if complaint.resolution_survey.score %}{% trans "Score" %}: {{ complaint.resolution_survey.score }}/100
{% endif %} {% trans "View Survey" %}