library(bupaR)
library(eventdataR)
# When a Blood test occurs, a MRI Scan should also have
# happened for this patient (before or after the test).
patients %>%
check_rule(responded_existence("Blood test","MRI SCAN"))
Run the code above in your browser using DataLab