library(bupaR)
library(eventdataR)
# Check for which patients the activity "MRI SCAN" is absent.
patients %>%
check_rule(absent("MRI SCAN"))
# Check for which patients the activity "Blood test" occurs maximum a single time,
# but not 2 times or more.
patients %>%
check_rule(absent("Blood test", n = 1))
Run the code above in your browser using DataLab