{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Survey Instances" %} - PX360{% endblock %} {% block content %}

{% trans "Survey Instances" %}

{% trans "Monitor survey responses and scores" %}

{% trans "Survey List" %}

{% trans "Showing" %} {{ surveys.start_index|default:0 }}-{{ surveys.end_index|default:0 }} {% trans "of" %} {{ surveys.paginator.count|default:0 }}
{% for survey in surveys.object_list %} {% empty %} {% endfor %}
{% trans "Patient" %} {% trans "Survey Template" %} {% trans "Type" %} {% trans "Status" %} {% trans "Score" %} {% trans "Sent" %} {% trans "Completed" %} {% trans "Actions" %}
{{ survey.patient.get_full_name }}
MRN: {{ survey.patient.mrn }}
{{ survey.survey_template.name }}
{% if survey.survey_template.hospital %}
{{ survey.survey_template.hospital.name }}
{% endif %}
{{ survey.survey_template.get_survey_type_display }} {% if survey.status == 'completed' %} {{ survey.get_status_display }} {% elif survey.status == 'sent' %} {{ 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 %}
{{ survey.total_score|floatformat:1 }}/5.0 {% if survey.is_negative %} {% endif %}
{% else %} - {% endif %}
{% if survey.sent_at %} {{ survey.sent_at|date:"M d, Y H:i" }} {% else %} - {% endif %} {% if survey.completed_at %} {{ survey.completed_at|date:"M d, Y H:i" }} {% else %} - {% endif %}

{% trans "No surveys found" %}

{% if surveys.has_other_pages %}
{% trans "Showing" %} {{ surveys.start_index }}-{{ surveys.end_index }} {% trans "of" %} {{ surveys.paginator.count }} {% trans "entries" %}
{% for key, value in request.GET.items %} {% if key != 'page_size' and key != 'page' %} {% endif %} {% endfor %}
{% if surveys.has_previous %} {% else %} {% endif %} {% for num in surveys.paginator.page_range %} {% if num == surveys.number %} {{ num }} {% elif num > surveys.number|add:'-3' and num < surveys.number|add:'3' %} {{ num }} {% elif num == 1 or num == surveys.paginator.num_pages %} {{ num }} {% elif num == surveys.number|add:'-3' or num == surveys.number|add:'3' %} ... {% endif %} {% endfor %} {% if surveys.has_next %} {% else %} {% endif %}
{% endif %}
{% endblock %}