{% extends "base.html" %} {% load static %} {% block title %}{{ object.name }} - Quality Indicator - {{ block.super }}{% endblock %} {% block content %}
{{ object.description }}
{{ object.get_category_display }}
{{ object.get_type_display }}
{{ object.measurement_unit }}
{{ object.get_frequency_display }}
{% if object.is_active %} Active {% else %} Inactive {% endif %} {% if object.regulatory_requirement %} Regulatory {% endif %}
{% if object.current_status == 'within_target' %} Within Target {% elif object.current_status == 'warning' %} Warning {% elif object.current_status == 'critical' %} Critical {% else %} No Data {% endif %}
{{ object.calculation_method }}
{{ object.data_source }}
| Date | Value | Status | Numerator | Denominator | Verified By | Actions |
|---|---|---|---|---|---|---|
| {{ measurement.measurement_date|date:"M d, Y" }} | {{ measurement.value }} {{ object.measurement_unit }} | {% if measurement.status == 'within_target' %} Within Target {% elif measurement.status == 'warning' %} Warning {% elif measurement.status == 'critical' %} Critical {% elif measurement.status == 'improving' %} Improving {% elif measurement.status == 'declining' %} Declining {% else %} {{ measurement.get_status_display }} {% endif %} | {{ measurement.numerator|default:"-" }} | {{ measurement.denominator|default:"-" }} |
{% if measurement.verified_by %}
{{ measurement.verified_by.first_name.0 }}{{ measurement.verified_by.last_name.0 }}
{{ measurement.verified_by.get_full_name }}
{{ measurement.verified_at|date:"M d, Y" }}
|
{{ object.responsible_department.name }}
No specific responsibility assigned
{% endif %}{{ object.created_at|date:"M d, Y g:i A" }}
{{ object.updated_at|date:"M d, Y g:i A" }}
{{ object.latest_measurement.measurement_date|date:"M d, Y" }}