Skip to contents

The 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.

Usage

cohort_definitions_dir()

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"