{% include "complaints/partials/pdf_letterhead_header.html" %}

تقرير الشكوى
| رقم الشكوى |
{{ complaint.reference_number }} |
الحالة |
{{ complaint.get_status_display }} |
| العنوان |
{{ complaint.title }} |
نوع الشكوى |
{{ complaint.get_complaint_type_display }} |
| القسم |
{% if complaint.department %}{{ complaint.department.name_ar|default:complaint.department.name_en }}{% else %}—{% endif %} |
الخطورة |
{{ complaint.get_severity_display }} |
| الموظف المشكو عليه |
{% if complaint.staff %}{{ complaint.staff.get_full_name }}{% else %}—{% endif %} |
جهة الادعاء |
{% if complaint.source %}{{ complaint.source.name_ar|default:complaint.source.name_en }}{% else %}—{% endif %} |
| تاريخ التقديم |
{{ complaint.created_at|date:"Y/m/d H:i" }} |
تاريخ الحادثة |
{% if complaint.incident_date %}{{ complaint.incident_date|date:"Y/m/d" }}{% else %}—{% endif %} |
| {{ complaint.description }} |
{% if complaint.patient %}
| اسم المريض |
{{ complaint.patient.get_full_name }} |
رقم الملف |
{{ complaint.patient.mrn|default:"—" }} |
{% endif %}
{% if complaint.contact_name or complaint.contact_phone %}
| الاسم |
{{ complaint.contact_name|default:"—" }} |
الهاتف |
{{ complaint.contact_phone|default:"—" }} |
{% endif %}
{% if complaint.involved_departments.exists %}
{% for dept in complaint.involved_departments.all %}
| القسم |
{{ dept.department.name_ar|default:dept.department.name_en }} |
تاريخ الرد |
{% if dept.response_submitted_at %}{{ dept.response_submitted_at|date:"Y/m/d H:i" }}{% else %}—{% endif %} |
{% if dept.response_notes %}
| {{ dept.response_notes }} |
{% endif %}
{% endfor %}
{% endif %}
{% if explanations %}
{% for exp in explanations %}
{% if exp.explanation %}
| الموظف |
{{ exp.staff.get_full_name|default:"—" }} |
تاريخ الرد |
{% if exp.responded_at %}{{ exp.responded_at|date:"Y/m/d H:i" }}{% else %}—{% endif %} |
| {{ exp.explanation }} |
{% endif %}
{% endfor %}
{% endif %}
{% if complaint.resolution %}
| {{ complaint.resolution }} |
{% endif %}
{% if timeline %}
{% for update in timeline %}
| {{ update.created_at|date:"Y/m/d H:i" }} |
{{ update.message }} |
{% endfor %}
{% endif %}
{% include "complaints/partials/pdf_letterhead_footer.html" %}