-
Notifications
You must be signed in to change notification settings - Fork 6
Description
The UI should be extended to allow bulk adding of criteria for power users.
User will want to select criteria by codes.
For this a button "Bulk Search and add" should be added next to the "search" button on the criteria page
When pressed a modal should open where the user has
- A dropdown for all the available contexts
- A dropdown for all the available terminologies
- A text field the user can enter terminology codes comma separated
This would lead to for example:
Context + terminology + List_of_codes
Laboruntersuchung + loinc.org + [718-7, 38735-7, ...]
Based on this input the UI should search for each code and add it to a list displayed in the window.
A criterion should only be added if its code is an exact match to context+terminology+code
An extra list should be shown to the user with all the codes which could not be found.
The user should then get an option how he would like to add the criteria to his cohort selection with the following options.
Cohort selection type - Options = Inclusion, Exclusion
Criteria List combination type = AND / OR
At the bottom should be a button "Add to my cohort selection"
When pressed all the criteria which could be found based on the list provided are added to the bottom of cohort selection combined with the existing cohort part with the main combination option (AND for inclusion, OR for exclusion) according to "Cohort selection type" and combined within the list itself using the "Criteria List combination type"
e.g.
given the following ccdl:
Inclusion: Diabetes Mellitus1 AND Diabetes Mellitus2 OR Diab Mellitus3
Exclusion: -
adding a list of Laboruntersuchung + loinc.org + [718-7, 38735-7, ...] with
Cohort selection type = inclusion
and
Criteria List combination type OR
would lead to the following CCDL
Incl: Diabetes Mellitus1 AND Diabetes Mellitus2 OR Diab Mellitus3 AND CRIT-718-7 OR CRIT-38735-7