{% if appointments %}
{% for appointment in appointments %}
{{ appointment.scheduled_datetime|date:"H:i" }} {{ appointment.patient.get_full_name }}
{{ appointment.provider.get_full_name }} • {{ appointment.get_appointment_type_display }} {% if appointment.chief_complaint %} • {{ appointment.chief_complaint|truncatechars:30 }} {% endif %}
{% if appointment.status == 'PENDING' %} {{ appointment.get_status_display }} {% elif appointment.status == 'CONFIRMED' %} {{ appointment.get_status_display }} {% elif appointment.status == 'CHECKED_IN' %} {{ appointment.get_status_display }} {% elif appointment.status == 'IN_PROGRESS' %} {{ appointment.get_status_display }} {% elif appointment.status == 'COMPLETED' %} {{ appointment.get_status_display }} {% elif appointment.status == 'CANCELLED' %} {{ appointment.get_status_display }} {% elif appointment.status == 'NO_SHOW' %} {{ appointment.get_status_display }} {% endif %} {% if appointment.is_telemedicine %} {% endif %}
{% endfor %}
{% else %}
No Appointments

No appointments scheduled for the selected date and filters.

{% endif %}