{% if queue_entries %} {% for entry in queue_entries %}
{{ entry.queue_position }} {{ entry.patient.get_full_name }} {% if entry.priority_score > 1.5 %} Priority {% endif %}
MRN: {{ entry.patient.mrn }} {% if entry.appointment %} • {{ entry.appointment.get_appointment_type_display }} {% if entry.appointment.chief_complaint %} • {{ entry.appointment.chief_complaint|truncatechars:30 }} {% endif %} {% endif %}
Waiting: {{ entry.wait_time_minutes }} min • Joined: {{ entry.joined_at|date:"H:i" }}
{% if entry.status == 'WAITING' %} Waiting {% elif entry.status == 'CALLED' %} Called {% elif entry.status == 'IN_PROGRESS' %} In Progress {% elif entry.status == 'COMPLETED' %} Completed {% elif entry.status == 'NO_SHOW' %} No Show {% endif %}
{% endfor %} {% else %}

Queue is empty

{% endif %}