Closed Masswear closed 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.
give option to specify
trt.interruption
in the dataset.