{% if encounters %} {% for encounter in encounters %} {{ encounter.patient.get_full_name }}
MRN: {{ encounter.patient.mrn }} • {{ encounter.patient.age }}y {{ encounter.patient.get_gender_display }} {{ encounter.start_datetime|date:"M d, Y H:i" }} {{ encounter.get_encounter_type_display }} {% if encounter.provider %} {{ encounter.provider.get_full_name }} {% else %} Not assigned {% endif %} {{ encounter.chief_complaint|truncatechars:50|default:"Not specified" }} {% if encounter.status == 'SCHEDULED' %} Scheduled {% elif encounter.status == 'ARRIVED' %} Arrived {% elif encounter.status == 'TRIAGED' %} Triaged {% elif encounter.status == 'IN_PROGRESS' %} In Progress {% elif encounter.status == 'ON_HOLD' %} On Hold {% elif encounter.status == 'FINISHED' %} Finished {% elif encounter.status == 'CANCELLED' %} Cancelled {% elif encounter.status == 'NO_SHOW' %} No Show {% endif %} {% if encounter.end_datetime %} {{ encounter.duration_minutes }} min {% elif encounter.status == 'IN_PROGRESS' %} Ongoing {% else %} - {% endif %}
{% if encounter.status == 'ARRIVED' or encounter.status == 'TRIAGED' %} {% elif encounter.status == 'IN_PROGRESS' %} {% endif %}
{% endfor %} {% else %}
No encounters found

No encounters match your search criteria.

{% endif %}