ddediu / AdhereR

Computation of adherence to medications from Electronic Healthcare Data in R
26 stars 6 forks source link

Consider special periods per type and medication class #84

Closed Masswear closed 5 years ago

Masswear commented 5 years ago

give option to specify trt.interruption in the dataset.

Masswear commented 5 years ago

I have rewritten the part of compute_event_durations that handles hospitalizations/special periods. It uses a new helper function accepting any type of special period with custom handling per patient, type, and medication class.

the argument hosp.data has been renamed to special.periods.data and a new argument special.periods.mapping is used to differentiate between these special periods and treatment interruptions.