endoreg-db 0.8.4.4__py3-none-any.whl → 0.8.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of endoreg-db might be problematic. Click here for more details.
- endoreg_db/authz/auth.py +74 -0
- endoreg_db/authz/backends.py +168 -0
- endoreg_db/authz/management/commands/list_routes.py +18 -0
- endoreg_db/authz/middleware.py +83 -0
- endoreg_db/authz/permissions.py +127 -0
- endoreg_db/authz/policy.py +218 -0
- endoreg_db/authz/views_auth.py +66 -0
- endoreg_db/config/env.py +13 -8
- endoreg_db/data/__init__.py +8 -31
- endoreg_db/data/_examples/disease.yaml +55 -0
- endoreg_db/data/_examples/disease_classification.yaml +13 -0
- endoreg_db/data/_examples/disease_classification_choice.yaml +62 -0
- endoreg_db/data/_examples/event.yaml +64 -0
- endoreg_db/data/_examples/examination.yaml +72 -0
- endoreg_db/data/_examples/finding/anatomy_colon.yaml +128 -0
- endoreg_db/data/_examples/finding/colonoscopy.yaml +40 -0
- endoreg_db/data/_examples/finding/colonoscopy_bowel_prep.yaml +56 -0
- endoreg_db/data/_examples/finding/complication.yaml +16 -0
- endoreg_db/data/_examples/finding/data.yaml +105 -0
- endoreg_db/data/_examples/finding/examination_setting.yaml +16 -0
- endoreg_db/data/_examples/finding/medication_related.yaml +18 -0
- endoreg_db/data/_examples/finding/outcome.yaml +12 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_bowel_preparation.yaml +68 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_jnet.yaml +22 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_kudo.yaml +25 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_lesion_circularity.yaml +20 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_lesion_planarity.yaml +24 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_lesion_size.yaml +68 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_lesion_surface.yaml +20 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_location.yaml +80 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_lst.yaml +21 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_nice.yaml +20 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_paris.yaml +26 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_sano.yaml +22 -0
- endoreg_db/data/_examples/finding_classification/colonoscopy_summary.yaml +53 -0
- endoreg_db/data/_examples/finding_classification/complication_generic.yaml +25 -0
- endoreg_db/data/_examples/finding_classification/examination_setting_generic.yaml +40 -0
- endoreg_db/data/_examples/finding_classification/histology_colo.yaml +51 -0
- endoreg_db/data/_examples/finding_classification/intervention_required.yaml +26 -0
- endoreg_db/data/_examples/finding_classification/medication_related.yaml +23 -0
- endoreg_db/data/_examples/finding_classification/visualized.yaml +33 -0
- endoreg_db/data/_examples/finding_classification_choice/bowel_preparation.yaml +78 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_circularity_default.yaml +32 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_jnet.yaml +15 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_kudo.yaml +23 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_lst.yaml +15 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_nice.yaml +17 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_paris.yaml +57 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_planarity_default.yaml +49 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_sano.yaml +14 -0
- endoreg_db/data/_examples/finding_classification_choice/colon_lesion_surface_intact_default.yaml +36 -0
- endoreg_db/data/_examples/finding_classification_choice/colonoscopy_location.yaml +229 -0
- endoreg_db/data/_examples/finding_classification_choice/colonoscopy_not_complete_reason.yaml +19 -0
- endoreg_db/data/_examples/finding_classification_choice/colonoscopy_size.yaml +82 -0
- endoreg_db/data/_examples/finding_classification_choice/colonoscopy_summary_worst_finding.yaml +15 -0
- endoreg_db/data/_examples/finding_classification_choice/complication_generic_types.yaml +15 -0
- endoreg_db/data/_examples/finding_classification_choice/examination_setting_generic_types.yaml +15 -0
- endoreg_db/data/_examples/finding_classification_choice/histology.yaml +24 -0
- endoreg_db/data/_examples/finding_classification_choice/histology_polyp.yaml +20 -0
- endoreg_db/data/_examples/finding_classification_choice/outcome.yaml +19 -0
- endoreg_db/data/_examples/finding_classification_choice/yes_no_na.yaml +11 -0
- endoreg_db/data/_examples/finding_classification_type/colonoscopy_basic.yaml +48 -0
- endoreg_db/data/_examples/finding_intervention/endoscopy.yaml +43 -0
- endoreg_db/data/_examples/finding_intervention/endoscopy_colonoscopy.yaml +168 -0
- endoreg_db/data/_examples/finding_intervention/endoscopy_egd.yaml +128 -0
- endoreg_db/data/_examples/finding_intervention/endoscopy_ercp.yaml +32 -0
- endoreg_db/data/_examples/finding_intervention/endoscopy_eus_lower.yaml +9 -0
- endoreg_db/data/_examples/finding_intervention/endoscopy_eus_upper.yaml +36 -0
- endoreg_db/data/_examples/finding_intervention_type/endoscopy.yaml +15 -0
- endoreg_db/data/_examples/finding_type/data.yaml +43 -0
- endoreg_db/data/_examples/requirement/age.yaml +26 -0
- endoreg_db/data/_examples/requirement/colonoscopy_baseline_austria.yaml +45 -0
- endoreg_db/data/_examples/requirement/disease_cardiovascular.yaml +79 -0
- endoreg_db/data/_examples/requirement/disease_classification_choice_cardiovascular.yaml +41 -0
- endoreg_db/data/_examples/requirement/disease_hepatology.yaml +12 -0
- endoreg_db/data/_examples/requirement/disease_misc.yaml +12 -0
- endoreg_db/data/_examples/requirement/disease_renal.yaml +96 -0
- endoreg_db/data/_examples/requirement/endoscopy_bleeding_risk.yaml +59 -0
- endoreg_db/data/_examples/requirement/event_cardiology.yaml +251 -0
- endoreg_db/data/_examples/requirement/event_requirements.yaml +145 -0
- endoreg_db/data/_examples/requirement/finding_colon_polyp.yaml +50 -0
- endoreg_db/data/_examples/requirement/gender.yaml +25 -0
- endoreg_db/data/_examples/requirement/lab_value.yaml +441 -0
- endoreg_db/data/_examples/requirement/medication.yaml +93 -0
- endoreg_db/data/_examples/requirement_operator/age.yaml +13 -0
- endoreg_db/data/_examples/requirement_operator/lab_operators.yaml +129 -0
- endoreg_db/data/_examples/requirement_operator/model_operators.yaml +96 -0
- endoreg_db/data/_examples/requirement_set/01_endoscopy_generic.yaml +48 -0
- endoreg_db/data/_examples/requirement_set/colonoscopy_austria_screening.yaml +57 -0
- endoreg_db/data/_examples/yaml_examples.xlsx +0 -0
- endoreg_db/data/ai_model_meta/default_multilabel_classification.yaml +4 -3
- endoreg_db/data/event_classification/data.yaml +4 -0
- endoreg_db/data/event_classification_choice/data.yaml +9 -0
- endoreg_db/data/finding_classification/colonoscopy_bowel_preparation.yaml +43 -70
- endoreg_db/data/finding_classification/colonoscopy_lesion_size.yaml +22 -52
- endoreg_db/data/finding_classification/colonoscopy_location.yaml +31 -62
- endoreg_db/data/finding_classification/histology_colo.yaml +28 -36
- endoreg_db/data/requirement/colon_polyp_intervention.yaml +49 -0
- endoreg_db/data/requirement/coloreg_colon_polyp.yaml +49 -0
- endoreg_db/data/requirement_set/01_endoscopy_generic.yaml +31 -12
- endoreg_db/data/requirement_set/01_laboratory.yaml +13 -0
- endoreg_db/data/requirement_set/02_endoscopy_bleeding_risk.yaml +46 -0
- endoreg_db/data/requirement_set/90_coloreg.yaml +178 -0
- endoreg_db/data/requirement_set/_old_ +109 -0
- endoreg_db/data/requirement_set_type/data.yaml +21 -0
- endoreg_db/data/setup_config.yaml +4 -4
- endoreg_db/data/tag/requirement_set_tags.yaml +21 -0
- endoreg_db/exceptions.py +5 -2
- endoreg_db/helpers/data_loader.py +1 -1
- endoreg_db/management/commands/create_model_meta_from_huggingface.py +21 -10
- endoreg_db/management/commands/create_multilabel_model_meta.py +299 -129
- endoreg_db/management/commands/import_video.py +9 -10
- endoreg_db/management/commands/import_video_with_classification.py +1 -1
- endoreg_db/management/commands/init_default_ai_model.py +1 -1
- endoreg_db/management/commands/list_routes.py +18 -0
- endoreg_db/management/commands/load_ai_model_data.py +2 -1
- endoreg_db/management/commands/load_center_data.py +12 -12
- endoreg_db/management/commands/load_requirement_data.py +60 -31
- endoreg_db/management/commands/load_requirement_set_tags.py +95 -0
- endoreg_db/management/commands/setup_endoreg_db.py +14 -10
- endoreg_db/management/commands/storage_management.py +271 -203
- endoreg_db/migrations/0001_initial.py +1799 -1300
- endoreg_db/migrations/0002_requirementset_depends_on.py +18 -0
- endoreg_db/migrations/_old/0001_initial.py +1857 -0
- endoreg_db/migrations/_old/0004_employee_city_employee_post_code_employee_street_and_more.py +68 -0
- endoreg_db/migrations/_old/0004_remove_casetemplate_rules_and_more.py +77 -0
- endoreg_db/migrations/_old/0005_merge_20251111_1003.py +14 -0
- endoreg_db/migrations/_old/0006_sensitivemeta_anonymized_text_and_more.py +68 -0
- endoreg_db/migrations/_old/0007_remove_rule_attribute_dtype_remove_rule_rule_type_and_more.py +89 -0
- endoreg_db/migrations/_old/0008_remove_event_event_classification_and_more.py +27 -0
- endoreg_db/migrations/_old/0009_alter_modelmeta_options_and_more.py +21 -0
- endoreg_db/models/__init__.py +78 -123
- endoreg_db/models/administration/__init__.py +21 -42
- endoreg_db/models/administration/ai/active_model.py +2 -2
- endoreg_db/models/administration/ai/ai_model.py +7 -6
- endoreg_db/models/administration/case/__init__.py +1 -15
- endoreg_db/models/administration/case/case.py +3 -3
- endoreg_db/models/administration/case/case_template/__init__.py +2 -14
- endoreg_db/models/administration/case/case_template/case_template.py +2 -124
- endoreg_db/models/administration/case/case_template/case_template_rule.py +2 -268
- endoreg_db/models/administration/case/case_template/case_template_rule_value.py +2 -85
- endoreg_db/models/administration/case/case_template/case_template_type.py +2 -25
- endoreg_db/models/administration/center/center.py +33 -19
- endoreg_db/models/administration/center/center_product.py +12 -9
- endoreg_db/models/administration/center/center_resource.py +25 -19
- endoreg_db/models/administration/center/center_shift.py +21 -17
- endoreg_db/models/administration/center/center_waste.py +16 -8
- endoreg_db/models/administration/person/__init__.py +2 -0
- endoreg_db/models/administration/person/employee/employee.py +10 -5
- endoreg_db/models/administration/person/employee/employee_qualification.py +9 -4
- endoreg_db/models/administration/person/employee/employee_type.py +12 -6
- endoreg_db/models/administration/person/examiner/examiner.py +13 -11
- endoreg_db/models/administration/person/patient/__init__.py +2 -0
- endoreg_db/models/administration/person/patient/patient.py +103 -100
- endoreg_db/models/administration/person/patient/patient_external_id.py +37 -0
- endoreg_db/models/administration/person/person.py +4 -0
- endoreg_db/models/administration/person/profession/__init__.py +8 -4
- endoreg_db/models/administration/person/user/portal_user_information.py +11 -7
- endoreg_db/models/administration/product/product.py +20 -15
- endoreg_db/models/administration/product/product_material.py +17 -18
- endoreg_db/models/administration/product/product_weight.py +12 -8
- endoreg_db/models/administration/product/reference_product.py +23 -55
- endoreg_db/models/administration/qualification/qualification.py +7 -3
- endoreg_db/models/administration/qualification/qualification_type.py +7 -3
- endoreg_db/models/administration/shift/scheduled_days.py +8 -5
- endoreg_db/models/administration/shift/shift.py +16 -12
- endoreg_db/models/administration/shift/shift_type.py +23 -31
- endoreg_db/models/label/__init__.py +7 -8
- endoreg_db/models/label/annotation/image_classification.py +10 -9
- endoreg_db/models/label/annotation/video_segmentation_annotation.py +8 -5
- endoreg_db/models/label/label.py +15 -15
- endoreg_db/models/label/label_set.py +19 -6
- endoreg_db/models/label/label_type.py +1 -1
- endoreg_db/models/label/label_video_segment/_create_from_video.py +5 -8
- endoreg_db/models/label/label_video_segment/label_video_segment.py +76 -102
- endoreg_db/models/label/video_segmentation_label.py +4 -0
- endoreg_db/models/label/video_segmentation_labelset.py +4 -3
- endoreg_db/models/media/frame/frame.py +22 -22
- endoreg_db/models/media/pdf/raw_pdf.py +249 -177
- endoreg_db/models/media/pdf/report_file.py +25 -29
- endoreg_db/models/media/pdf/report_reader/report_reader_config.py +30 -46
- endoreg_db/models/media/pdf/report_reader/report_reader_flag.py +23 -7
- endoreg_db/models/media/video/__init__.py +1 -0
- endoreg_db/models/media/video/create_from_file.py +48 -56
- endoreg_db/models/media/video/pipe_1.py +30 -33
- endoreg_db/models/media/video/pipe_2.py +8 -9
- endoreg_db/models/media/video/video_file.py +359 -204
- endoreg_db/models/media/video/video_file_ai.py +288 -74
- endoreg_db/models/media/video/video_file_anonymize.py +38 -38
- endoreg_db/models/media/video/video_file_frames/__init__.py +3 -1
- endoreg_db/models/media/video/video_file_frames/_bulk_create_frames.py +6 -8
- endoreg_db/models/media/video/video_file_frames/_create_frame_object.py +7 -9
- endoreg_db/models/media/video/video_file_frames/_delete_frames.py +9 -8
- endoreg_db/models/media/video/video_file_frames/_extract_frames.py +38 -45
- endoreg_db/models/media/video/video_file_frames/_get_frame.py +6 -8
- endoreg_db/models/media/video/video_file_frames/_get_frame_number.py +4 -18
- endoreg_db/models/media/video/video_file_frames/_get_frame_path.py +4 -3
- endoreg_db/models/media/video/video_file_frames/_get_frame_paths.py +7 -6
- endoreg_db/models/media/video/video_file_frames/_get_frame_range.py +6 -8
- endoreg_db/models/media/video/video_file_frames/_get_frames.py +6 -8
- endoreg_db/models/media/video/video_file_frames/_initialize_frames.py +15 -25
- endoreg_db/models/media/video/video_file_frames/_manage_frame_range.py +26 -23
- endoreg_db/models/media/video/video_file_frames/_mark_frames_extracted_status.py +23 -14
- endoreg_db/models/media/video/video_file_io.py +109 -62
- endoreg_db/models/media/video/video_file_meta/get_crop_template.py +3 -3
- endoreg_db/models/media/video/video_file_meta/get_endo_roi.py +5 -3
- endoreg_db/models/media/video/video_file_meta/get_fps.py +37 -34
- endoreg_db/models/media/video/video_file_meta/initialize_video_specs.py +19 -25
- endoreg_db/models/media/video/video_file_meta/text_meta.py +41 -38
- endoreg_db/models/media/video/video_file_meta/video_meta.py +14 -7
- endoreg_db/models/media/video/video_file_segments.py +24 -17
- endoreg_db/models/media/video/video_metadata.py +19 -35
- endoreg_db/models/media/video/video_processing.py +96 -95
- endoreg_db/models/medical/contraindication/__init__.py +13 -3
- endoreg_db/models/medical/disease.py +22 -16
- endoreg_db/models/medical/event.py +31 -18
- endoreg_db/models/medical/examination/__init__.py +13 -6
- endoreg_db/models/medical/examination/examination.py +17 -18
- endoreg_db/models/medical/examination/examination_indication.py +26 -25
- endoreg_db/models/medical/examination/examination_time.py +16 -6
- endoreg_db/models/medical/examination/examination_time_type.py +9 -6
- endoreg_db/models/medical/examination/examination_type.py +3 -4
- endoreg_db/models/medical/finding/finding.py +38 -39
- endoreg_db/models/medical/finding/finding_classification.py +37 -48
- endoreg_db/models/medical/finding/finding_intervention.py +27 -22
- endoreg_db/models/medical/finding/finding_type.py +13 -12
- endoreg_db/models/medical/hardware/endoscope.py +20 -26
- endoreg_db/models/medical/hardware/endoscopy_processor.py +2 -2
- endoreg_db/models/medical/laboratory/lab_value.py +62 -91
- endoreg_db/models/medical/medication/medication.py +22 -10
- endoreg_db/models/medical/medication/medication_indication.py +29 -3
- endoreg_db/models/medical/medication/medication_indication_type.py +25 -14
- endoreg_db/models/medical/medication/medication_intake_time.py +31 -19
- endoreg_db/models/medical/medication/medication_schedule.py +27 -16
- endoreg_db/models/medical/organ/__init__.py +15 -12
- endoreg_db/models/medical/patient/medication_examples.py +1 -5
- endoreg_db/models/medical/patient/patient_disease.py +20 -23
- endoreg_db/models/medical/patient/patient_event.py +19 -22
- endoreg_db/models/medical/patient/patient_examination.py +48 -54
- endoreg_db/models/medical/patient/patient_examination_indication.py +16 -14
- endoreg_db/models/medical/patient/patient_finding.py +122 -139
- endoreg_db/models/medical/patient/patient_finding_classification.py +44 -49
- endoreg_db/models/medical/patient/patient_finding_intervention.py +8 -19
- endoreg_db/models/medical/patient/patient_lab_sample.py +28 -23
- endoreg_db/models/medical/patient/patient_lab_value.py +82 -89
- endoreg_db/models/medical/patient/patient_medication.py +27 -38
- endoreg_db/models/medical/patient/patient_medication_schedule.py +28 -36
- endoreg_db/models/medical/risk/risk.py +7 -6
- endoreg_db/models/medical/risk/risk_type.py +8 -5
- endoreg_db/models/metadata/model_meta.py +60 -29
- endoreg_db/models/metadata/model_meta_logic.py +139 -18
- endoreg_db/models/metadata/pdf_meta.py +19 -24
- endoreg_db/models/metadata/sensitive_meta.py +102 -85
- endoreg_db/models/metadata/sensitive_meta_logic.py +383 -43
- endoreg_db/models/metadata/video_meta.py +51 -31
- endoreg_db/models/metadata/video_prediction_logic.py +16 -23
- endoreg_db/models/metadata/video_prediction_meta.py +29 -33
- endoreg_db/models/other/distribution/date_value_distribution.py +89 -29
- endoreg_db/models/other/distribution/multiple_categorical_value_distribution.py +21 -5
- endoreg_db/models/other/distribution/numeric_value_distribution.py +114 -53
- endoreg_db/models/other/distribution/single_categorical_value_distribution.py +4 -3
- endoreg_db/models/other/emission/emission_factor.py +18 -8
- endoreg_db/models/other/gender.py +10 -5
- endoreg_db/models/other/information_source.py +25 -25
- endoreg_db/models/other/material.py +9 -5
- endoreg_db/models/other/resource.py +6 -4
- endoreg_db/models/other/tag.py +10 -5
- endoreg_db/models/other/transport_route.py +13 -8
- endoreg_db/models/other/unit.py +10 -6
- endoreg_db/models/other/waste.py +6 -5
- endoreg_db/models/requirement/requirement.py +580 -272
- endoreg_db/models/requirement/requirement_error.py +85 -0
- endoreg_db/models/requirement/requirement_evaluation/evaluate_with_dependencies.py +268 -0
- endoreg_db/models/requirement/requirement_evaluation/operator_evaluation_models.py +3 -6
- endoreg_db/models/requirement/requirement_evaluation/requirement_type_parser.py +90 -64
- endoreg_db/models/requirement/requirement_operator.py +36 -33
- endoreg_db/models/requirement/requirement_set.py +74 -57
- endoreg_db/models/state/__init__.py +4 -4
- endoreg_db/models/state/abstract.py +2 -2
- endoreg_db/models/state/anonymization.py +12 -0
- endoreg_db/models/state/audit_ledger.py +46 -47
- endoreg_db/models/state/label_video_segment.py +9 -0
- endoreg_db/models/state/raw_pdf.py +40 -46
- endoreg_db/models/state/sensitive_meta.py +6 -2
- endoreg_db/models/state/video.py +58 -53
- endoreg_db/models/upload_job.py +32 -55
- endoreg_db/models/utils.py +1 -2
- endoreg_db/root_urls.py +21 -2
- endoreg_db/serializers/__init__.py +26 -57
- endoreg_db/serializers/anonymization.py +18 -10
- endoreg_db/serializers/meta/report_meta.py +1 -1
- endoreg_db/serializers/meta/sensitive_meta_detail.py +63 -118
- endoreg_db/serializers/misc/__init__.py +1 -1
- endoreg_db/serializers/misc/file_overview.py +33 -91
- endoreg_db/serializers/misc/{vop_patient_data.py → sensitive_patient_data.py} +1 -1
- endoreg_db/serializers/requirements/requirement_sets.py +92 -22
- endoreg_db/serializers/video/segmentation.py +2 -1
- endoreg_db/serializers/video/video_processing_history.py +20 -5
- endoreg_db/serializers/video_examination.py +198 -0
- endoreg_db/services/anonymization.py +75 -73
- endoreg_db/services/lookup_service.py +256 -73
- endoreg_db/services/lookup_store.py +174 -30
- endoreg_db/services/pdf_import.py +711 -310
- endoreg_db/services/storage_aware_video_processor.py +140 -114
- endoreg_db/services/video_import.py +266 -117
- endoreg_db/urls/__init__.py +27 -27
- endoreg_db/urls/label_video_segments.py +2 -0
- endoreg_db/urls/media.py +108 -66
- endoreg_db/urls/root_urls.py +29 -0
- endoreg_db/utils/__init__.py +15 -5
- endoreg_db/utils/ai/multilabel_classification_net.py +116 -20
- endoreg_db/utils/case_generator/__init__.py +3 -0
- endoreg_db/utils/dataloader.py +88 -16
- endoreg_db/utils/defaults/set_default_center.py +32 -0
- endoreg_db/utils/names.py +22 -16
- endoreg_db/utils/permissions.py +2 -1
- endoreg_db/utils/pipelines/process_video_dir.py +1 -1
- endoreg_db/utils/requirement_operator_logic/model_evaluators.py +414 -127
- endoreg_db/utils/setup_config.py +8 -5
- endoreg_db/utils/storage.py +115 -0
- endoreg_db/utils/validate_endo_roi.py +8 -2
- endoreg_db/utils/video/ffmpeg_wrapper.py +184 -188
- endoreg_db/views/__init__.py +5 -12
- endoreg_db/views/anonymization/media_management.py +198 -163
- endoreg_db/views/anonymization/overview.py +4 -1
- endoreg_db/views/anonymization/validate.py +174 -40
- endoreg_db/views/media/__init__.py +2 -0
- endoreg_db/views/media/pdf_media.py +131 -150
- endoreg_db/views/media/sensitive_metadata.py +46 -6
- endoreg_db/views/media/video_media.py +89 -82
- endoreg_db/views/media/video_segments.py +187 -260
- endoreg_db/views/meta/sensitive_meta_detail.py +0 -63
- endoreg_db/views/patient/patient.py +5 -4
- endoreg_db/views/pdf/__init__.py +5 -8
- endoreg_db/views/pdf/pdf_stream.py +186 -0
- endoreg_db/views/pdf/pdf_stream_views.py +0 -127
- endoreg_db/views/pdf/reimport.py +86 -91
- endoreg_db/views/requirement/evaluate.py +188 -187
- endoreg_db/views/requirement/lookup.py +186 -288
- endoreg_db/views/requirement/requirement_utils.py +89 -0
- endoreg_db/views/video/__init__.py +0 -4
- endoreg_db/views/video/correction.py +2 -2
- endoreg_db/views/video/video_examination_viewset.py +202 -289
- {endoreg_db-0.8.4.4.dist-info → endoreg_db-0.8.8.0.dist-info}/METADATA +7 -3
- {endoreg_db-0.8.4.4.dist-info → endoreg_db-0.8.8.0.dist-info}/RECORD +350 -255
- endoreg_db/models/administration/permissions/__init__.py +0 -44
- endoreg_db/models/media/video/refactor_plan.md +0 -0
- endoreg_db/models/media/video/video_file_frames.py +0 -0
- endoreg_db/models/metadata/frame_ocr_result.py +0 -0
- endoreg_db/models/rule/__init__.py +0 -13
- endoreg_db/models/rule/rule.py +0 -27
- endoreg_db/models/rule/rule_applicator.py +0 -224
- endoreg_db/models/rule/rule_attribute_dtype.py +0 -17
- endoreg_db/models/rule/rule_type.py +0 -20
- endoreg_db/models/rule/ruleset.py +0 -17
- endoreg_db/serializers/video/video_metadata.py +0 -105
- endoreg_db/urls/report.py +0 -48
- endoreg_db/urls/video.py +0 -61
- endoreg_db/utils/case_generator/case_generator.py +0 -159
- endoreg_db/utils/case_generator/utils.py +0 -30
- endoreg_db/views/pdf/pdf_media.py +0 -239
- endoreg_db/views/report/__init__.py +0 -9
- endoreg_db/views/report/report_list.py +0 -112
- endoreg_db/views/report/report_with_secure_url.py +0 -28
- endoreg_db/views/report/start_examination.py +0 -7
- endoreg_db/views/video/video_media.py +0 -158
- endoreg_db/views.py +0 -0
- /endoreg_db/data/{requirement_set → _examples/requirement_set}/endoscopy_bleeding_risk.yaml +0 -0
- /endoreg_db/migrations/{0002_add_video_correction_models.py → _old/0002_add_video_correction_models.py} +0 -0
- /endoreg_db/migrations/{0003_add_center_display_name.py → _old/0003_add_center_display_name.py} +0 -0
- {endoreg_db-0.8.4.4.dist-info → endoreg_db-0.8.8.0.dist-info}/WHEEL +0 -0
- {endoreg_db-0.8.4.4.dist-info → endoreg_db-0.8.8.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
- model: endoreg_db.finding_intervention
|
|
2
|
+
fields:
|
|
3
|
+
name: colon_lesion_polypectomy_cold_snare
|
|
4
|
+
description:
|
|
5
|
+
Cold snare polypectomy is a technique used to remove small polyps
|
|
6
|
+
from the colon. It is performed using a snare wire loop that is passed through
|
|
7
|
+
the colonoscope and used to remove the polyp by cutting it off at the base.
|
|
8
|
+
The procedure is usually done without the need for sedation and is considered
|
|
9
|
+
to be a safe and effective way to remove small polyps from the colon.
|
|
10
|
+
intervention_types:
|
|
11
|
+
- therapeutic
|
|
12
|
+
- invasive
|
|
13
|
+
required_lab_values:
|
|
14
|
+
- hemoglobin
|
|
15
|
+
- platelets
|
|
16
|
+
- international_normalized_ratio
|
|
17
|
+
contraindications:
|
|
18
|
+
- anticoagulation-therapeutic
|
|
19
|
+
- thrombocytopenia-severe
|
|
20
|
+
- model: endoreg_db.finding_intervention
|
|
21
|
+
fields:
|
|
22
|
+
name: colon_lesion_polypectomy_hot_snare
|
|
23
|
+
description:
|
|
24
|
+
Hot snare polypectomy is a technique used to remove small polyps
|
|
25
|
+
from the colon. It is performed using a snare wire loop that is passed through
|
|
26
|
+
the colonoscope and used to remove the polyp by cutting it off at the base.
|
|
27
|
+
The procedure is usually done without the need for sedation and is considered
|
|
28
|
+
to be a safe and effective way to remove small polyps from the colon.
|
|
29
|
+
intervention_types:
|
|
30
|
+
- therapeutic
|
|
31
|
+
- invasive
|
|
32
|
+
required_lab_values:
|
|
33
|
+
- hemoglobin
|
|
34
|
+
- platelets
|
|
35
|
+
- international_normalized_ratio
|
|
36
|
+
contraindications:
|
|
37
|
+
- anticoagulation-therapeutic
|
|
38
|
+
- thrombocytopenia-severe
|
|
39
|
+
- model: endoreg_db.finding_intervention
|
|
40
|
+
fields:
|
|
41
|
+
name: colon_lesion_injection_liftup
|
|
42
|
+
description:
|
|
43
|
+
Lift-up injection is a technique used to lift up a lesion in the
|
|
44
|
+
colon. It is performed by injecting a solution under the lesion to create a
|
|
45
|
+
cushion of fluid that lifts the lesion away from the colon wall. This allows
|
|
46
|
+
the lesion to be removed more easily and reduces the risk of complications during
|
|
47
|
+
the procedure.
|
|
48
|
+
intervention_types:
|
|
49
|
+
- diagnostic
|
|
50
|
+
- invasive
|
|
51
|
+
required_lab_values:
|
|
52
|
+
- hemoglobin
|
|
53
|
+
- platelets
|
|
54
|
+
- international_normalized_ratio
|
|
55
|
+
contraindications: []
|
|
56
|
+
- model: endoreg_db.finding_intervention
|
|
57
|
+
fields:
|
|
58
|
+
name: colon_lesion_injection_vasoactive
|
|
59
|
+
description:
|
|
60
|
+
Vasoactive injection is a technique used to reduce bleeding from
|
|
61
|
+
a lesion in the colon. It is performed by injecting a solution into the lesion
|
|
62
|
+
that causes the blood vessels to constrict, reducing the flow of blood to the
|
|
63
|
+
area. This can help to stop bleeding and make it easier to remove the lesion
|
|
64
|
+
during the procedure.
|
|
65
|
+
intervention_types:
|
|
66
|
+
- therapeutic
|
|
67
|
+
- invasive
|
|
68
|
+
required_lab_values: []
|
|
69
|
+
contraindications: []
|
|
70
|
+
- model: endoreg_db.finding_intervention
|
|
71
|
+
fields:
|
|
72
|
+
name: colon_lesion_biopsy
|
|
73
|
+
description:
|
|
74
|
+
Biopsy is a technique used to take a small sample of tissue from
|
|
75
|
+
a lesion in the colon. It is performed by inserting a small instrument through
|
|
76
|
+
the colonoscope and removing a small piece of tissue from the lesion. The tissue
|
|
77
|
+
sample is then sent to a laboratory for analysis to determine if the lesion
|
|
78
|
+
is cancerous or benign.
|
|
79
|
+
intervention_types:
|
|
80
|
+
- diagnostic
|
|
81
|
+
- invasive
|
|
82
|
+
required_lab_values: []
|
|
83
|
+
contraindications:
|
|
84
|
+
- anticoagulation-therapeutic
|
|
85
|
+
- thrombocytopenia-severe
|
|
86
|
+
- model: endoreg_db.finding_intervention
|
|
87
|
+
fields:
|
|
88
|
+
name: colon_lesion_emr
|
|
89
|
+
description:
|
|
90
|
+
Endoscopic mucosal resection (EMR) is a technique used to remove
|
|
91
|
+
large polyps or early-stage cancers from the colon. It is performed by injecting
|
|
92
|
+
a solution under the lesion to create a cushion of fluid that lifts the lesion
|
|
93
|
+
away from the colon wall. A snare wire loop is then used to remove the lesion
|
|
94
|
+
by cutting it off at the base. The procedure is usually done under sedation
|
|
95
|
+
and is considered to be a safe and effective way to remove large polyps or early-stage
|
|
96
|
+
cancers from the colon.
|
|
97
|
+
intervention_types:
|
|
98
|
+
- therapeutic
|
|
99
|
+
- invasive
|
|
100
|
+
required_lab_values:
|
|
101
|
+
- hemoglobin
|
|
102
|
+
- platelets
|
|
103
|
+
- international_normalized_ratio
|
|
104
|
+
contraindications:
|
|
105
|
+
- anticoagulation-therapeutic
|
|
106
|
+
- thrombocytopenia-severe
|
|
107
|
+
- model: endoreg_db.finding_intervention
|
|
108
|
+
fields:
|
|
109
|
+
name: colon_lesion_esd
|
|
110
|
+
description:
|
|
111
|
+
Endoscopic submucosal dissection (ESD) is a technique used to remove
|
|
112
|
+
large polyps or early-stage cancers from the colon. It is performed by injecting
|
|
113
|
+
a solution under the lesion to create a cushion of fluid that lifts the lesion
|
|
114
|
+
away from the colon wall. A snare wire loop is then used to remove the lesion
|
|
115
|
+
by cutting it off at the base. The procedure is usually done under sedation
|
|
116
|
+
and is considered to be a safe and effective way to remove large polyps or early-stage
|
|
117
|
+
cancers from the colon.
|
|
118
|
+
intervention_types:
|
|
119
|
+
- therapeutic
|
|
120
|
+
- invasive
|
|
121
|
+
required_lab_values:
|
|
122
|
+
- hemoglobin
|
|
123
|
+
- platelets
|
|
124
|
+
- international_normalized_ratio
|
|
125
|
+
contraindications:
|
|
126
|
+
- anticoagulation-therapeutic
|
|
127
|
+
- thrombocytopenia-severe
|
|
128
|
+
- model: endoreg_db.finding_intervention
|
|
129
|
+
fields:
|
|
130
|
+
name: colon_lesion_clip
|
|
131
|
+
description:
|
|
132
|
+
Clip closure is a technique used to close a defect in the colon wall
|
|
133
|
+
after a polyp has been removed. It is performed by placing a small metal clip
|
|
134
|
+
over the defect to seal it and prevent bleeding or perforation. The clip is
|
|
135
|
+
left in place until the defect has healed, usually within a few days.
|
|
136
|
+
intervention_types:
|
|
137
|
+
- therapeutic
|
|
138
|
+
- invasive
|
|
139
|
+
- foreign_body
|
|
140
|
+
required_lab_values: []
|
|
141
|
+
contraindications: []
|
|
142
|
+
- model: endoreg_db.finding_intervention
|
|
143
|
+
fields:
|
|
144
|
+
name: colon_lesion_over_the_scope_clip
|
|
145
|
+
description:
|
|
146
|
+
Over-the-scope clip (OTSC) is a clipping system used to close defects
|
|
147
|
+
in the GI tract.
|
|
148
|
+
intervention_types:
|
|
149
|
+
- therapeutic
|
|
150
|
+
- invasive
|
|
151
|
+
required_lab_values: []
|
|
152
|
+
contraindications: []
|
|
153
|
+
- model: endoreg_db.finding_intervention
|
|
154
|
+
fields:
|
|
155
|
+
name: colon_lesion_eftr
|
|
156
|
+
description:
|
|
157
|
+
Endoscopic full-thickness resection (EFTR) is a technique used to
|
|
158
|
+
remove lesions in the colon.
|
|
159
|
+
intervention_types:
|
|
160
|
+
- therapeutic
|
|
161
|
+
- invasive
|
|
162
|
+
required_lab_values:
|
|
163
|
+
- hemoglobin
|
|
164
|
+
- platelets
|
|
165
|
+
- international_normalized_ratio
|
|
166
|
+
contraindications:
|
|
167
|
+
- anticoagulation-therapeutic
|
|
168
|
+
- thrombocytopenia-severe
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
- model: endoreg_db.finding_intervention
|
|
2
|
+
fields:
|
|
3
|
+
name: egd_lesion_biopsy
|
|
4
|
+
# ...existing code...
|
|
5
|
+
- model: endoreg_db.finding_intervention
|
|
6
|
+
fields:
|
|
7
|
+
name: egd_hp_biopsy
|
|
8
|
+
# ...existing code...
|
|
9
|
+
- model: endoreg_db.finding_intervention
|
|
10
|
+
fields:
|
|
11
|
+
name: egd_lesion_injection_vasoactive
|
|
12
|
+
# ...existing code...
|
|
13
|
+
- model: endoreg_db.finding_intervention
|
|
14
|
+
fields:
|
|
15
|
+
name: egd_lesion_clip
|
|
16
|
+
# ...existing code...
|
|
17
|
+
- model: endoreg_db.finding_intervention
|
|
18
|
+
fields:
|
|
19
|
+
name: egd_lesion_over_the_scope_clip
|
|
20
|
+
# ...existing code...
|
|
21
|
+
- model: endoreg_db.finding_intervention
|
|
22
|
+
fields:
|
|
23
|
+
name: egd_varice_band_ligation
|
|
24
|
+
# ...existing code...
|
|
25
|
+
- model: endoreg_db.finding_intervention
|
|
26
|
+
fields:
|
|
27
|
+
name: egd_varice_sclerotherapy
|
|
28
|
+
# ...existing code...
|
|
29
|
+
- model: endoreg_db.finding_intervention
|
|
30
|
+
fields:
|
|
31
|
+
name: egd_argon_plasma_coagulation
|
|
32
|
+
# ...existing code...
|
|
33
|
+
- model: endoreg_db.finding_intervention
|
|
34
|
+
fields:
|
|
35
|
+
name: egd_percutaneous_gastroenterostomy
|
|
36
|
+
# ...existing code...
|
|
37
|
+
- model: endoreg_db.finding_intervention
|
|
38
|
+
fields:
|
|
39
|
+
name: egd_percutaneous_jejunostomy
|
|
40
|
+
# ...existing code...
|
|
41
|
+
- model: endoreg_db.finding_intervention
|
|
42
|
+
fields:
|
|
43
|
+
name: egd_clip
|
|
44
|
+
# ...existing code...
|
|
45
|
+
- model: endoreg_db.finding_intervention
|
|
46
|
+
fields:
|
|
47
|
+
name: egd_varicosis_band_ligation
|
|
48
|
+
# ...existing code...
|
|
49
|
+
- model: endoreg_db.finding_intervention
|
|
50
|
+
fields:
|
|
51
|
+
name: egd_varicosis_sclerotherapy
|
|
52
|
+
# ...existing code...
|
|
53
|
+
- model: endoreg_db.finding_intervention
|
|
54
|
+
fields:
|
|
55
|
+
name: egd_injection_vasoactive
|
|
56
|
+
# ...existing code...
|
|
57
|
+
- model: endoreg_db.finding_intervention
|
|
58
|
+
fields:
|
|
59
|
+
name: egd_injection_varicosis
|
|
60
|
+
# ...existing code...
|
|
61
|
+
- model: endoreg_db.finding_intervention
|
|
62
|
+
fields:
|
|
63
|
+
name: egd_lesion_polypectomy_cold_snare
|
|
64
|
+
# ...existing code...
|
|
65
|
+
- model: endoreg_db.finding_intervention
|
|
66
|
+
fields:
|
|
67
|
+
name: egd_lesion_polypectomy_hot_snare
|
|
68
|
+
# ...existing code...
|
|
69
|
+
- model: endoreg_db.finding_intervention
|
|
70
|
+
fields:
|
|
71
|
+
name: egd_lesion_polypectomy_forceps
|
|
72
|
+
# ...existing code...
|
|
73
|
+
- model: endoreg_db.finding_intervention
|
|
74
|
+
fields:
|
|
75
|
+
name: egd_lesion_injection_liftup
|
|
76
|
+
# ...existing code...
|
|
77
|
+
- model: endoreg_db.finding_intervention
|
|
78
|
+
fields:
|
|
79
|
+
name: egd_lesion_emr
|
|
80
|
+
# ...existing code...
|
|
81
|
+
- model: endoreg_db.finding_intervention
|
|
82
|
+
fields:
|
|
83
|
+
name: egd_lesion_esd
|
|
84
|
+
# ...existing code...
|
|
85
|
+
- model: endoreg_db.finding_intervention
|
|
86
|
+
fields:
|
|
87
|
+
name: egd_eftr
|
|
88
|
+
# ...existing code...
|
|
89
|
+
- model: endoreg_db.finding_intervention
|
|
90
|
+
fields:
|
|
91
|
+
name: egd_poem
|
|
92
|
+
# ...existing code...
|
|
93
|
+
- model: endoreg_db.finding_intervention
|
|
94
|
+
fields:
|
|
95
|
+
name: egd_stepwise_biopsy
|
|
96
|
+
# ...existing code...
|
|
97
|
+
- model: endoreg_db.finding_intervention
|
|
98
|
+
fields:
|
|
99
|
+
name: egd_esophagus_injection_botox
|
|
100
|
+
# ...existing code...
|
|
101
|
+
- model: endoreg_db.finding_intervention
|
|
102
|
+
fields:
|
|
103
|
+
name: egd_stenosis_dilation
|
|
104
|
+
# ...existing code...
|
|
105
|
+
- model: endoreg_db.finding_intervention
|
|
106
|
+
fields:
|
|
107
|
+
name: egd_stenosis_bougie
|
|
108
|
+
# ...existing code...
|
|
109
|
+
- model: endoreg_db.finding_intervention
|
|
110
|
+
fields:
|
|
111
|
+
name: egd_stenosis_balloon
|
|
112
|
+
# ...existing code...
|
|
113
|
+
- model: endoreg_db.finding_intervention
|
|
114
|
+
fields:
|
|
115
|
+
name: egd_stenosis_stent
|
|
116
|
+
# ...existing code...
|
|
117
|
+
- model: endoreg_db.finding_intervention
|
|
118
|
+
fields:
|
|
119
|
+
name: egd_lesion_radiofrequency_ablation
|
|
120
|
+
# ...existing code...
|
|
121
|
+
- model: endoreg_db.finding_intervention
|
|
122
|
+
fields:
|
|
123
|
+
name: egd_lesion_cryotherapy
|
|
124
|
+
# ...existing code...
|
|
125
|
+
- model: endoreg_db.finding_intervention
|
|
126
|
+
fields:
|
|
127
|
+
name: egd_stenosis_laser
|
|
128
|
+
# ...existing code...
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
- model: endoreg_db.finding_intervention
|
|
2
|
+
fields:
|
|
3
|
+
name: ercp
|
|
4
|
+
# ...existing code...
|
|
5
|
+
- model: endoreg_db.finding_intervention
|
|
6
|
+
fields:
|
|
7
|
+
name: ercp_sphincterotomy
|
|
8
|
+
# ...existing code...
|
|
9
|
+
- model: endoreg_db.finding_intervention
|
|
10
|
+
fields:
|
|
11
|
+
name: ercp_stent
|
|
12
|
+
# ...existing code...
|
|
13
|
+
- model: endoreg_db.finding_intervention
|
|
14
|
+
fields:
|
|
15
|
+
name: ercp_extraction
|
|
16
|
+
# ...existing code...
|
|
17
|
+
- model: endoreg_db.finding_intervention
|
|
18
|
+
fields:
|
|
19
|
+
name: ercp_biopsy
|
|
20
|
+
# ...existing code...
|
|
21
|
+
- model: endoreg_db.finding_intervention
|
|
22
|
+
fields:
|
|
23
|
+
name: erc
|
|
24
|
+
# ...existing code...
|
|
25
|
+
- model: endoreg_db.finding_intervention
|
|
26
|
+
fields:
|
|
27
|
+
name: erp
|
|
28
|
+
# ...existing code...
|
|
29
|
+
- model: endoreg_db.finding_intervention
|
|
30
|
+
fields:
|
|
31
|
+
name: ercp_radiofrequency_ablation
|
|
32
|
+
# ...existing code...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# (currently no interventions)
|
|
2
|
+
- model: endoreg_db.finding_intervention
|
|
3
|
+
fields:
|
|
4
|
+
name: endosonography_lower_gi_solid_lesion_fna
|
|
5
|
+
|
|
6
|
+
# endosonography_lower_gi_lymph_node_fna
|
|
7
|
+
- model: endoreg_db.finding_intervention
|
|
8
|
+
fields:
|
|
9
|
+
name: endosonography_lower_gi_lymph_node_fna
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
- model: endoreg_db.finding_intervention
|
|
2
|
+
fields:
|
|
3
|
+
name: endosonography_upper_gi_solid_lesion_fna
|
|
4
|
+
# ...existing code...
|
|
5
|
+
- model: endoreg_db.finding_intervention
|
|
6
|
+
fields:
|
|
7
|
+
name: endosonography_upper_gi_cyst_fna
|
|
8
|
+
# ...existing code...
|
|
9
|
+
- model: endoreg_db.finding_intervention
|
|
10
|
+
fields:
|
|
11
|
+
name: endosonography_upper_gi_pseudocyst_fna
|
|
12
|
+
# ...existing code...
|
|
13
|
+
- model: endoreg_db.finding_intervention
|
|
14
|
+
fields:
|
|
15
|
+
name: endosonography_upper_gi_biliary_drainage
|
|
16
|
+
# ...existing code...
|
|
17
|
+
- model: endoreg_db.finding_intervention
|
|
18
|
+
fields:
|
|
19
|
+
name: endosonography_upper_gi_pancreatic_drainage
|
|
20
|
+
# ...existing code...
|
|
21
|
+
- model: endoreg_db.finding_intervention
|
|
22
|
+
fields:
|
|
23
|
+
name: endosonography_upper_gi_cyst_gastrostomy
|
|
24
|
+
# ...existing code...
|
|
25
|
+
- model: endoreg_db.finding_intervention
|
|
26
|
+
fields:
|
|
27
|
+
name: endosonography_upper_gi_pancreaticogastrostomy
|
|
28
|
+
# ...existing code...
|
|
29
|
+
- model: endoreg_db.finding_intervention
|
|
30
|
+
fields:
|
|
31
|
+
name: endosonography_upper_gi_cholangioduodenostomy
|
|
32
|
+
# ...existing code...
|
|
33
|
+
- model: endoreg_db.finding_intervention
|
|
34
|
+
fields:
|
|
35
|
+
name: endosonography_upper_gi_pancreaticoduodenostomy
|
|
36
|
+
# ...existing code...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
- model: endoreg_db.finding_intervention_type
|
|
2
|
+
fields:
|
|
3
|
+
name: "therapeutic"
|
|
4
|
+
|
|
5
|
+
- model: endoreg_db.finding_intervention_type
|
|
6
|
+
fields:
|
|
7
|
+
name: "invasive"
|
|
8
|
+
|
|
9
|
+
- model: endoreg_db.finding_intervention_type
|
|
10
|
+
fields:
|
|
11
|
+
name: "diagnostic"
|
|
12
|
+
|
|
13
|
+
- model: endoreg_db.finding_intervention_type
|
|
14
|
+
fields:
|
|
15
|
+
name: "foreign_body"
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
- model: endoreg_db.finding_type
|
|
2
|
+
fields:
|
|
3
|
+
name: "macroscopic"
|
|
4
|
+
|
|
5
|
+
- model: endoreg_db.finding_type
|
|
6
|
+
fields:
|
|
7
|
+
name: "iatrogenic"
|
|
8
|
+
|
|
9
|
+
- model: endoreg_db.finding_type
|
|
10
|
+
fields:
|
|
11
|
+
name: "postinterventional_immediate"
|
|
12
|
+
|
|
13
|
+
- model: endoreg_db.finding_type
|
|
14
|
+
fields:
|
|
15
|
+
name: "postinterventional_delayed"
|
|
16
|
+
|
|
17
|
+
- model: endoreg_db.finding_type
|
|
18
|
+
fields:
|
|
19
|
+
name: "bleeding"
|
|
20
|
+
|
|
21
|
+
- model: endoreg_db.finding_type
|
|
22
|
+
fields:
|
|
23
|
+
name: "endoscopy_baseline"
|
|
24
|
+
|
|
25
|
+
- model: endoreg_db.finding_type
|
|
26
|
+
fields:
|
|
27
|
+
name: "medication_related"
|
|
28
|
+
|
|
29
|
+
- model: endoreg_db.finding_type
|
|
30
|
+
fields:
|
|
31
|
+
name: "anatomy"
|
|
32
|
+
|
|
33
|
+
- model: endoreg_db.finding_type
|
|
34
|
+
fields:
|
|
35
|
+
name: "anatomy_colon"
|
|
36
|
+
|
|
37
|
+
- model: endoreg_db.finding_type
|
|
38
|
+
fields:
|
|
39
|
+
name: "summary"
|
|
40
|
+
|
|
41
|
+
- model: endoreg_db.finding_type
|
|
42
|
+
fields:
|
|
43
|
+
name: "complication"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# patient_age_gte_18
|
|
2
|
+
- model: endoreg_db.requirement
|
|
3
|
+
fields:
|
|
4
|
+
name: "patient_age_gte_18"
|
|
5
|
+
name_de: "Patientenalter >= 18 Jahre"
|
|
6
|
+
name_en: "Patient age >= 18 years"
|
|
7
|
+
description: "This requirement is used to indicate that the patient must be at least 18 years old."
|
|
8
|
+
requirement_types:
|
|
9
|
+
- "patient"
|
|
10
|
+
operators:
|
|
11
|
+
- age_gte
|
|
12
|
+
numeric_value: 18
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
- model: endoreg_db.requirement
|
|
16
|
+
fields:
|
|
17
|
+
name: "patient_age_lte_100"
|
|
18
|
+
name_de: "Patientenalter <= 100 Jahre"
|
|
19
|
+
name_en: "Patient age <= 100 years"
|
|
20
|
+
description: "This requirement is used to indicate that the patient must be at most 100 years old."
|
|
21
|
+
requirement_types:
|
|
22
|
+
- "patient"
|
|
23
|
+
operators:
|
|
24
|
+
- age_lte
|
|
25
|
+
numeric_value: 100
|
|
26
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
- model: endoreg_db.requirement
|
|
2
|
+
fields:
|
|
3
|
+
name: "colonoscopy_austria_screening_bowel_prep"
|
|
4
|
+
requirement_types:
|
|
5
|
+
- "patient_examination"
|
|
6
|
+
operators:
|
|
7
|
+
- "models_match_any"
|
|
8
|
+
finding_classifications:
|
|
9
|
+
- "bowel_prep_screening_austria"
|
|
10
|
+
|
|
11
|
+
- model: endoreg_db.requirement
|
|
12
|
+
fields:
|
|
13
|
+
name: "colonoscopy_austria_screening_sedation"
|
|
14
|
+
requirement_types:
|
|
15
|
+
- "patient_examination"
|
|
16
|
+
operators:
|
|
17
|
+
- "models_match_any"
|
|
18
|
+
finding_classifications:
|
|
19
|
+
- "sedation_performed"
|
|
20
|
+
|
|
21
|
+
- model: endoreg_db.requirement
|
|
22
|
+
fields:
|
|
23
|
+
name: "colonoscopy_austria_screening_examination_cecum_visualized"
|
|
24
|
+
requirement_types:
|
|
25
|
+
- "patient_finding"
|
|
26
|
+
operators:
|
|
27
|
+
- "models_match_all"
|
|
28
|
+
findings:
|
|
29
|
+
- "cecum"
|
|
30
|
+
finding_classifications: [
|
|
31
|
+
"visualized"
|
|
32
|
+
]
|
|
33
|
+
finding_classification_choices: [
|
|
34
|
+
"yes"
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
- model: endoreg_db.requirement
|
|
38
|
+
fields:
|
|
39
|
+
name: "colonoscopy_austria_screening_examination_reason_incomplete"
|
|
40
|
+
requirement_types:
|
|
41
|
+
- "patient_examination"
|
|
42
|
+
operators:
|
|
43
|
+
- "models_match_all"
|
|
44
|
+
finding_classifications:
|
|
45
|
+
- "colonoscopy_not_complete_reason"
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# KHK
|
|
2
|
+
- model: endoreg_db.requirement
|
|
3
|
+
fields:
|
|
4
|
+
name: "disease_is_coronary_artery_disease"
|
|
5
|
+
name_de: "Koronare Gefäßerkrankung"
|
|
6
|
+
name_en: "Coronary artery disease"
|
|
7
|
+
description: "Coronary artery disease"
|
|
8
|
+
requirement_types:
|
|
9
|
+
- "patient"
|
|
10
|
+
operators:
|
|
11
|
+
- models_match_all
|
|
12
|
+
diseases:
|
|
13
|
+
- "coronary_artery_disease"
|
|
14
|
+
|
|
15
|
+
# Hypertension
|
|
16
|
+
- model: endoreg_db.requirement
|
|
17
|
+
fields:
|
|
18
|
+
name: "disease_is_hypertension"
|
|
19
|
+
name_de: "Arterielle Hypertonie"
|
|
20
|
+
name_en: "Hypertension"
|
|
21
|
+
description: "Hypertension"
|
|
22
|
+
requirement_types:
|
|
23
|
+
- "patient"
|
|
24
|
+
operators:
|
|
25
|
+
- models_match_all
|
|
26
|
+
diseases:
|
|
27
|
+
- "hypertension"
|
|
28
|
+
|
|
29
|
+
- model: endoreg_db.requirement
|
|
30
|
+
fields:
|
|
31
|
+
name: "disease_is_congestive_heart_failure"
|
|
32
|
+
name_de: "Chron. Herzinsuffizienz"
|
|
33
|
+
name_en: "Congestive heart failure"
|
|
34
|
+
description: "Congestive heart failure"
|
|
35
|
+
requirement_types:
|
|
36
|
+
- "patient"
|
|
37
|
+
operators:
|
|
38
|
+
- models_match_all
|
|
39
|
+
diseases:
|
|
40
|
+
- "congestive_heart_failure"
|
|
41
|
+
|
|
42
|
+
- model: endoreg_db.requirement
|
|
43
|
+
fields:
|
|
44
|
+
name: "disease_is_diabetes_mellitus_I"
|
|
45
|
+
name_de: "Diabetes mellitus Typ I"
|
|
46
|
+
name_en: "Diabetes mellitus type I"
|
|
47
|
+
description: "Diabetes mellitus type I"
|
|
48
|
+
requirement_types:
|
|
49
|
+
- "patient"
|
|
50
|
+
operators:
|
|
51
|
+
- models_match_all
|
|
52
|
+
diseases:
|
|
53
|
+
- "diabetes_mellitus_I"
|
|
54
|
+
|
|
55
|
+
- model: endoreg_db.requirement
|
|
56
|
+
fields:
|
|
57
|
+
name: "disease_is_diabetes_mellitus_II"
|
|
58
|
+
name_de: "Diabetes mellitus Typ II"
|
|
59
|
+
name_en: "Diabetes mellitus type II"
|
|
60
|
+
description: "Diabetes mellitus type II"
|
|
61
|
+
requirement_types:
|
|
62
|
+
- "patient"
|
|
63
|
+
operators:
|
|
64
|
+
- models_match_all
|
|
65
|
+
diseases:
|
|
66
|
+
- "diabetes_mellitus_II"
|
|
67
|
+
|
|
68
|
+
- model: endoreg_db.requirement
|
|
69
|
+
fields:
|
|
70
|
+
name: "disease_is_non_valvular_atrial_fibrillation"
|
|
71
|
+
name_de: "Nicht valvuläres Vorhofflimmern"
|
|
72
|
+
name_en: "Non valvular atrial fibrillation"
|
|
73
|
+
description: "Non valvular atrial fibrillation"
|
|
74
|
+
requirement_types:
|
|
75
|
+
- "patient"
|
|
76
|
+
operators:
|
|
77
|
+
- models_match_all
|
|
78
|
+
diseases:
|
|
79
|
+
- "non_valvular_atrial_fibrillation"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
- model: endoreg_db.requirement
|
|
2
|
+
fields:
|
|
3
|
+
name: "disease_classification_choice_is_coronary_artery_disease_1_vessel"
|
|
4
|
+
name_de: "Koronare Gefäßerkrankung (1-Gefäß-Erkrankung)"
|
|
5
|
+
name_en: "Coronary artery disease (1-vessel disease)"
|
|
6
|
+
description: "Coronary artery disease (1-vessel disease)"
|
|
7
|
+
requirement_types:
|
|
8
|
+
- "patient"
|
|
9
|
+
- "patient_disease"
|
|
10
|
+
operators:
|
|
11
|
+
- models_match_all
|
|
12
|
+
disease_classification_choices:
|
|
13
|
+
- "khk_1_ge"
|
|
14
|
+
|
|
15
|
+
- model: endoreg_db.requirement
|
|
16
|
+
fields:
|
|
17
|
+
name: "disease_classification_choice_is_coronary_artery_disease_2_vessel"
|
|
18
|
+
name_de: "Koronare Gefäßerkrankung (2-Gefäß-Erkrankung)"
|
|
19
|
+
name_en: "Coronary artery disease (2-vessel disease)"
|
|
20
|
+
description: "Coronary artery disease (2-vessel disease)"
|
|
21
|
+
requirement_types:
|
|
22
|
+
- "patient"
|
|
23
|
+
- "patient_disease"
|
|
24
|
+
operators:
|
|
25
|
+
- models_match_all
|
|
26
|
+
disease_classification_choices:
|
|
27
|
+
- "khk_2_ge"
|
|
28
|
+
|
|
29
|
+
- model: endoreg_db.requirement
|
|
30
|
+
fields:
|
|
31
|
+
name: "disease_classification_choice_is_coronary_artery_disease_3_vessel"
|
|
32
|
+
name_de: "Koronare Gefäßerkrankung (3-Gefäß-Erkrankung)"
|
|
33
|
+
name_en: "Coronary artery disease (3-vessel disease)"
|
|
34
|
+
description: "Coronary artery disease (3-vessel disease)"
|
|
35
|
+
requirement_types:
|
|
36
|
+
- "patient"
|
|
37
|
+
- "patient_disease"
|
|
38
|
+
operators:
|
|
39
|
+
- models_match_all
|
|
40
|
+
disease_classification_choices:
|
|
41
|
+
- "khk_3_ge"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
- model: endoreg_db.requirement
|
|
2
|
+
fields:
|
|
3
|
+
name: "disease_is_liver_cirrhosis"
|
|
4
|
+
name_de: "Erkrankung Leberzirrhose"
|
|
5
|
+
name_en: "Disease Liver Cirrhosis"
|
|
6
|
+
description: "Disease Liver Cirrhosis"
|
|
7
|
+
requirement_types:
|
|
8
|
+
- "patient"
|
|
9
|
+
operators:
|
|
10
|
+
- models_match_all
|
|
11
|
+
diseases:
|
|
12
|
+
- "liver_cirrhosis"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
- model: endoreg_db.requirement
|
|
2
|
+
fields:
|
|
3
|
+
name: "disease_is_malignoma_unspecified"
|
|
4
|
+
name_de: "Malignom, nicht näher bezeichnet"
|
|
5
|
+
name_en: "Malignoma, unspecified"
|
|
6
|
+
description: "Malignoma, unspecified"
|
|
7
|
+
requirement_types:
|
|
8
|
+
- "patient"
|
|
9
|
+
operators:
|
|
10
|
+
- models_match_all
|
|
11
|
+
diseases:
|
|
12
|
+
- "disease_is_malignoma_unspecified"
|