define_observation_periods: Define baseline and treatment periods

View source: R/define_observation_periods.R

define_observation_periodsR Documentation

Define baseline and treatment periods

Description

define_observation_periods creates baseline and treatment period columns

Usage

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


pwatrick/DrugRepurposingToolKit documentation built on Aug. 10, 2024, 7:12 a.m.