Add forms and views for subspecialty, presentation, and pathological process management
This commit is contained in:
@@ -83,6 +83,9 @@ from .forms import (
|
||||
SeriesFindingForm,
|
||||
CaseDifferentialFormSet,
|
||||
StructureForm,
|
||||
SubspecialtyForm,
|
||||
PresentationForm,
|
||||
PathologicalProcessForm,
|
||||
UserQuestionAnswerForm,
|
||||
UserReportAnswerForm,
|
||||
)
|
||||
@@ -1686,6 +1689,24 @@ class StructureCreate(RevisionMixin, LoginRequiredMixin, CreateView):
|
||||
form_class = StructureForm
|
||||
|
||||
|
||||
class SubspecialtyCreate(RevisionMixin, LoginRequiredMixin, CreateView):
|
||||
model = Subspecialty
|
||||
form_class = SubspecialtyForm
|
||||
template_name = "atlas/subspecialty_form.html"
|
||||
|
||||
|
||||
class PresentationCreate(RevisionMixin, LoginRequiredMixin, CreateView):
|
||||
model = Presentation
|
||||
form_class = PresentationForm
|
||||
template_name = "atlas/presentation_form.html"
|
||||
|
||||
|
||||
class PathologicalProcessCreate(RevisionMixin, LoginRequiredMixin, CreateView):
|
||||
model = PathologicalProcess
|
||||
form_class = PathologicalProcessForm
|
||||
template_name = "atlas/pathological_process_form.html"
|
||||
|
||||
|
||||
class AtlasCreateBase(RevisionMixin, LoginRequiredMixin):
|
||||
model = Case
|
||||
form_class = CaseForm
|
||||
|
||||
Reference in New Issue
Block a user