{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% trans "Suggestion Detail" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Suggestions" %} {% trans "Detail" %}

{% trans "Suggestion Detail" %}

{% if can_edit %} {% trans "Edit" %} {% endif %} {% trans "Back" %}
{{ feedback.title }}
{{ feedback.get_feedback_type_display }} {{ feedback.get_status_display }} {{ feedback.get_priority_display }} {% if feedback.is_featured %} {% trans "FEATURED" %} {% endif %} {% if feedback.is_public %} {% trans "PUBLIC" %} {% endif %}

{{ feedback.message }}

{% trans "Hospital" %} {{ feedback.hospital.name }}
{% trans "Category" %} {{ feedback.get_category_display }} {% if feedback.subcategory %} / {{ feedback.subcategory }} {% endif %}
{% if feedback.location %}
{% trans "Location" %} {{ feedback.location.name }} {% if feedback.main_section %} {{ feedback.main_section.name }}{% endif %} {% if feedback.subsection %} {{ feedback.subsection.name }}{% endif %}
{% else %}
{% trans "Location" %} {% trans "Not specified" %}
{% endif %}
{% trans "Sentiment" %} {{ feedback.get_sentiment_display }} {% if feedback.sentiment_score %} ({{ feedback.sentiment_score|floatformat:2 }}) {% endif %}
{% if feedback.department %}
{% trans "Department" %} {{ feedback.department.name }}
{% endif %} {% if feedback.rating %}
{% trans "Rating" %} {% for i in "12345" %} {% if forloop.counter <= feedback.rating %} {% else %} {% endif %} {% endfor %} {{ feedback.rating }}/5
{% endif %} {% if feedback.source %}
{% trans "Source" %} {{ feedback.source }}
{% endif %} {% if feedback.encounter_id %}
{% trans "Encounter ID" %} {{ feedback.encounter_id }}
{% endif %}
{% trans "Contact" %}
{% if feedback.patient %}
{{ feedback.patient.get_full_name }} {% trans "MRN:" %} {{ feedback.patient.mrn }} {% if feedback.patient.phone %} {{ feedback.patient.phone }} {% endif %} {% if feedback.patient.email %} {{ feedback.patient.email }} {% endif %}
{% else %} {% if feedback.contact_name or feedback.contact_phone or feedback.contact_email %}
{% if feedback.contact_name %} {{ feedback.contact_name }} {% endif %} {% if feedback.contact_phone %} {{ feedback.contact_phone }} {% endif %} {% if feedback.contact_email %} {{ feedback.contact_email }} {% endif %}
{% else %}
{% trans "Anonymous Suggestion" %}
{% endif %} {% endif %}
{{ feedback.created_at|date:"F d, Y H:i" }} ID: {{ feedback.id|slice:":8" }}
{% if feedback.has_ai_analysis %}
{% trans "AI Analysis" %}

{{ feedback.ai_short_description_en }}

{% trans "Category" %}
{{ feedback.ai_category }}
{% trans "Priority" %}
{{ feedback.get_priority_display }}
{% if feedback.ai_reasoning_en %}

{{ feedback.ai_reasoning_en }}

{% endif %} {% if feedback.ai_suggested_actions %}
{% trans "Suggested Actions" %}
{% for action in feedback.ai_suggested_actions %}

{{ action.action_en }}

{{ action.priority }} {% if can_edit %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% if can_edit %}
{% trans "Actions" %}
{% csrf_token %}

{% csrf_token %}


{% comment %}
{% csrf_token %}
{% endcomment %}
{% comment %}
{% csrf_token %}
{% csrf_token %}
{% endcomment %}
{% endif %}
{% endblock %}