
Compile a Circe cohort definition to BigQuery (GoogleSQL) statements
Source:R/bigquery_demo.R
compile_cohort_bigquery.RdUses CirceR to build the cohort query and SqlRender to translate it to the bigquery dialect, exactly as
CohortGenerator would, but returns the statements instead of running them. The target cohort table is created
first because Circe only inserts into it.
Usage
compile_cohort_bigquery(
circe_json,
cdm,
scratch,
cohort_table = "demo_cohort",
cohort_id = 1L,
vocabulary = NULL
)