{% extends "layouts/base.html" %} {% load i18n %} {% load survey_filters %} {% block title %}{{ department.get_localized_name }} - {% trans "Department" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ department.name_ar }}
{% endif %}{% trans "Staff" %}
{{ stats.staff_count }}
{% trans "Open Complaints" %}
{{ stats.open_complaints }}
{{ stats.total_complaints }} {% trans "total" %}
{% trans "Pending Inquiries" %}
{{ stats.pending_inquiries }}
{{ stats.total_inquiries }} {% trans "total" %}
{% trans "Open Observations" %}
{{ stats.open_observations }}
{{ stats.total_observations }} {% trans "total" %}
{{ pending_actions_count }} {% trans "items awaiting response" %}
| {% trans "Type" %} | {% trans "Reference" %} | {% trans "Subject" %} | {% trans "SLA Deadline" %} | {% trans "Action" %} |
|---|---|---|---|---|
| {{ action.type_label }} | {{ action.reference }} | {{ action.subject|truncatechars:50 }} | {% if action.sla_due_at %} {% if action.is_overdue %} {{ action.sla_due_at|date:"M d, H:i" }} {% else %} {{ action.sla_due_at|date:"M d, H:i" }} {% endif %} {% else %} - {% endif %} |
{% if action.type == 'complaint_department_response' %}
{% if action.explanation_url and action.explanation_url != '#' %}
{% trans "Respond" %}
{% else %}
{% endif %}
{% if action.routing_inv_id %}
{% endif %}
{% elif action.type == 'observation_response' %}
{% elif action.type == 'inquiry_response' %}
{% else %}
{% trans "Respond" %}
{% endif %}
|
{{ active_investigations|length }} {% trans "investigation(s) in progress" %}
{{ inv.complaint.title|truncatechars:60 }}
{% trans "Items assigned to you that need your response" %}
{{ resp.investigation.complaint.title|truncatechars:60 }}
{{ c.title|truncatechars:60 }}
{{ staff_head.get_localized_job_title }} · {{ staff_head.employee_id }}
| {% trans "Name" %} | {% trans "Job Title" %} | {% trans "Employee ID" %} | {{ department.get_category_display }} | {% trans "User Account" %} | {% trans "Complaints" %} |
|---|---|---|---|---|---|
|
{{ s.first_name|truncatechars:1 }}{{ s.last_name|truncatechars:1 }}
{{ s.get_localized_name }}
{% if s.is_head %}
{% trans "HEAD" %}
{% endif %}
|
{{ s.get_localized_job_title }} | {{ s.employee_id }} | {{ s.get_department_type_display }} | {% if s.user %} {% for g in s.user.groups.all %} {{ g.name }} {% endfor %} {% else %} {% trans "No account" %} {% endif %} | {% with count=staff_complaint_counts|get_item:s.pk %} {% if count %} {{ count }} {% else %} 0 {% endif %} {% endwith %} |
| {% trans "No staff members in this department" %} | |||||
{% trans "Manage who receives complaints, inquiries, and observations for this department." %}
{{ role.staff.get_full_name }}
{{ role.staff.email|default:"No email" }}
| {% trans "Section Name" %} | {% trans "Location" %} | {% trans "Champion" %} | {% trans "Supervisor" %} | {% trans "Deputy" %} | {% trans "Sub-Sections" %} | {% trans "Status" %} | {% trans "Actions" %} |
|---|---|---|---|---|---|---|---|
|
{{ sec.name_en }}
{% if sec.name_ar %} {{ sec.name_ar }}{% endif %} |
{{ sec.location_type|default:"-" }}{% if sec.sub_location %} / {{ sec.sub_location }}{% endif %} | {{ sec.champion.get_full_name|default:"-" }} | {{ sec.supervisor.get_full_name|default:"-" }} | {{ sec.deputy_supervisor.get_full_name|default:"-" }} | {{ sec.subsections.count }} | {% if sec.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %} | |
| {% trans "No sections in this department" %} | |||||||
| {% trans "Reference" %} | {% trans "Classification" %} | {% trans "Staff" %} | {% trans "Patient" %} | {% trans "Assigned To" %} | {% trans "Status" %} | {% trans "Created" %} |
|---|---|---|---|---|---|---|
| {{ c.reference_number }} |
{% if c.domain %}{{ c.domain.get_localized_name }}{% endif %}
{% if c.category %}{{ c.category.get_localized_name }}{% endif %}
{% if c.subcategory_obj %}{{ c.subcategory_obj.get_localized_name }}{% endif %}
{% if c.classification_obj %}{{ c.classification_obj.get_localized_name }}{% endif %}
{% if not c.domain and not c.category and not c.subcategory_obj and not c.classification_obj %}-{% endif %}
|
{% if c.involved_staff.all %}
{% for inv in c.involved_staff.all %}
{{ inv.staff.get_localized_name }}
{% endfor %}
{% elif c.staff %}
{{ c.staff.get_localized_name }}
{% else %}
-
{% endif %}
|
{{ c.patient.mrn|default:"-" }} | {{ c.assigned_to.get_full_name|default:"-" }} | {{ c.get_status_display }} | {{ c.created_at|date:"Y-m-d" }} |
| {% trans "No complaints for this department" %} | ||||||
| {% trans "Reference" %} | {% trans "Subject" %} | {% trans "Contact" %} | {% trans "Assigned To" %} | {% trans "Status" %} | {% trans "Created" %} | {% trans "Actions" %} |
|---|---|---|---|---|---|---|
| {{ i.reference_number }} | {{ i.subject }} | {{ i.contact_name|default:"-" }} | {{ i.assigned_to.get_full_name|default:"-" }} | {{ i.get_status_display }} | {{ i.created_at|date:"Y-m-d" }} |
{% trans "View" %}
{% if can_respond and i.status in 'open,in_progress' %}
{% trans "Respond" %}
{% endif %}
|
| {% trans "No inquiries for this department" %} | ||||||
| {% trans "Tracking Code" %} | {% trans "Title" %} | {% trans "Severity" %} | {% trans "Assigned To" %} | {% trans "Status" %} | {% trans "Created" %} | {% trans "Actions" %} |
|---|---|---|---|---|---|---|
| {{ o.tracking_code }} | {{ o.title|default:"-" }} | {{ o.get_severity_display }} | {{ o.assigned_to.get_full_name|default:"-" }} | {{ o.get_status_display }} | {{ o.created_at|date:"Y-m-d" }} |
{% trans "View" %}
{% if can_respond and not o.department_responded_at %}
{% trans "Respond" %}
{% endif %}
|
| {% trans "No observations for this department" %} | ||||||
| {% trans "Reference" %} | {% trans "Title" %} | {% trans "Priority" %} | {% trans "Category" %} | {% trans "Contact" %} | {% trans "Assigned To" %} | {% trans "Status" %} | {% trans "Created" %} |
|---|---|---|---|---|---|---|---|
| {{ s.pk|truncatechars:8 }} | {{ s.title|default:"-" }} | {{ s.get_priority_display }} | {{ s.get_category_display|default:"-" }} | {% if s.is_anonymous %} {% trans "Anonymous" %} {% else %} {{ s.contact_name|default:"-" }} {% endif %} | {{ s.assigned_to.get_full_name|default:"-" }} | {{ s.get_status_display }} | {{ s.created_at|date:"Y-m-d" }} |
| {% trans "No suggestions for this department" %} | |||||||
| {% trans "Reference" %} | {% trans "Category" %} | {% trans "Sender" %} | {% trans "Recipient" %} | {% trans "Status" %} | {% trans "Sent" %} | {% trans "Created" %} |
|---|---|---|---|---|---|---|
| {{ a.pk|truncatechars:8 }} | {% if a.category %} {{ a.category.name_en }} {% else %} - {% endif %} | {% if a.is_anonymous %} {% trans "Anonymous" %} {% elif a.sender %} {{ a.sender.get_full_name }} {% else %} - {% endif %} | {{ a.get_recipient_name|default:"-" }} | {{ a.get_status_display }} | {{ a.sent_at|date:"Y-m-d"|default:"-" }} | {{ a.created_at|date:"Y-m-d" }} |
| {% trans "No appreciations for this department" %} | ||||||
{% trans "Loading analytics..." %}
{% trans "Avg Physician Rating" %}
-
{% trans "out of 5.0" %}
{% trans "Resolution Rate" %}
-
{% trans "Open Actions" %}
-
{% trans "PX actions pending" %}
{% trans "Satisfaction Rate" %}
-
{% trans "resolution satisfaction" %}
{% trans "Reopened" %}
-
{% trans "reopened complaints" %}
{% trans "Reassigned" %}
-
{% trans "reassigned complaints" %}
| {% trans "Code" %} | {% trans "Title" %} | {% trans "Activity Type" %} | {% trans "Status" %} | {% trans "Evidence" %} |
|---|---|---|---|---|
| {{ item.standard.code }} | {{ item.standard.title }} | {% if item.standard.activity_type %} {{ item.standard.activity_type.name }} {% else %} - {% endif %} | {% if not item.standard.is_assessable or item.standard.is_heading %} {% trans "Informational" %} {% else %} {% endif %} | {% if not item.standard.is_assessable or item.standard.is_heading %} - {% else %} {% endif %} |
| {% trans "No standards for this department" %} | ||||