Writes rows to cohort_table (created if missing) and returns them. replace = TRUE first deletes any
existing rows with the same cohort_definition_id. Vocabulary tables are looked up on the connection
(main schema, then the attached central vocabulary) unless concept_ancestor = / concept = are passed.
Usage
execute_phenotype(
con,
expr,
cohort_table = "cohort",
cohort_definition_id = 1L,
replace = TRUE,
...
)Arguments
- con
DuckDB DBI connection holding the OMOP CDM.
- expr
A phenotype expression.
- cohort_table
Destination table.
- cohort_definition_id
Cohort definition id.
- replace
Replace existing rows of this definition.
- ...
Passed to
compile_phenotype().
