""" URL configuration for appointments app. """ from django.urls import path, include from . import views app_name = 'appointments' urlpatterns = [ # Main views path('', views.AppointmentDashboardView.as_view(), name='dashboard'), path('requests/', views.AppointmentListView.as_view(), name='appointment_list'), path('requests/create/', views.AppointmentRequestCreateView.as_view(), name='appointment_create'), path('requests//detail/', views.AppointmentDetailView.as_view(), name='appointment_detail'), path('calendar/', views.SchedulingCalendarView.as_view(), name='scheduling_calendar'), path('queue/', views.QueueManagementView.as_view(), name='queue_management'), # Telemedicine path('telemedicine/', views.TelemedicineView.as_view(), name='telemedicine'), path('telemedicine/create/', views.TelemedicineSessionCreateView.as_view(), name='telemedicine_session_create'), path('telemedicine//', views.TelemedicineSessionDetailView.as_view(), name='telemedicine_session_detail'), path('telemedicine//update/', views.TelemedicineSessionUpdateView.as_view(), name='telemedicine_session_update'), path('telemedicine//start/', views.start_telemedicine_session, name='start_telemedicine_session'), path('telemedicine//end/', views.end_telemedicine_session, name='stop_telemedicine_session'), path('telemedicine//cancel/', views.cancel_telemedicine_session, name='cancel_telemedicine_session'), # HTMX endpoints path('search/', views.appointment_search, name='appointment_search'), path('stats/', views.appointment_stats, name='appointment_stats'), path('calendar/appointments/', views.calendar_appointments, name='calendar_appointments'), path('slots/available/', views.available_slots, name='available_slots'), path('queue//status/', views.queue_status, name='queue_status'), # Actions path('check-in//', views.check_in_patient, name='check_in_patient'), path('queue//call-next/', views.call_next_patient, name='call_next_patient'), path('complete//', views.complete_appointment, name='complete_appointment'), path('reschedule//', views.reschedule_appointment, name='reschedule_appointment'), path('cancel//', views.cancel_appointment, name='cancel_appointment'), path('templates/', views.AppointmentTemplateListView.as_view(), name='appointment_template_list'), path('templates//', views.AppointmentTemplateDetailView.as_view(), name='appointment_template_detail'), path('templates/create/', views.AppointmentTemplateCreateView.as_view(), name='appointment_template_create'), path('templates//update/', views.AppointmentTemplateUpdateView.as_view(), name='appointment_template_update'), path('templates//delete/', views.AppointmentTemplateDeleteView.as_view(), name='appointment_template_delete'), # API endpoints # path('api/', include('appointments.api.urls')), ]