getEventsFromOccurrence: Make events table from occurrence information (internal...

Description Usage Arguments Details Author(s)

Description

Make events table for [prepareBRDataFromEvents] from occurrence tables (rather than era tables).

Usage

1
2
3
getEventsFromOccurrence(drug_exposure, condition_occurrence,
  observation_periods, event, risk_window, drug_sym, condition_sym,
  person_sym)

Arguments

drug_exposure

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

condition_occurrence

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

observation_periods

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

event

The event of interest

risk_window

See note on drug exposure duration calculation

drug_sym

A [name] representing the column to use for drug ids, drug_concept_id by default.

condition_sym

A [name] representing the column to use for condition ids, condition_concept_id by default.

person_sym

A [name] representing the column to use for person ids, person_id by default.

Details

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, plus 'risk_window'.

Author(s)

Yuriy Sverchkov


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