{% load static %}
Problem List
{% for problem in problems %} {% empty %} {% endfor %}
# Problem Status Onset Date Resolution Date Actions
{{ forloop.counter }} {{ problem.problem_name }} {% if problem.icd_code %}
ICD: {{ problem.icd_code }} {% endif %}
{% if problem.status == 'ACTIVE' %} Active {% elif problem.status == 'RESOLVED' %} Resolved {% elif problem.status == 'INACTIVE' %} Inactive {% endif %} {{ problem.onset_date|date:"M d, Y" }} {% if problem.resolution_date %} {{ problem.resolution_date|date:"M d, Y" }} {% else %} - {% endif %}
{% if problem.status == 'ACTIVE' %} {% endif %}
No problems recorded
Active: {{ active_count }} Resolved: {{ resolved_count }} Inactive: {{ inactive_count }}
Add Problem