{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Send Surveys to Patients" %} - PX360{% endblock %} {% block content %}

{% trans "Send Surveys to Patients" %}

{{ hospital.name }} | {% trans "Patients Ready:" %} {{ total_count }}

{% trans "Survey Settings" %}

{% csrf_token %}
{{ form.survey_template }} {% if form.survey_template.help_text %}

{{ form.survey_template.help_text }}

{% endif %}
{{ form.delivery_channel }} {% if form.delivery_channel.help_text %}

{{ form.delivery_channel.help_text }}

{% endif %}
{{ form.custom_message }} {% if form.custom_message.help_text %}

{{ form.custom_message.help_text }}

{% endif %}

{% trans "Patients to Survey" %}

{% csrf_token %}
{% for patient in patients %} {% empty %} {% endfor %}
{% trans "MRN" %} {% trans "Patient Name" %} {% trans "Phone" %} {% trans "Visit Type" %}
{{ patient.file_number }}
{{ patient.patient_name }}
{{ patient.gender|default:"-" }}
{% if patient.patient_obj.phone %} {{ patient.patient_obj.phone }} {% else %} {% trans "No phone" %} {% endif %} {% if patient.visit_type == 'EMERGENCY' %} {{ patient.visit_type|default:"-" }} {% elif patient.visit_type == 'INPATIENT' %} {{ patient.visit_type|default:"-" }} {% elif patient.visit_type %} {{ patient.visit_type }} {% else %} - {% endif %}

{% trans "No patients available for survey." %}

0 {% trans "patients selected" %}

{% trans "Cancel" %}

{% trans "Important Note" %}

{% trans "Only patients with phone numbers can receive SMS surveys. Patients without phone numbers will be skipped during the sending process." %}

{% endblock %}