Calculate the non overlapping actual medication days of patients in the intersection of multiple times.
Source:R/interval_real_period.R
interval_real_period.Rd
Calculate non overlapping time.
Usage
interval_real_period(
data,
patient_id = "patient_id",
st_dates = "prec_start_date",
end_dates = "prec_end_date"
)
Arguments
- data
prescription patient table
- patient_id
a "patient_id" column name or a similar column
- st_dates
a "Prescription start time" column name or a similar column
- end_dates
a "Prescription end time" column name or a similar column