define_observation_periods creates baseline and treatment period columns

define_observation_periods(.data, ...)

Arguments

.data

A tibble

Details

This function defines the baseline and treatment period columns from clinical data from electronic health record (EHR) databases that have adopted the Observational Medical Outcomes Partnership (OMOP) Common Data Model (CDM) format.

Baseline period = "start_date" to "first_drug_exposure". Treatment period = ("first_drug_exposure" + 30 days) to "last_drug_exposure". If treatment period > 12 months, then treatment period = ("first_drug_exposure" + 30 days) to "end_date".

Updated: 2021-03-27