Skip to contents

Extract Cohort Exposures Matched to Rollup

Usage

extract_rollup_exposures(
  rollup,
  con,
  site_db = NULL,
  cohort_table = "cohort",
  prescribed_types = NULL,
  vocab_db = NULL
)

Arguments

rollup

A rollup_engine or hierarchical_rollup object.

con

Active DuckDB connection.

site_db

Optional site database schema.

cohort_table

Cohort table name.

prescribed_types

Vector of prescribed drug type concept IDs.

vocab_db

Vocabulary database name.

Value

A data.frame of matched exposure events.