""" URL configuration for EMR app. """ from django.urls import path, include from . import views app_name = 'emr' urlpatterns = [ # Main views path('', views.EMRDashboardView.as_view(), name='dashboard'), path('encounters/', views.EncounterListView.as_view(), name='encounter_list'), path('encounters//', views.EncounterDetailView.as_view(), name='encounter_detail'), # path('encounters//update/', views.EncounterUpdateView.as_view(), name='encounter_update'), # path('encounters//delete/', views.EncounterDeleteView.as_view(), name='encounter_delete'), path('encounters/create/', views.EncounterCreateView.as_view(), name='encounter_create'), path('vital-signs/', views.VitalSignsListView.as_view(), name='vital_signs_list'), path('problems/', views.ProblemListView.as_view(), name='problem_list'), path('care-plans/', views.CarePlanListView.as_view(), name='care_plan_list'), path('notes/', views.ClinicalNoteListView.as_view(), name='clinical_note_list'), path('notes//', views.ClinicalNoteDetailView.as_view(), name='clinical_note_detail'), path('notes//update/', views.ClinicalNoteUpdateView.as_view(), name='clinical_note_update'), path('notes//delete/', views.ClinicalNoteDeleteView.as_view(), name='clinical_note_delete'), path('notes/create//', views.ClinicalNoteCreateView.as_view(), name='clinical_note_create'), # HTMX endpoints path('stats/', views.emr_stats, name='emr_stats'), path('encounter-search/', views.encounter_search, name='encounter_search'), path('vital-signs-chart//', views.vital_signs_chart, name='vital_signs_chart'), path('problem-list//', views.problem_list_patient, name='problem_list_patient'), # Actions # path('record-create/', views.RecordCreateView.as_view(), name='record_create'), path('encounter//vitals/add/', views.add_vital_signs, name='add_vital_signs'), path('patient//problem/add/', views.add_problem, name='add_problem'), path('encounter//status/', views.update_encounter_status, name='update_encounter_status'), path('note//sign/', views.sign_note, name='sign_note'), # API endpoints # path('api/', include('emr.api.urls')), ]