324 lines
11 KiB
Python
Executable File
324 lines
11 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.index, name="index"),
|
|
path(
|
|
"create/",
|
|
RedirectView.as_view(pattern_name="atlas:case_create", permanent=False),
|
|
name="create",
|
|
),
|
|
path(
|
|
"self_review/<int:user_exam_id>/<int:case_id>/add",
|
|
views.AddSelfReview.as_view(),
|
|
name="add_self_review",
|
|
),
|
|
path(
|
|
"self_review/<int:user_exam_id>/<int:case_id>/update/<int:pk>",
|
|
views.SelfReviewUpdate.as_view(),
|
|
name="self_review_update",
|
|
),
|
|
path(
|
|
"self_review/<int:user_exam_id>/<int:case_id>/delete/<int:pk>",
|
|
views.SelfReviewDelete.as_view(),
|
|
name="self_review_delete",
|
|
),
|
|
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/user", views.user_collections, name="user_collections"),
|
|
path("uploads", views.user_uploads, name="user_uploads"),
|
|
path("uploads/case/<int:case_id>", views.user_uploads, name="user_uploads_case"),
|
|
path("uploads/series_id/<str:series_instance_uid>", views.user_uploads_series, name="user_uploads_series"),
|
|
path(
|
|
"collection/create",
|
|
views.CaseCollectionCreate.as_view(),
|
|
name="exam_create",
|
|
),
|
|
path("collection/<int:exam_id>/clone", views.CollectionClone.as_view(), name="exam_clone"),
|
|
path(
|
|
"collection/<int:pk>/delete",
|
|
views.CaseCollectionDelete.as_view(),
|
|
name="exam_deleted",
|
|
),
|
|
path(
|
|
"collection/<int:pk>/update",
|
|
views.CaseCollectionUpdate.as_view(),
|
|
name="exam_update",
|
|
),
|
|
path("collection/<int:pk>", views.collection_detail, name="collection_detail"),
|
|
path(
|
|
"collection/<int:pk>/take",
|
|
views.collection_take_start,
|
|
name="collection_take_start",
|
|
),
|
|
path(
|
|
"collection/<int:exam_id>/cids",
|
|
views.GenericExamViews.exam_cids,
|
|
name="exam_cids",
|
|
),
|
|
path(
|
|
"exam/<int:exam_id>/cids/edit",
|
|
views.GenericExamViews.exam_cids_edit,
|
|
name="exam_cids_edit",
|
|
),
|
|
path(
|
|
"exam/<int:exam_id>/users/edit",
|
|
views.GenericExamViews.exam_users_edit,
|
|
name="exam_users_edit",
|
|
),
|
|
path(
|
|
"collection/<int:exam_id>/cids/<int:cid>/delete_answers",
|
|
views.delete_collection_cid_answers,
|
|
name="delete_collection_cid_answers",
|
|
),
|
|
path(
|
|
"collection/<int:exam_id>/delete_answers",
|
|
views.delete_collection_answers,
|
|
name="delete_collection_answers",
|
|
),
|
|
path(
|
|
"collection/<int:exam_id>/cids/edit",
|
|
views.GenericExamViews.exam_cids_edit,
|
|
name="exam_cids_edit",
|
|
),
|
|
path(
|
|
"collection/<int:exam_id>/users/edit",
|
|
views.GenericExamViews.exam_users_edit,
|
|
name="exam_users_edit",
|
|
),
|
|
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_overview/<int:cid>/<str:passcode>",
|
|
views.collection_take_overview,
|
|
name="collection_take_overview",
|
|
),
|
|
path(
|
|
"collection/<int:pk>/take_overview",
|
|
views.collection_take_overview_user,
|
|
name="collection_take_overview_user",
|
|
),
|
|
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(
|
|
"collection/<int:pk>/<int:case_number>/take/",
|
|
views.collection_case_view_take_user,
|
|
name="collection_case_view_take_user",
|
|
),
|
|
path(
|
|
"collection/<int:pk>/json_edit",
|
|
views.GenericExamViews.exam_json_edit,
|
|
name="exam_json_edit",
|
|
),
|
|
path(
|
|
"case/<int:pk>/dicom_json",
|
|
views.case_dicom_json,
|
|
name="case_dicom_json",
|
|
),
|
|
path("uncategorised_dicoms/", views.uncategorised_dicoms, name="uncategorised_dicoms_view"),
|
|
|
|
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(
|
|
"condition/<int:pk_to_merge>/merge/",
|
|
views.condition_merge,
|
|
name="condition_merge",
|
|
),
|
|
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_image/<int:pk>/dicom", views.series_image_dicom, name="series_image_dicom"),
|
|
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>/collection-form", views.AddCollectionToCaseView.as_view(), name="case_collection_form"),
|
|
path(
|
|
"case/<int:case_id>/collection-form",
|
|
views.add_collection_to_case_form,
|
|
name="case_collection_form",
|
|
),
|
|
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(
|
|
"case/collection/<int:pk>/create",
|
|
views.AtlasCreate.as_view(),
|
|
name="atlas_create_exam",
|
|
),
|
|
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(
|
|
"condition-autocomplete-rcr-curriculum",
|
|
views.ConditionAutocompleteRCRCurriculum.as_view(model=Condition),
|
|
name="condition-autocomplete-rcr-curriculum",
|
|
),
|
|
|
|
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",
|
|
),
|
|
]
|