{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Department Overview" %} - {% trans "Physicians" %} - PX360{% endblock %} {% block content %}

{% trans "Department Overview" %}

{% trans "Performance by department for" %} {{ year }}-{{ month|stringformat:"02d" }}

{% trans "Specialization View" %} {% trans "Back to Physicians" %}
{% if departments %} {% for dept_data in departments %}
{{ dept_data.department.name }}
{{ dept_data.department.hospital.name }}
{{ dept_data.average_rating|floatformat:2 }}
{% trans "Avg Rating" %}
{{ dept_data.total_physicians }}
{% trans "Physicians" %}
{{ dept_data.total_surveys }}
{% trans "Surveys" %}
{{ dept_data.positive_count }} {{ dept_data.neutral_count }} {{ dept_data.negative_count }}
{% trans "Sentiment" %}
{% for rating in dept_data.physicians %} {% endfor %}
{% trans "Rank" %} {% trans "Physician" %} {% trans "Specialization" %} {% trans "Rating" %} {% trans "Surveys" %} {% trans "Dept Rank" %} {% trans "Actions" %}
{% if forloop.counter <= 3 %} #{{ forloop.counter }} {% else %} #{{ forloop.counter }} {% endif %} {{ rating.physician.get_full_name }}
{{ rating.physician.license_number }}
{{ rating.physician.specialization }} {{ rating.average_rating|floatformat:2 }} {{ rating.total_surveys }} {% if rating.department_rank %} #{{ rating.department_rank }} {% else %} - {% endif %}
{% endfor %} {% else %}

{% trans "No department data available for this period" %}

{% endif %}
{% endblock %}