Description Usage Arguments Details Author(s)
Make events table for [prepareBRDataFromEvents] from occurrence tables (rather than era tables).
1 2 3 | getEventsFromOccurrence(drug_exposure, condition_occurrence,
observation_periods, event, risk_window, drug_sym, condition_sym,
person_sym)
|
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. |
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'.
Yuriy Sverchkov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.