Add Procedure model and integrate into CaseForm; update views and templates for procedure handling
This commit is contained in:
+7
-1
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user