endoreg-db 0.6.2__py3-none-any.whl → 0.6.4__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.

Files changed (97) hide show
  1. endoreg_db/data/__init__.py +14 -0
  2. endoreg_db/data/disease_classification/chronic_kidney_disease.yaml +2 -2
  3. endoreg_db/data/disease_classification_choice/chronic_kidney_disease.yaml +6 -6
  4. endoreg_db/data/distribution/numeric/data.yaml +1 -1
  5. endoreg_db/data/examination/examinations/data.yaml +22 -21
  6. endoreg_db/data/examination/type/data.yaml +12 -0
  7. endoreg_db/data/examination_indication/endoscopy.yaml +417 -1
  8. endoreg_db/data/examination_indication_classification/endoscopy.yaml +157 -5
  9. endoreg_db/data/finding/data.yaml +18 -11
  10. endoreg_db/data/finding_intervention/endoscopy.yaml +26 -121
  11. endoreg_db/data/finding_intervention/endoscopy_colonoscopy.yaml +163 -0
  12. endoreg_db/data/finding_intervention/endoscopy_egd.yaml +128 -0
  13. endoreg_db/data/finding_intervention/endoscopy_ercp.yaml +32 -0
  14. endoreg_db/data/finding_intervention/endoscopy_eus_lower.yaml +9 -0
  15. endoreg_db/data/finding_intervention/endoscopy_eus_upper.yaml +36 -0
  16. endoreg_db/data/information_source/endoscopy_guidelines.yaml +7 -0
  17. endoreg_db/data/medication_indication/anticoagulation.yaml +4 -4
  18. endoreg_db/data/pdf_type/data.yaml +9 -16
  19. endoreg_db/data/requirement/colonoscopy_indications.yaml +56 -0
  20. endoreg_db/data/requirement/disease_cardiovascular.yaml +79 -0
  21. endoreg_db/data/requirement/disease_classification_choice_cardiovascular.yaml +38 -0
  22. endoreg_db/data/requirement/disease_hepatology.yaml +12 -0
  23. endoreg_db/data/requirement/disease_misc.yaml +12 -0
  24. endoreg_db/data/requirement/disease_renal.yaml +80 -0
  25. endoreg_db/data/requirement/event_cardiology.yaml +251 -0
  26. endoreg_db/data/requirement/lab_value.yaml +120 -0
  27. endoreg_db/data/requirement_operator/lab_operators.yaml +128 -0
  28. endoreg_db/data/requirement_operator/model_operators.yaml +90 -0
  29. endoreg_db/data/requirement_set/endoscopy_bleeding_risk.yaml +12 -0
  30. endoreg_db/data/requirement_set_type/data.yaml +20 -0
  31. endoreg_db/data/requirement_type/requirement_types.yaml +83 -0
  32. endoreg_db/data/risk/bleeding.yaml +26 -0
  33. endoreg_db/data/risk/thrombosis.yaml +37 -0
  34. endoreg_db/data/risk_type/data.yaml +27 -0
  35. endoreg_db/data/unit/time.yaml +36 -1
  36. endoreg_db/management/commands/load_base_db_data.py +14 -1
  37. endoreg_db/management/commands/load_center_data.py +46 -21
  38. endoreg_db/management/commands/load_examination_indication_data.py +49 -27
  39. endoreg_db/management/commands/load_requirement_data.py +156 -0
  40. endoreg_db/management/commands/load_risk_data.py +56 -0
  41. endoreg_db/mermaid/Overall_flow_patient_finding_intervention.md +10 -0
  42. endoreg_db/mermaid/anonymized_image_annotation.md +20 -0
  43. endoreg_db/mermaid/binary_classification_annotation.md +50 -0
  44. endoreg_db/mermaid/classification.md +8 -0
  45. endoreg_db/mermaid/examination.md +8 -0
  46. endoreg_db/mermaid/findings.md +7 -0
  47. endoreg_db/mermaid/image_classification.md +28 -0
  48. endoreg_db/mermaid/interventions.md +8 -0
  49. endoreg_db/mermaid/morphology.md +8 -0
  50. endoreg_db/mermaid/patient_creation.md +14 -0
  51. endoreg_db/mermaid/video_segmentation_annotation.md +17 -0
  52. endoreg_db/migrations/0009_requirementoperator_requirementsettype_and_more.py +154 -0
  53. endoreg_db/models/__init__.py +20 -0
  54. endoreg_db/models/ai_model/ai_model.py +0 -13
  55. endoreg_db/models/ai_model/model_meta.py +2 -12
  56. endoreg_db/models/data_file/base_classes/abstract_frame.py +0 -2
  57. endoreg_db/models/data_file/base_classes/abstract_pdf.py +0 -9
  58. endoreg_db/models/data_file/base_classes/abstract_video.py +7 -8
  59. endoreg_db/models/data_file/base_classes/utils.py +0 -22
  60. endoreg_db/models/data_file/frame.py +1 -1
  61. endoreg_db/models/data_file/import_classes/raw_pdf.py +5 -11
  62. endoreg_db/models/data_file/import_classes/raw_video.py +6 -4
  63. endoreg_db/models/data_file/video/video.py +3 -3
  64. endoreg_db/models/disease.py +88 -19
  65. endoreg_db/models/event.py +108 -21
  66. endoreg_db/models/examination/examination_indication.py +108 -29
  67. endoreg_db/models/examination/examination_type.py +20 -6
  68. endoreg_db/models/information_source.py +37 -1
  69. endoreg_db/models/laboratory/lab_value.py +83 -32
  70. endoreg_db/models/requirement/__init__.py +11 -0
  71. endoreg_db/models/requirement/requirement.py +325 -0
  72. endoreg_db/models/requirement/requirement_evaluation/__init__.py +134 -0
  73. endoreg_db/models/requirement/requirement_evaluation/requirement_type_parser.py +102 -0
  74. endoreg_db/models/requirement/requirement_operator.py +58 -0
  75. endoreg_db/models/requirement/requirement_set.py +127 -0
  76. endoreg_db/models/risk/__init__.py +7 -0
  77. endoreg_db/models/risk/risk.py +72 -0
  78. endoreg_db/models/risk/risk_type.py +55 -0
  79. endoreg_db/serializers/raw_pdf_anony_text_validation.py +137 -0
  80. endoreg_db/serializers/raw_pdf_meta_validation.py +223 -0
  81. endoreg_db/serializers/raw_video_meta_validation.py +163 -1
  82. endoreg_db/serializers/video_segmentation.py +208 -126
  83. endoreg_db/urls.py +127 -14
  84. endoreg_db/utils/__init__.py +43 -0
  85. endoreg_db/utils/dataloader.py +38 -19
  86. endoreg_db/utils/hashs.py +1 -0
  87. endoreg_db/utils/paths.py +86 -0
  88. endoreg_db/views/raw_pdf_anony_text_validation_views.py +95 -0
  89. endoreg_db/views/raw_pdf_meta_validation_views.py +111 -0
  90. endoreg_db/views/raw_video_meta_validation_views.py +128 -18
  91. endoreg_db/views/video_segmentation_views.py +28 -11
  92. endoreg_db/views/views.py +107 -0
  93. {endoreg_db-0.6.2.dist-info → endoreg_db-0.6.4.dist-info}/METADATA +1 -1
  94. {endoreg_db-0.6.2.dist-info → endoreg_db-0.6.4.dist-info}/RECORD +96 -46
  95. endoreg_db/management/commands/load_name_data.py +0 -37
  96. {endoreg_db-0.6.2.dist-info → endoreg_db-0.6.4.dist-info}/WHEEL +0 -0
  97. {endoreg_db-0.6.2.dist-info → endoreg_db-0.6.4.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,251 @@
1
+ - model: endoreg_db.requirement
2
+ fields:
3
+ name: "event_had_coro_des_implantation"
4
+ name_de: "Ereignis: Koronarstent-Implantation (DES) durchgeführt"
5
+ name_en: "Event: Coronary Stent Implantation (DES) performed"
6
+ description: "Ereignis: Koronarstent-Implantation (DES) durchgeführt"
7
+ operators:
8
+ - "models_match_any"
9
+ events:
10
+ - "coro_des_implantation"
11
+ requirement_types:
12
+ - "event"
13
+
14
+ - model: endoreg_db.requirement
15
+ fields:
16
+ name: "event_had_coro_des_implantation_count_between_1_and_3 (exclusive)"
17
+ name_de: "Ereignis: Koronarstent-Implantation (DES) durchgeführt zwischen 1 und 3 (exklusive)"
18
+ name_en: "Event: Coronary Stent Implantation (DES) performed between 1 and 3 (exclusive)"
19
+ description: "Ereignis: Koronarstent-Implantation (DES) durchgeführt zwischen 1 und 3 (exklusive)"
20
+ operators:
21
+ - "models_match_count_in_range"
22
+ events:
23
+ - "coro_des_implantation"
24
+ numeric_value_min: 1
25
+ numeric_value_max: 3
26
+ requirement_types:
27
+ - "event"
28
+
29
+ - model: endoreg_db.requirement
30
+ fields:
31
+ name: "event_had_coro_des_implantation_count_greater_than_3"
32
+ name_de: "Ereignis: Koronarstent-Implantation (DES) durchgeführt mehr als 3"
33
+ name_en: "Event: Coronary Stent Implantation (DES) performed more than 3"
34
+ description: "Ereignis: Koronarstent-Implantation (DES) durchgeführt mehr als 3"
35
+ operators:
36
+ - "models_match_n_or_more"
37
+ events:
38
+ - "coro_des_implantation"
39
+ numeric_value: 3
40
+ requirement_types:
41
+ - "event"
42
+
43
+ - model: endoreg_db.requirement
44
+ fields:
45
+ name: "event_had_coro_bms_implantation"
46
+ name_de: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt"
47
+ name_en: "Event: Coronary Stent Implantation (BMS) performed"
48
+ description: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt"
49
+ operators:
50
+ - "models_match_any"
51
+ events:
52
+ - "coro_bms_implantation"
53
+ requirement_types:
54
+ - "event"
55
+
56
+ - model: endoreg_db.requirement
57
+ fields:
58
+ name: "event_had_complication_coro_stent_thrombosis"
59
+ name_de: "Ereignis: Komplikation Koronar Stent Thrombose"
60
+ name_en: "Event: Complication Coronary Stent Thrombosis"
61
+ description: "Ereignis: Komplikation Koronar Stent Thrombose"
62
+ operators:
63
+ - "models_match_any"
64
+ events:
65
+ - "complication_coro_stent_thrombosis"
66
+ requirement_types:
67
+ - "event"
68
+
69
+ - model: endoreg_db.requirement
70
+ fields:
71
+ name: "event_had_pulmonary_embolism"
72
+ name_de: "Ereignis: Lungenembolie"
73
+ name_en: "Event: Pulmonary Embolism"
74
+ description: "Ereignis: Lungenembolie"
75
+ operators:
76
+ - "models_match_any"
77
+ events:
78
+ - "pulmonary_embolism"
79
+ requirement_types:
80
+ - "event"
81
+
82
+ - model: endoreg_db.requirement
83
+ fields:
84
+ name: "event_had_deep_vein_thrombosis"
85
+ name_de: "Ereignis: Tiefe Beinvenenthrombose"
86
+ name_en: "Event: Deep Vein Thrombosis"
87
+ description: "Ereignis: Tiefe Beinvenenthrombose"
88
+ operators:
89
+ - "models_match_any"
90
+ events:
91
+ - "deep_vein_thrombosis"
92
+ requirement_types:
93
+ - "event"
94
+
95
+ - model: endoreg_db.requirement
96
+ fields:
97
+ name: "event_had_deep_vein_thrombosis_10_d"
98
+ name_de: "Ereignis: Tiefe Beinvenenthrombose innerhalb 10 Tage"
99
+ name_en: "Event: Deep Vein Thrombosis within 10 days"
100
+ description: "Ereignis: Tiefe Beinvenenthrombose innerhalb 10 Tage"
101
+ operators:
102
+ - "models_match_any_in_timeframe"
103
+ events:
104
+ - "deep_vein_thrombosis"
105
+ numeric_value_min: -10
106
+ numeric_value_max: 0
107
+ unit: "days"
108
+ requirement_types:
109
+ - "event"
110
+
111
+ - model: endoreg_db.requirement
112
+ fields:
113
+ name: "event_had_more_than_1_deep_vein_thrombosis"
114
+ name_de: "Ereignis: Mehr als 1 Tiefe Beinvenenthrombose"
115
+ name_en: "Event: More than 1 Deep Vein Thrombosis"
116
+ description: "Ereignis: Mehr als 1 Tiefe Beinvenenthrombose"
117
+ operators:
118
+ - "models_match_n_or_more"
119
+ events:
120
+ - "deep_vein_thrombosis"
121
+ numeric_value: 1
122
+ requirement_types:
123
+ - "event"
124
+
125
+ - model: endoreg_db.requirement
126
+ fields:
127
+ name: "event_had_coro_des_stent_implantation_30_d"
128
+ name_de: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 30 Tage"
129
+ name_en: "Event: Coronary Stent Implantation (DES) performed within 30 days"
130
+ description: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 30 Tage"
131
+ operators:
132
+ - "models_match_any_in_timeframe"
133
+ events:
134
+ - "coro_des_implantation"
135
+ numeric_value_min: -30
136
+ numeric_value_max: 0
137
+ unit: "days"
138
+ requirement_types:
139
+ - "event"
140
+
141
+ - model: endoreg_db.requirement
142
+ fields:
143
+ name: "event_had_coro_des_stent_implantation_6_w"
144
+ name_de: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 6 Wochen"
145
+ name_en: "Event: Coronary Stent Implantation (DES) performed within 6 weeks"
146
+ description: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 6 Wochen"
147
+ operators:
148
+ - "models_match_any_in_timeframe"
149
+ events:
150
+ - "coro_des_implantation"
151
+ numeric_value_min: -6
152
+ numeric_value_max: 0
153
+ unit: "weeks"
154
+ requirement_types:
155
+ - "event"
156
+
157
+ - model: endoreg_db.requirement
158
+ fields:
159
+ name: "event_had_coro_des_stent_implantation_6_m"
160
+ name_de: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 6 Monate"
161
+ name_en: "Event: Coronary Stent Implantation (DES) performed within 6 months"
162
+ description: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 6 Monate"
163
+ operators:
164
+ - "models_match_any_in_timeframe"
165
+ events:
166
+ - "coro_des_implantation"
167
+ numeric_value_min: -6
168
+ numeric_value_max: 0
169
+ unit: "months"
170
+ requirement_types:
171
+ - "event"
172
+
173
+ - model: endoreg_db.requirement
174
+ fields:
175
+ name: "event_had_coro_des_stent_implantation_1_y"
176
+ name_de: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 1 Jahr"
177
+ name_en: "Event: Coronary Stent Implantation (DES) performed within 1 year"
178
+ description: "Ereignis: Koronarstent-Implantation (DES) durchgeführt innerhalb 1 Jahr"
179
+ operators:
180
+ - "models_match_any_in_timeframe"
181
+ events:
182
+ - "coro_des_implantation"
183
+ numeric_value_min: -1
184
+ numeric_value_max: 0
185
+ unit: "years"
186
+ requirement_types:
187
+ - "event"
188
+
189
+ - model: endoreg_db.requirement
190
+ fields:
191
+ name: "event_had_coro_bms_stent_implantation_30_d"
192
+ name_de: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 30 Tage"
193
+ name_en: "Event: Coronary Stent Implantation (BMS) performed within 30 days"
194
+ description: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 30 Tage"
195
+ operators:
196
+ - "models_match_any_in_timeframe"
197
+ events:
198
+ - "coro_bms_implantation"
199
+ numeric_value_min: -30
200
+ numeric_value_max: 0
201
+ unit: "days"
202
+ requirement_types:
203
+ - "event"
204
+
205
+ - model: endoreg_db.requirement
206
+ fields:
207
+ name: "event_had_coro_bms_stent_implantation_6_w"
208
+ name_de: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 6 Wochen"
209
+ name_en: "Event: Coronary Stent Implantation (BMS) performed within 6 weeks"
210
+ description: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 6 Wochen"
211
+ operators:
212
+ - "models_match_any_in_timeframe"
213
+ events:
214
+ - "coro_bms_implantation"
215
+ numeric_value_min: -6
216
+ numeric_value_max: 0
217
+ unit: "weeks"
218
+ requirement_types:
219
+ - "event"
220
+
221
+ - model: endoreg_db.requirement
222
+ fields:
223
+ name: "event_had_coro_bms_stent_implantation_6_m"
224
+ name_de: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 6 Monate"
225
+ name_en: "Event: Coronary Stent Implantation (BMS) performed within 6 months"
226
+ description: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 6 Monate"
227
+ operators:
228
+ - "models_match_any_in_timeframe"
229
+ events:
230
+ - "coro_bms_implantation"
231
+ numeric_value_min: -6
232
+ numeric_value_max: 0
233
+ unit: "months"
234
+ requirement_types:
235
+ - "event"
236
+
237
+ - model: endoreg_db.requirement
238
+ fields:
239
+ name: "event_had_coro_bms_stent_implantation_1_y"
240
+ name_de: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 1 Jahr"
241
+ name_en: "Event: Coronary Stent Implantation (BMS) performed within 1 year"
242
+ description: "Ereignis: Koronarstent-Implantation (BMS) durchgeführt innerhalb 1 Jahr"
243
+ operators:
244
+ - "models_match_any_in_timeframe"
245
+ events:
246
+ - "coro_bms_implantation"
247
+ numeric_value_min: -1
248
+ numeric_value_max: 0
249
+ unit: "years"
250
+ requirement_types:
251
+ - "event"
@@ -0,0 +1,120 @@
1
+ - model: endoreg_db.requirement
2
+ fields:
3
+ name: "lab_value_creatinine_above_normal"
4
+ name_de: "Laborwert über Normalwert"
5
+ name_en: "Lab value above normal"
6
+ description: "Lab value above normal"
7
+ requirement_types:
8
+ - "lab_value"
9
+ operators:
10
+ - lab_numeric_increased
11
+ lab_values:
12
+ - "creatinine"
13
+
14
+ - model: endoreg_db.requirement
15
+ fields:
16
+ name: "lab_value_hb_below_normal"
17
+ name_de: "Laborwert Hämoglobin unter Normalwert"
18
+ name_en: "Lab value hemoglobin below normal"
19
+ description: "Lab value hemoglobin below normal"
20
+ requirement_types:
21
+ - "lab_value"
22
+ operators:
23
+ - lab_numeric_decreased
24
+
25
+ - model: endoreg_db.requirement
26
+ fields:
27
+ name: "lab_value_hb_below_8"
28
+ name_de: "Laborwert Hämoglobin unter 8"
29
+ name_en: "Lab value hemoglobin below 8"
30
+ description: "Lab value hemoglobin below 8"
31
+ requirement_types:
32
+ - "lab_value"
33
+ operators:
34
+ - lab_numeric_lower_than_value
35
+ numeric_value: 8
36
+ unit: "gram per deciliter"
37
+
38
+ # acute kidney injury
39
+ - model: endoreg_db.requirement
40
+ fields:
41
+ name: "lab_value_creatinine_above_1_5"
42
+ name_de: "Laborwert Kreatinin über 1,5"
43
+ name_en: "Lab value creatinine above 1.5"
44
+ description: "Lab value creatinine above 1.5"
45
+ requirement_types:
46
+ - "lab_value"
47
+ operators:
48
+ - lab_numeric_greater_than_value
49
+
50
+ - model: endoreg_db.requirement
51
+ fields: # increase by factor 1.5 in 3 days
52
+ name: "lab_value_creatinine_increased_factor_1_5_in_3_days"
53
+ name_de: "Laborwert Kreatinin um Faktor 1,5 erhöht innerhalb 3 Tage"
54
+ name_en: "Lab value creatinine increased by factor 1.5 within 3 days"
55
+ description: "Lab value creatinine increased by factor 1.5 within 3 days"
56
+ requirement_types:
57
+ - "lab_value"
58
+ operators:
59
+ - lab_numeric_increased_factor
60
+ numeric_value: 1.5
61
+ numeric_value_min: -3
62
+ numeric_value_max: 0
63
+ unit: "days"
64
+
65
+ # Coagulation
66
+ ## Prothrombin time above normal
67
+ - model: endoreg_db.requirement
68
+ fields:
69
+ name: "lab_value_prothrombin_time_above_normal"
70
+ name_de: "Laborwert Prothrombinzeit über Normalwert"
71
+ name_en: "Lab value prothrombin time above normal"
72
+ description: "Lab value prothrombin time above normal"
73
+ requirement_types:
74
+ - "lab_value"
75
+ operators:
76
+ - lab_numeric_increased
77
+ lab_values:
78
+ - "prothrombin_time"
79
+
80
+ ## Activated partial thromboplastin time (aPTT) above normal
81
+ - model: endoreg_db.requirement
82
+ fields:
83
+ name: "lab_value_activated_partial_thromboplastin_time_above_normal"
84
+ name_de: "Laborwert aktivierte partielle Thromboplastinzeit über Normalwert"
85
+ name_en: "Lab value activated partial thromboplastin time above normal"
86
+ description: "Lab value activated partial thromboplastin time above normal"
87
+ requirement_types:
88
+ - "lab_value"
89
+ operators:
90
+ - lab_numeric_increased
91
+ lab_values:
92
+ - "activated_partial_thromboplastin_time"
93
+
94
+ ## Fibrinogen below normal
95
+ - model: endoreg_db.requirement
96
+ fields:
97
+ name: "lab_value_fibrinogen_below_normal"
98
+ name_de: "Laborwert Fibrinogen unter Normalwert"
99
+ name_en: "Lab value fibrinogen below normal"
100
+ description: "Lab value fibrinogen below normal"
101
+ requirement_types:
102
+ - "lab_value"
103
+ operators:
104
+ - lab_numeric_decreased
105
+ lab_values:
106
+ - "fibrinogen"
107
+
108
+ ## INR above normal
109
+ - model: endoreg_db.requirement
110
+ fields:
111
+ name: "lab_value_international_normalized_ratio_above_normal"
112
+ name_de: "Laborwert International Normalisierte Ratio über Normalwert"
113
+ name_en: "Lab value international normalized ratio above normal"
114
+ description: "Lab value international normalized ratio above normal"
115
+ requirement_types:
116
+ - "lab_value"
117
+ operators:
118
+ - lab_numeric_increased
119
+ lab_values:
120
+ - "international_normalized_ratio"
@@ -0,0 +1,128 @@
1
+ - model: endoreg_db.requirement_operator
2
+ fields:
3
+ name: "lab_numeric_normal"
4
+ name_de: "Laborwert normal"
5
+ name_en: "Lab value normal"
6
+ description: "Make sure that the provided numeric lab value is within the normal range. The normal range is defined using the numeric_value_min and numeric_value_max fields. To work, the passed lab value must have a reference value"
7
+
8
+ # lab_numeric_increased
9
+ - model: endoreg_db.requirement_operator
10
+ fields:
11
+ name: "lab_numeric_increased"
12
+ name_de: "Laborwert erhöht"
13
+ name_en: "Lab value increased"
14
+ description: "Make sure that the provided numeric lab value is above the normal range. The normal range is defined using the numeric_value_min and numeric_value_max fields."
15
+
16
+ - model: endoreg_db.requirement_operator
17
+ fields:
18
+ name: "lab_numeric_decreased"
19
+ name_de: "Laborwert verringert"
20
+ name_en: "Lab value decreased"
21
+ description: "Make sure that the provided numeric lab value is below the normal range. The normal range is defined using the numeric_value_min and numeric_value_max fields."
22
+
23
+ - model: endoreg_db.requirement_operator
24
+ fields:
25
+ name: "lab_numeric_decreased_factor"
26
+ name_de: "Laborwert um Faktor verringert"
27
+ name_en: "Lab value decreased by factor"
28
+ description: "Make sure that the provided numeric lab value is decreased by a factor. The factor is defined using the numeric_value_min field."
29
+
30
+ - model: endoreg_db.requirement_operator
31
+ fields:
32
+ name: "lab_numeric_increased_factor"
33
+ name_de: "Laborwert um Faktor erhöht"
34
+ name_en: "Lab value increased by factor"
35
+ description: "Make sure that the provided numeric lab value is increased by a factor. The factor is defined using the numeric_value_min field."
36
+
37
+ - model: endoreg_db.requirement_operator
38
+ fields:
39
+ name: "lab_numeric_lower_than_value"
40
+ name_de: "Laborwert kleiner als Wert"
41
+ name_en: "Lab value lower than value"
42
+ description: "Make sure that the provided numeric lab value is lower than the given value. The value is defined using the numeric_value_min field."
43
+
44
+ - model: endoreg_db.requirement_operator
45
+ fields:
46
+ name: "lab_numeric_greater_than_value"
47
+ name_de: "Laborwert größer als Wert"
48
+ name_en: "Lab value greater than value"
49
+ description: "Make sure that the provided numeric lab value is greater than the given value. The value is defined using the numeric_value_min field."
50
+
51
+ # Timeframe
52
+ - model: endoreg_db.requirement_operator
53
+ fields:
54
+ name: "lab_numeric_normal_in_timeframe"
55
+ name_de: "Laborwert normal im angegebenen Zeitraum"
56
+ name_en: "Lab value normal in the given timeframe"
57
+ description: "Make sure that the provided numeric lab value is always within the normal range within the given timeframe. The normal range is defined using the numeric_value_min and numeric_value_max fields and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
58
+
59
+ - model: endoreg_db.requirement_operator
60
+ fields:
61
+ name: "lab_numeric_decreased_factor_in_timeframe"
62
+ name_de: "Laborwert um Faktor verringert im angegebenen Zeitraum"
63
+ name_en: "Lab value decreased by factor in the given timeframe"
64
+ description: "Make sure that the provided numeric lab value is always decreased by a factor within the given timeframe. The factor is defined using the numeric_value_min field and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
65
+
66
+ - model: endoreg_db.requirement_operator
67
+ fields:
68
+ name: "lab_numeric_increased_factor_in_timeframe"
69
+ name_de: "Laborwert um Faktor erhöht im angegebenen Zeitraum"
70
+ name_en: "Lab value increased by factor in the given timeframe"
71
+ description: "Make sure that the provided numeric lab value is always increased by a factor within the given timeframe. The factor is defined using the numeric_value_min field and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
72
+
73
+ - model: endoreg_db.requirement_operator
74
+ fields:
75
+ name: "lab_numeric_lower_than_value_in_timeframe"
76
+ name_de: "Laborwert kleiner als Wert im angegebenen Zeitraum"
77
+ name_en: "Lab value lower than value in the given timeframe"
78
+ description: "Make sure that the provided numeric lab value is lower than the given value within the given timeframe. The value is defined using the numeric_value_min field and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
79
+
80
+ - model: endoreg_db.requirement_operator
81
+ fields:
82
+ name: "lab_numeric_greater_than_value_in_timeframe"
83
+ name_de: "Laborwert größer als Wert im angegebenen Zeitraum"
84
+ name_en: "Lab value greater than value in the given timeframe"
85
+ description: "Make sure that the provided numeric lab value is greater than the given value within the given timeframe. The value is defined using the numeric_value_min field and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
86
+
87
+ - model: endoreg_db.requirement_operator
88
+ fields:
89
+ name: "lab_categorical_match"
90
+ name_de: "Text-basierter Laborwert entspricht exakt"
91
+ name_en: "Text-based lab value matches exactly"
92
+ description: "Make sure that the provided categorical lab value matches exactly the given value. The value is defined using the string_value field."
93
+
94
+ - model: endoreg_db.requirement_operator
95
+ fields:
96
+ name: "lab_categorical_match_substring"
97
+ name_de: "Text-basierter Laborwert enthält Teilstring"
98
+ name_en: "Text-based lab value contains substring"
99
+ description: "Make sure that the provided categorical lab value contains the given substring. The substring is defined using the string_value field."
100
+
101
+ - model: endoreg_db.requirement_operator
102
+ fields:
103
+ name: "lab_categorical_match_regex"
104
+ name_de: "Text-basierter Laborwert entspricht Regex"
105
+ name_en: "Text-based lab value matches regex"
106
+ description: "Make sure that the provided categorical lab value matches the given regex. The regex is defined using the string_value field."
107
+
108
+ # Timeframe
109
+ - model: endoreg_db.requirement_operator
110
+ fields:
111
+ name: "lab_categorical_match_in_timeframe"
112
+ name_de: "Text-basierter Laborwert entspricht exakt im angegebenen Zeitraum"
113
+ name_en: "Text-based lab value matches exactly in the given timeframe"
114
+ description: "Make sure that the provided categorical lab value matches exactly the given value within the given timeframe. The value is defined using the string_value field and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
115
+
116
+ - model: endoreg_db.requirement_operator
117
+ fields:
118
+ name: "lab_categorical_match_substring_in_timeframe"
119
+ name_de: "Text-basierter Laborwert enthält Teilstring im angegebenen Zeitraum"
120
+ name_en: "Text-based lab value contains substring in the given timeframe"
121
+ description: "Make sure that the provided categorical lab value contains the given substring within the given timeframe. The substring is defined using the string_value field and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
122
+
123
+ - model: endoreg_db.requirement_operator
124
+ fields:
125
+ name: "lab_categorical_match_regex_in_timeframe"
126
+ name_de: "Text-basierter Laborwert entspricht Regex im angegebenen Zeitraum"
127
+ name_en: "Text-based lab value matches regex in the given timeframe"
128
+ description: "Make sure that the provided categorical lab value matches the given regex within the given timeframe. The regex is defined using the string_value field and the timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
@@ -0,0 +1,90 @@
1
+ - model: endoreg_db.requirement_operator
2
+ fields:
3
+ name: "models_match_all"
4
+ name_de: "Modelle existieren"
5
+ name_en: "Models exist"
6
+ description: "Make sure that all the provided Foreign Key models exist."
7
+
8
+ - model: endoreg_db.requirement_operator
9
+ fields:
10
+ name: "models_match_any"
11
+ name_de: "Mindestens ein Modell existiert"
12
+ name_en: "At least one model exists"
13
+ description: "Make sure that at least one of the provided Foreign Key models exist."
14
+
15
+ - model: endoreg_db.requirement_operator
16
+ fields:
17
+ name: "models_match_none"
18
+ name_de: "Kein Modell existiert"
19
+ name_en: "No model exists"
20
+ description: "Make sure that none of the provided Foreign Key models exist."
21
+
22
+ - model: endoreg_db.requirement_operator
23
+ fields:
24
+ name: "models_match_n"
25
+ name_de: " Exakt n Modelle existieren"
26
+ name_en: "Exactly n models exist"
27
+ description: "Make sure that exactly n of the provided Foreign Key models exist. The number n is defined using the numeric_value_min field."
28
+
29
+ - model: endoreg_db.requirement_operator
30
+ fields:
31
+ name: "models_match_n_or_more"
32
+ name_de: "Mindestens n Modelle existieren"
33
+ name_en: "At least n models exist"
34
+ description: "Make sure that at least n of the provided Foreign Key models exist. The number n is defined using the numeric_value_min field."
35
+
36
+ - model: endoreg_db.requirement_operator
37
+ fields:
38
+ name: "models_match_n_or_less"
39
+ name_de: "Höchstens n Modelle existieren"
40
+ name_en: "At most n models exist"
41
+ description: "Make sure that at most n of the provided Foreign Key models exist. The number n is defined using the numeric_value_min field."
42
+
43
+ - model: endoreg_db.requirement_operator
44
+ fields:
45
+ name: "models_match_count_in_range"
46
+ name_de: "Anzahl der Modelle liegt im angegebenen Bereich"
47
+ name_en: "Number of models is in the given range"
48
+ description: "Make sure that the number of provided Foreign Key models is in the given range. The range is defined using numeric_value_min and numeric_value_max."
49
+
50
+ - model: endoreg_db.requirement_operator
51
+ fields:
52
+ name: "models_match_all_in_timeframe"
53
+ name_de: "Modelle existieren im angegebenen Zeitraum"
54
+ name_en: "Models exist in the given timeframe"
55
+ description: "Make sure that all the provided Foreign Key models have a date within the given timeframe. The timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
56
+
57
+ - model: endoreg_db.requirement_operator
58
+ fields:
59
+ name: "models_match_any_in_timeframe"
60
+ name_de: "Mindestens ein Modell existiert im angegebenen Zeitraum"
61
+ name_en: "At least one model exists in the given timeframe"
62
+ description: "Make sure that at least one of the provided Foreign Key models has a date within the given timeframe. The timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
63
+
64
+ - model: endoreg_db.requirement_operator
65
+ fields:
66
+ name: "models_match_none_in_timeframe"
67
+ name_de: "Kein Modell existiert im angegebenen Zeitraum"
68
+ name_en: "No model exists in the given timeframe"
69
+ description: "Make sure that none of the provided Foreign Key models have a date within the given timeframe. The timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week)."
70
+
71
+ - model: endoreg_db.requirement_operator
72
+ fields:
73
+ name: "models_match_n_in_timeframe"
74
+ name_de: "Exakt n Modelle existieren im angegebenen Zeitraum"
75
+ name_en: "Exactly n models exist in the given timeframe"
76
+ description: "Make sure that exactly n of the provided Foreign Key models have a date within the given timeframe. The timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week). The number n is defined using the numeric_value_min field."
77
+
78
+ - model: endoreg_db.requirement_operator
79
+ fields:
80
+ name: "models_match_n_or_more_in_timeframe"
81
+ name_de: "Mindestens n Modelle existieren im angegebenen Zeitraum"
82
+ name_en: "At least n models exist in the given timeframe"
83
+ description: "Make sure that at least n of the provided Foreign Key models have a date within the given timeframe. The timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week). The number n is defined using the numeric_value_min field."
84
+
85
+ - model: endoreg_db.requirement_operator
86
+ fields:
87
+ name: "models_match_n_or_less_in_timeframe"
88
+ name_de: "Höchstens n Modelle existieren im angegebenen Zeitraum"
89
+ name_en: "At most n models exist in the given timeframe"
90
+ description: "Make sure that at most n of the provided Foreign Key models have a date within the given timeframe. The timeframe is defined using numeric_value_min and numeric_value_max and setting the unit to a fitting one (e.g. week). The number n is defined using the numeric_value_min field."
@@ -0,0 +1,12 @@
1
+ - models: endoreg_db.requirement_set
2
+ fields:
3
+ name: "endoscopy_bleeding_risk_high"
4
+ name_de: "Endoskopie - Blutungsrisiko: hoch"
5
+ name_en: "Endoscopy - Bleeding Risk: High"
6
+ description: "Endoskopie - Blutungsrisiko: hoch"
7
+ # linked_sets: [] # if this rule depends on others
8
+ requirement_set_type: "any"
9
+ information_sources:
10
+ - "guideline_quality_in_gi"
11
+ requirements:
12
+ - "endoscopy_intervention_bleeding_risk_high"
@@ -0,0 +1,20 @@
1
+ - model: endoreg_db.requirement_set_type
2
+ fields:
3
+ name: "all"
4
+ name_de: "alle"
5
+ name_en: "all"
6
+ description: "All requirement are true"
7
+
8
+ - model: endoreg_db.requirement_set_type
9
+ fields:
10
+ name: "any"
11
+ name_de: "mindestens eine"
12
+ name_en: "at least one"
13
+ description: "At least one requirement is true"
14
+
15
+ - model: endoreg_db.requirement_set_type
16
+ fields:
17
+ name: "none"
18
+ name_de: "keine"
19
+ name_en: "none"
20
+ description: "No requirement is true"