getDrugDurationsFromExposure: Infer Drug Durations from the Drug Exposure Table

Description Usage Arguments Author(s)

Description

Drug exposure durations are calculated as: exposure end date - exposure start date (if end date is specified) or according to 'days_supply' (if specified) or 1 day if neither is specified.

Usage

1
getDrugDurationsFromExposure(drug_exposure, observation_period)

Arguments

drug_exposure

A dataframe-like object corresponding to the OMOP CDM 'drug_exposure' table, particularly, we use the columns 'person_id', 'drug_concept_id', 'drug_exposure_start_date', 'drug_exposure_end_date', and 'days_supply'

observation_period

A dataframe-like object corresponding to the OMOP CDM 'observation_period' table

Author(s)

Yuriy Sverchkov


sverchkov/BaselineRegularization documentation built on May 9, 2019, 1:26 p.m.