Marwan Alwali 23158e9fbf update
2025-09-08 03:00:23 +03:00

46 lines
2.4 KiB
Python

"""
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/<uuid:pk>/', views.EncounterDetailView.as_view(), name='encounter_detail'),
# path('encounters/<int:pk>/update/', views.EncounterUpdateView.as_view(), name='encounter_update'),
# path('encounters/<int:pk>/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/<int:pk>/', views.ClinicalNoteDetailView.as_view(), name='clinical_note_detail'),
path('notes/<int:pk>/update/', views.ClinicalNoteUpdateView.as_view(), name='clinical_note_update'),
path('notes/<int:pk>/delete/', views.ClinicalNoteDeleteView.as_view(), name='clinical_note_delete'),
path('notes/create/<int:pk>/', 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/<int:patient_id>/', views.vital_signs_chart, name='vital_signs_chart'),
path('problem-list/<int:patient_id>/', views.problem_list_patient, name='problem_list_patient'),
# Actions
# path('record-create/', views.RecordCreateView.as_view(), name='record_create'),
path('encounter/<int:encounter_id>/vitals/add/', views.add_vital_signs, name='add_vital_signs'),
path('patient/<int:patient_id>/problem/add/', views.add_problem, name='add_problem'),
path('encounter/<int:encounter_id>/status/', views.update_encounter_status, name='update_encounter_status'),
path('note/<int:note_id>/sign/', views.sign_note, name='sign_note'),
path('problem/<int:problem_id>/resolve/', views.resolve_problem, name='resolve_problem'),
# API endpoints
# path('api/', include('emr.api.urls')),
]