{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}Survey #{{ survey.id|slice:":8" }} - PX360{% endblock %} {% block content %}
Back to Surveys
{{ survey.survey_template.name }}
{% trans "Survey Responses" %}
{% for response in responses %}
Q{{ forloop.counter }}: {{ response.question.text }}
{% if response.numeric_value %} Score: {{ response.numeric_value }} {% endif %} {% if response.choice_value %} {{ response.choice_value }} {% endif %} {% if response.text_value %}

{{ response.text_value }}

{% endif %}
{% empty %}

No responses yet

{% endfor %}
{% trans "Survey Information" %}
Status:
{% if survey.status == 'completed' %} {{ survey.get_status_display }} {% elif survey.status == 'pending' %} {{ survey.get_status_display }} {% elif survey.status == 'active' %} {{ survey.get_status_display }} {% elif survey.status == 'cancelled' %} {{ survey.get_status_display }} {% else %} {{ survey.get_status_display }} {% endif %}
{% if survey.total_score %}
Total Score:

{{ survey.total_score|floatformat:1 }}/5.0

{% if survey.is_negative %} Negative Feedback {% endif %}
{% endif %} {% if survey.sent_at %}
Sent:
{{ survey.sent_at|date:"M d, Y H:i" }}
{% endif %} {% if survey.completed_at %}
Completed:
{{ survey.completed_at|date:"M d, Y H:i" }}
{% endif %}
{% trans "Patient Information" %}
Name:
{{ survey.patient.get_full_name }}
MRN:
{{ survey.patient.mrn }}
{% if survey.is_negative %}
{% trans "Follow-up Actions" %}
{% if not survey.patient_contacted %}
Action Required: Contact patient to discuss negative feedback.
{% csrf_token %}
{% else %}
Patient Contacted
By {{ survey.patient_contacted_by.get_full_name }} on {{ survey.patient_contacted_at|date:"M d, Y H:i" }}
Contact Notes:

{{ survey.contact_notes }}

Status:
{% if survey.issue_resolved %} Issue Resolved {% else %} Issue Discussed {% endif %}
{% if not survey.satisfaction_feedback_sent %}
{% trans "Send Satisfaction Feedback" %}

Send a feedback form to the patient to assess their satisfaction with how their concerns were addressed.

{% csrf_token %}
{% else %}
Satisfaction Feedback Sent
{{ survey.satisfaction_feedback_sent_at|date:"M d, Y H:i" }}
{% if survey.follow_up_feedbacks.exists %}
Related Feedback: {% for feedback in survey.follow_up_feedbacks.all %} {% endfor %}
{% endif %} {% endif %} {% endif %}
{% endif %}
{% endblock %}