{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Review Doctor Ratings" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Review Import" %}

{% trans "Review and confirm doctor ratings before importing" %}

{% trans "Back to Upload" %}

{% trans "Total Records" %}

{{ total_count }}

{% trans "Matched Doctors" %}

{{ matched_count }}

{{ matched_count|default:0|add:0 }} / {{ total_count }}

{% trans "Unmatched" %}

{{ unmatched_count }}

{% trans "Will need manual matching" %}

{% trans "Hospital" %}

{{ hospital.name }}

{% if errors %}

{% trans "Parsing Errors" %} ({{ errors|length }})

    {% for error in errors|slice:":5" %}
  • {{ error }}
  • {% endfor %} {% if errors|length > 5 %}
  • ... and {{ errors|length|add:"-5" }} more errors
  • {% endif %}
{% endif %} {% if unmatched_count > 0 %}

{% trans "Unmatched Doctors" %}

{% trans "Some doctors could not be automatically matched to staff records. You can:" %}

  • {% trans "Import anyway - ratings will be stored and can be matched later" %}
  • {% trans "Update staff records with correct employee_id to enable matching" %}
{% endif %}

{% trans "Doctor Ratings Preview" %}

{% trans "Showing" %} {{ page_obj.start_index }} - {{ page_obj.end_index }} {% trans "of" %} {{ total_count }}
{% for rating in page_obj %} {% empty %} {% endfor %}
# {% trans "Doctor" %} {% trans "Patient" %} {% trans "Rating" %} {% trans "Date" %} {% trans "Department" %} {% trans "Match Status" %}
{{ rating.row_num }}

{{ rating.doctor_name|default:rating.doctor_name_raw }}

{% if rating.doctor_id %}

ID: {{ rating.doctor_id }}

{% endif %}
{{ rating.patient_name }}
{{ rating.uhid }}
{% if rating.rating >= 4 %}
{{ rating.rating }}
{% elif rating.rating >= 3 %}
{{ rating.rating }}
{% else %}
{{ rating.rating }}
{% endif %}
{% if rating.rating_date %}
{{ rating.rating_date }}
{% else %}
-
{% endif %}
{{ rating.department|default:"-" }}
{% if rating.staff_matched %} {% trans "Matched" %} {% else %} {% trans "Unmatched" %} {% endif %}

{% trans "No ratings to display" %}

{% if page_obj.has_other_pages %}
{% trans "Showing" %} {{ page_obj.start_index }}-{{ page_obj.end_index }} {% trans "of" %} {{ total_count }} {% trans "entries" %}
{% if page_obj.has_previous %} {% else %} {% endif %} {% for num in page_obj.paginator.page_range %} {% if num == page_obj.number %} {{ num }} {% elif num > page_obj.number|add:'-3' and num < page_obj.number|add:'3' %} {{ num }} {% elif num == 1 or num == page_obj.paginator.num_pages %} {{ num }} {% elif num == page_obj.number|add:'-3' or num == page_obj.number|add:'3' %} ... {% endif %} {% endfor %} {% if page_obj.has_next %} {% else %} {% endif %}
{% endif %}
{% csrf_token %}

{% trans "Ready to Import?" %}

{% trans "This will queue a background job to import all ratings. You'll be able to track progress." %}

{% endblock %} {% block extra_js %} {% endblock %}