# NOT RUN {
library(adheRenceRX)
library(dplyr)
toy_claims %>%
filter(ID == "D") %>%
propagate_date() %>%
identify_gaps() %>%
rank_episodes(.permissible_gap = 20, .initial_rank = 1)
# }
Run the code above in your browser using DataLab