library(bupaR)
library(eventdataR)
# Filter where Blood test precedes MRI SCAN and Registration is the start of the case.
patients %>%
filter_rules(precedence("Blood test","MRI SCAN"),
starts("Registration"))
Run the code above in your browser using DataLab