170 lines
7.4 KiB
Python
Executable File
170 lines
7.4 KiB
Python
Executable File
from django.urls import path, include
|
|
from django.views.generic import RedirectView
|
|
|
|
|
|
from atlas.models import Condition, Finding, Presentation, Structure
|
|
from . import views
|
|
|
|
app_name = "atlas"
|
|
|
|
urlpatterns = [
|
|
path("", views.CaseView.as_view(), name="index"),
|
|
path("create/", RedirectView.as_view(pattern_name='atlas:case_create', permanent=False), name="create"),
|
|
path("author/<int:pk>/", views.author_detail, name="author_detail"),
|
|
path("author/", views.author_list, name="author_list"),
|
|
path("case/", views.CaseView.as_view(), name="case_view"),
|
|
path("collection/", views.CollectionView.as_view(), name="collection_view"),
|
|
path("collection/create", views.CaseCollectionCreate.as_view(), name="collection_create"),
|
|
path("collection/<int:pk>/delete", views.CaseCollectionDelete.as_view(), name="collection_delete"),
|
|
path("collection/<int:pk>/update", views.CaseCollectionUpdate.as_view(), name="collection_update"),
|
|
path("collection/<int:pk>", views.collection_detail, name="collection_detail"),
|
|
path("collection/<int:pk>/take", views.collection_take, name="collection_take"),
|
|
path("collection/<int:pk>/candidates", views.collection_candidates, name="collection_candidates"),
|
|
path("collection/<int:pk>/mark", views.collection_mark_overview, name="collection_mark_overview"),
|
|
path("collection/<int:pk>/mark/<int:case_number>", views.collection_mark_question, name="collection_mark_question"),
|
|
path("collection/<int:pk>/scores", views.collection_scores_cid, name="collection_scores_cid"),
|
|
path("collection/<int:pk>/take/<int:cid>/<str:passcode>", views.collection_take_overview, name="collection_take_overview"),
|
|
path("collection/<int:pk>/<int:case_number>", views.collection_case_view, name="collection_case_view"),
|
|
path("collection/<int:pk>/<int:case_number>/take/<int:cid>/<str:passcode>", views.collection_case_view_take, name="collection_case_view_take"),
|
|
path("condition/", views.ConditionView.as_view(), name="condition_view"),
|
|
path("categories/", views.categories_list, name="categories_list"),
|
|
path("condition/<int:pk>", views.condition_detail, name="condition_detail"),
|
|
path(
|
|
"condition/<int:pk>/delete",
|
|
views.ConditionDelete.as_view(),
|
|
name="condition_delete",
|
|
),
|
|
path(
|
|
"condition/<int:pk>/update",
|
|
views.ConditionUpdate.as_view(),
|
|
name="condition_update",
|
|
),
|
|
path("subspecialty/", views.SubspecialtyView.as_view(), name="subspecialty_view"),
|
|
path("subspecialty/<int:pk>", views.subspecialty_detail, name="subspecialty_detail"),
|
|
path("condition/create", views.ConditionCreate.as_view(), name="condition_create"),
|
|
path("finding/", views.FindingView.as_view(), name="finding_view"),
|
|
path("finding/<int:pk>", views.finding_detail, name="finding_detail"),
|
|
path(
|
|
"finding/<int:pk>/delete", views.FindingDelete.as_view(), name="finding_delete"
|
|
),
|
|
path(
|
|
"finding/<int:pk>/update", views.FindingUpdate.as_view(), name="finding_update"
|
|
),
|
|
path("finding/create", views.FindingCreate.as_view(), name="finding_create"),
|
|
path("structure/", views.StructureView.as_view(), name="structure_view"),
|
|
path("structure/<int:pk>", views.structure_detail, name="structure_detail"),
|
|
path(
|
|
"structure/<int:pk>/delete",
|
|
views.StructureDelete.as_view(),
|
|
name="structure_delete",
|
|
),
|
|
path(
|
|
"structure/<int:pk>/update",
|
|
views.StructureUpdate.as_view(),
|
|
name="structure_update",
|
|
),
|
|
path("structure/create", views.StructureCreate.as_view(), name="structure_create"),
|
|
path("series/<int:pk>", views.series_detail, name="series_detail"),
|
|
path("series/", views.SeriesView.as_view(), name="series_view"),
|
|
path("series/<int:pk>", views.series_detail, name="series_detail"),
|
|
path(
|
|
"series/<int:pk>/<int:finding_pk>",
|
|
views.series_detail,
|
|
name="series_edit_finding",
|
|
),
|
|
path(
|
|
"series/<int:pk>/anon",
|
|
views.series_anonymise_dicom,
|
|
name="series_anonymise_dicom",
|
|
),
|
|
path(
|
|
"series/<int:pk>/order_dicom",
|
|
views.series_order_dicom,
|
|
name="series_order_dicom",
|
|
),
|
|
path(
|
|
"series/<int:pk>/download",
|
|
views.SeriesImagesZipView.as_view(),
|
|
name="series_download",
|
|
),
|
|
path(
|
|
"series/<int:pk>/order_dicom_instance",
|
|
views.series_order_dicom_instance,
|
|
name="series_order_dicom_instance",
|
|
),
|
|
path(
|
|
"series/<int:pk>/order_dicom_SeriesInstanceUID",
|
|
views.series_order_dicom_SeriesInstanceUID,
|
|
name="series_order_dicom_SeriesInstanceUID",
|
|
),
|
|
path(
|
|
"series/<int:pk>/order_upload_filename",
|
|
views.series_order_upload_filename,
|
|
name="series_order_upload_filename",
|
|
),
|
|
path(
|
|
"series/<int:pk>/delete",
|
|
views.SeriesDelete.as_view(),
|
|
name="series_delete",
|
|
),
|
|
# path("unchecked/", views.unchecked_list, name="unchecked_list"),
|
|
# path("verified/<int:pk>/", views.verified_detail, name="verified_detail"),
|
|
path("case/<int:pk>/", views.case_detail, name="case_detail"),
|
|
path("case/<int:pk>/clone", views.AtlasClone.as_view(), name="case_clone"),
|
|
# path("verified/", views.verified, name="verified"),
|
|
# path("all_questions/", views.all_questions, name="all_questions"),
|
|
path("case/<int:pk>/scrap", views.atlas_scrap, name="case_scrap"),
|
|
path("case/<int:pk>/delete", views.CaseDelete.as_view(), name="case_delete"),
|
|
path("case/create/", views.AtlasCreate.as_view(), name="case_create"),
|
|
path("series/create", views.SeriesCreate.as_view(), name="series_create"),
|
|
path(
|
|
"series/<int:pk>/create",
|
|
views.SeriesCreate.as_view(),
|
|
name="series_id_create",
|
|
),
|
|
path(
|
|
"case/<int:pk>/update",
|
|
views.AtlasUpdate.as_view(),
|
|
name="case_update",
|
|
),
|
|
path(
|
|
"series/<int:pk>/update",
|
|
views.SeriesUpdate.as_view(),
|
|
name="series_update",
|
|
),
|
|
path(
|
|
"series/add_finding",
|
|
views.create_series_findings,
|
|
name="add_finding",
|
|
),
|
|
path(
|
|
"series/delete_finding/<int:pk>",
|
|
views.SeriesFindingDelete.as_view(),
|
|
name="delete_finding",
|
|
),
|
|
path(
|
|
"condition-autocomplete",
|
|
views.ConditionAutocomplete.as_view(model=Condition, create_field="name"),
|
|
name="condition-autocomplete",
|
|
),
|
|
path(
|
|
"presentation-autocomplete",
|
|
views.PresentationAutocomplete.as_view(model=Presentation, create_field="name"),
|
|
name="presentation-autocomplete",
|
|
),
|
|
path(
|
|
"finding-autocomplete",
|
|
views.FindingAutocomplete.as_view(model=Finding, create_field="name"),
|
|
name="finding-autocomplete",
|
|
),
|
|
path(
|
|
"structure-autocomplete",
|
|
views.StructureAutocomplete.as_view(model=Structure, create_field="name"),
|
|
name="structure-autocomplete",
|
|
),
|
|
path("presentation/", views.PresentationView.as_view(), name="presentation_view"),
|
|
path("presentation/<int:pk>", views.presentation_detail, name="presentation_detail"),
|
|
path("process/", views.PathologicalProcessView.as_view(), name="pathological_process_view"),
|
|
path("process/<int:pk>", views.pathological_process_detail, name="pathological_process_detail"),
|
|
]
|