Function to create an exit based on exit based on the end of a continuous drug exposure

drugExit(
  conceptSet,
  persistenceWindow = 0L,
  surveillanceWindow = 0L,
  daysSupplyOverride = NULL
)

Arguments

conceptSet

the concept set of the drug exposure used to identify the exit

persistenceWindow

allow for a maximum of days between exposure records when inferring the era of persistence exposure

surveillanceWindow

add days to the end of the era of persistence exposure as an additional period of surveillance prior to cohort exit

daysSupplyOverride

force drug exposure days supply to a set number of days

Value

an S4 DrugExposueExit class which defines the cohort exit by end of drug exposure