{% extends 'base.html' %} {% load static %} {% block title %}Waitlist Management{% endblock %} {% block css %} {% endblock %} {% block content %}

Waitlist Management

Total Waitlist
{{ total_waitlist }}
Scheduled Today
{{ scheduled_today }}
Priority Cases
{{ priority_cases }}
Avg Wait Time
{{ avg_wait_time }} days
Reset

Current Waitlist

{% if messages %} {% for message in messages %} {% endfor %} {% endif %}
{% for entry in waitlist_entries %} {% empty %} {% endfor %}
Position Patient Provider Type Priority Added Wait Time Actions
{{ entry.position }}
{{ entry.patient.first_name }} {{ entry.patient.last_name }}
{{ entry.patient.patient_id }}
{{ entry.patient.phone_number|default:"No phone" }}
{{ entry.preferred_provider.first_name }} {{ entry.preferred_provider.last_name }}
{{ entry.preferred_provider.department.name }}
{{ entry.appointment_type.name }} {% if entry.priority == 'urgent' %} Urgent {% elif entry.priority == 'high' %} High {% elif entry.priority == 'normal' %} Normal {% else %} Low {% endif %}
{{ entry.added_date|date:"M d, Y" }}
{{ entry.added_date|time:"g:i A" }}
{{ entry.wait_days }} days
{% if entry.wait_days > 30 %}
Long wait
{% elif entry.wait_days > 14 %}
Extended wait
{% endif %}
No patients on waitlist
{% endblock %} {% block js %} {% endblock %}