With compute_event_duration, it's possible to have multiple "secondary events" created from the same primary medication event, e.g. in case of dosage changes, treatment interruptions, or special intervals like hospitalizations etc (see #84 ). Secondary events never overlap. Therefore, it would be useful to plot all secondary events on the same line as the primary event.
The output of compute_event_duration provides a column with the primary event date (same for all secondary events) and another column with a start date and duration for each secondary event. Plotting could use the primary event date for the y-axis and secondary start dates and durations for the x-axis.
With
compute_event_duration
, it's possible to have multiple "secondary events" created from the same primary medication event, e.g. in case of dosage changes, treatment interruptions, or special intervals like hospitalizations etc (see #84 ). Secondary events never overlap. Therefore, it would be useful to plot all secondary events on the same line as the primary event.The output of
compute_event_duration
provides a column with the primary event date (same for all secondary events) and another column with a start date and duration for each secondary event. Plotting could use the primary event date for the y-axis and secondary start dates and durations for the x-axis.