The MPR/OPR code has a function that allows for exclusion of events that occurred while the patients was in the ICU (e.g., lab tests/transfusions etc.). The code has already been developed/reviewed during the MPR sprint (see physician_reports/backend/utils.R/remove_icu_tests()) , but we should add this function to Rgemini.
We should maybe rename the function slightly (as it doesn't just exclude tests, but also transfusions etc.).
Once the function has been added to Rgemini, please also open a new issue in the GEMINIreports repo to replace the existing code with the Rgemini function.
We can also consider adding a flag exlcude_ICU to n_imaging, n_bloodwork and n_rbc_transfusions to allow for exclusion of ICU (using the newly added function).
New Feature Request
The MPR/OPR code has a function that allows for exclusion of events that occurred while the patients was in the ICU (e.g., lab tests/transfusions etc.). The code has already been developed/reviewed during the MPR sprint (see
physician_reports/backend/utils.R/remove_icu_tests()
) , but we should add this function toRgemini
.We should maybe rename the function slightly (as it doesn't just exclude tests, but also transfusions etc.).
Once the function has been added to
Rgemini
, please also open a new issue in theGEMINIreports
repo to replace the existing code with theRgemini
function.We can also consider adding a flag
exlcude_ICU
ton_imaging
,n_bloodwork
andn_rbc_transfusions
to allow for exclusion of ICU (using the newly added function).