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

{% trans "Survey Comments" %}

{% trans "View all patient comments with AI-powered sentiment analysis" %}

{% trans "Total Comments" %}

{{ stats.total }}

{% trans "Positive" %}

{{ stats.positive }}

{% trans "Negative" %}

{{ stats.negative }}

{% trans "AI Analyzed" %}

{{ stats.analyzed }}

{% trans "Patient Type Distribution" %}
{% trans "Sentiment by Patient Type" %}
{% if page_obj.object_list %}
{% for survey in page_obj.object_list %} {% endfor %}
{% trans "Patient" %} {% trans "Type" %} {% trans "Comment" %} {% trans "Sentiment" %} {% trans "Survey" %} {% trans "Date" %} {% trans "Actions" %}
{{ survey.patient.get_full_name }}
{{ survey.patient.mrn }} {% if survey.survey_template.hospital %}
{{ survey.survey_template.hospital.name }} {% endif %}
{% if survey.patient_type and survey.patient_type.code %} {{ survey.patient_type.label }} {% else %} N/A {% endif %}
{{ survey.comment }}
{% if survey.comment_analyzed %} {% if survey.comment_analysis.emotion %} {{ survey.comment_analysis.emotion|title }} {% endif %} {% else %} {% trans "Analyzing..." %} {% endif %}
{% if survey.comment_analyzed and survey.comment_analysis.sentiment %} {{ survey.comment_analysis.sentiment|title }} {% else %} {% trans "Pending" %} {% endif %} {{ survey.survey_template.name }}
{{ survey.survey_template.get_survey_type_display }}
{% if survey.total_score %} Score: {{ survey.total_score|floatformat:1 }}/5.0 {% endif %}
{{ survey.completed_at|date:"M d, Y" }}
{{ survey.completed_at|time:"H:i" }}
{% if page_obj.has_other_pages %} {% endif %} {% else %}

{% trans "No survey comments found" %}

{% if filters.search or filters.sentiment or filters.survey_type or filters.hospital or filters.date_from or filters.date_to %} {% trans "Clear Filters" %} {% endif %}
{% endif %}
{% endblock %}