
The folder with the shipped cohort definitions
Source:R/cohort_definitions_dir.R
cohort_definitions_dir.RdThe package ships its Circe definitions (*.circe.json) and the portable OHDSI SQL (target_cohort.sql, outcome_cohort.sql) in
inst/cohorts, so they are available in an installed package as well as in a source checkout.
Value
The path of the folder (system.file("cohorts", package = "omopduckdb"), or inst/cohorts of a source checkout).
Examples
list.files(cohort_definitions_dir(), pattern = "circe[.]json$")
#> [1] "diabetes_phenotype.circe.json"
#> [2] "metformin_only_prediabetes_pcos_both.circe.json"
#> [3] "metformin_only_prediabetes_pcos_icd10.circe.json"
#> [4] "metformin_only_prediabetes_pcos_snomed.circe.json"
#> [5] "outcome_cohort.circe.json"
#> [6] "target_cohort.circe.json"