Compute the difference in days between 2 variables in a database table.
Source:R/utils.R
getDuration.Rd
Compute the difference in days between 2 variables in a database table.
Usage
getDuration(
cdm,
tableName = "drug_exposure",
startDateCol = "drug_exposure_start_date",
endDateCol = "drug_exposure_end_date",
colName = "duration"
)