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

{{ physician.get_full_name }}

{{ physician.specialization }}

{% if physician.status == 'active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{% trans "Basic Information" %}

{{ physician.license_number }}

{{ physician.specialization }}

{{ physician.hospital.name }}

{% if physician.department %}

{{ physician.department.name }}

{% endif %} {% if physician.email %}

{{ physician.email }}

{% endif %} {% if physician.phone %}

{{ physician.phone }}

{% endif %}
{% if current_month_rating %}
{% trans "Current Month" %}

{{ current_month_rating.average_rating|floatformat:2 }}

{% trans "Average Rating" %}

{{ current_month_rating.total_surveys }}

{% trans "Surveys" %}
{% if current_month_rating.hospital_rank %}

#{{ current_month_rating.hospital_rank }}

{% trans "Hospital Rank" %} {% else %}

-

{% trans "No Rank" %} {% endif %}
{% if trend != 'stable' %}
{% if trend == 'improving' %} {% trans "Improving" %} {{ trend_percentage|floatformat:1 }}% {% else %} {% trans "Declining" %} {{ trend_percentage|floatformat:1 }}% {% endif %}
{% endif %}
{% endif %}
{% trans "YTD Average Rating" %}
{% if ytd_average %}

{{ ytd_average|floatformat:2 }}

{% else %}

-

{% endif %}
{% trans "YTD Total Surveys" %}

{{ ytd_surveys|default:0 }}

{% if best_month or worst_month %}
{% if best_month %}
{% trans "Best Month" %}

{{ best_month.average_rating|floatformat:2 }}

{{ best_month.year }}-{{ best_month.month|stringformat:"02d" }}
{% endif %} {% if worst_month %}
{% trans "Lowest Month" %}

{{ worst_month.average_rating|floatformat:2 }}

{{ worst_month.year }}-{{ worst_month.month|stringformat:"02d" }}
{% endif %}
{% endif %}
{% trans "Ratings History" %} ({% trans "Last 12 Months" %})
{% if ratings_history %}
{% for rating in ratings_history %} {% endfor %}
{% trans "Month" %} {% trans "Rating" %} {% trans "Surveys" %} {% trans "Positive" %} {% trans "Neutral" %} {% trans "Negative" %} {% trans "Hospital Rank" %}
{{ rating.year }}-{{ rating.month|stringformat:"02d" }} {{ rating.average_rating|floatformat:2 }} {{ rating.total_surveys }} {{ rating.positive_count }} {{ rating.neutral_count }} {{ rating.negative_count }} {% if rating.hospital_rank %} #{{ rating.hospital_rank }} {% else %} - {% endif %}
{% else %}

{% trans "No rating history available" %}

{% endif %}
{% endblock %}