library(bupaR)
library(eventdataR)
# Each patient should be registered at least once.
patients %>%
check_rule(contains("Registration"))
# Check whether some patients have received 2 or more blood tests.
patients %>%
check_rule(contains("Blood test", n = 2))
Run the code above in your browser using DataLab