{% 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" %}
{{ stats.total }}
{% trans "Comments" %}
{% trans "Positive" %}
{{ stats.positive }}
{% trans "Sentiment" %}
{% trans "Negative" %}
{{ stats.negative }}
{% trans "Sentiment" %}
{% trans "AI" %}
{{ stats.analyzed }}
{% trans "Analyzed" %}

{% trans "Patient Type Distribution" %}

{% trans "Sentiment by Patient Type" %}

{% trans "Clear Filters" %}
{% 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" }}
{% trans "View" %}
{% if page_obj.has_other_pages %}
{% trans "Showing" %} {{ page_obj.start_index }} {% trans "to" %} {{ page_obj.end_index }} {% trans "of" %} {{ page_obj.paginator.count }} {% trans "results" %}
{% endif %} {% else %}

{% trans "No Comments Found" %}

{% trans "No survey comments match your current filters." %}

{% 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 %}