Add Procedure model and integrate into CaseForm; update views and templates for procedure handling

This commit is contained in:
Ross
2026-02-16 14:04:37 +00:00
parent c61f92ae9e
commit a51a5c8d54
7 changed files with 141 additions and 1 deletions
+7 -1
View File
@@ -2,7 +2,7 @@ from django.urls import path, include
from django.views.generic import RedirectView, TemplateView
from atlas.models import Condition, Finding, Presentation, Structure, Subspecialty
from atlas.models import Condition, Finding, Presentation, Structure, Subspecialty, Procedure
from . import views
app_name = "atlas"
@@ -628,6 +628,11 @@ urlpatterns = [
views.StructureAutocomplete.as_view(model=Structure, create_field="name", validate_create=True),
name="structure-autocomplete",
),
path(
"procedure-autocomplete",
views.ProcedureAutocomplete.as_view(model=Procedure, create_field="name"),
name="procedure-autocomplete",
),
path(
"subspecialty-autocomplete",
views.SubspecialtyAutocomplete.as_view(model=Subspecialty, create_field="name"),
@@ -637,6 +642,7 @@ urlpatterns = [
path(
"presentation/<int:pk>", views.presentation_detail, name="presentation_detail"
),
path("procedure/<int:pk>", views.procedure_detail, name="procedure_detail"),
path("presentation/create", views.PresentationCreate.as_view(), name="presentation_create"),
path(
"process/",