Conversation
|
Description from This script can be used to edit selected thresholds in a DQD result. This of course assumes that you have run the DQD, observed it, and have a list of checks for which you would like a different threshold. About the thresholdsThere are 20 different checks. The thresholds for these checks are recorded in one of 3 files: About this scriptIn the previous files, each check can be found using a combination of the check name itself, together with information from additional columns. In summary, the checks and additional columns are the following:
How to run?1. Define the checks for which you want to edit the thresholds in a .csv file, including all the 'additional columns', like this:
2. Run |
|
@MaximMoinat I strongly support making these long format files available. I'm wondering if instead of framing this as an edit threshold function, it's just a long<>wide converter. executeDqChecks can be updated to take either a long or a wide file as input (wide by default, at least for now, to ensure backwards compatibility). That would also allow users to edit other columns (check on/off toggle, notes, etc.) more easily. The ideas of combining table/field/concept and 5.3/5.4 into a single file, I need to ponder more. Backwards compatibility with combined files might be more challenging to figure out. |
Adds function
editThresholds(threshold_file)that can create a thresholds file from a table of modified thresholds.As described under point 1 in this OHDSI 2021 collaborator showcase: https://www.ohdsi.org/2021-global-symposium-showcase-67/
Making it a draft as it needs to be moved from
extrasto the main codebase, with Roxygen doc. We do include a readme here. Any feedback at this stage is much appreciated.