Get a cohort definition set
getPlCohortDefinitionSet(cohortIds)
A tibble with the cohort ID, name, sql, and JSON for the provided cohort IDs. Can be used by the
CohortGenerator
package.
cohorts <- getPhenotypeLog()
subsetIds <- cohorts$cohortId[1:3]
getPlCohortDefinitionSet(subsetIds)
#> # A tibble: 3 × 4
#> cohortId cohortName json sql
#> <dbl> <chr> <chr> <chr>
#> 1 3 Cough or Sputum "{\n\t\"cdmVersionRange\" : \">=5.0.0\",\n\t\"… "CRE…
#> 2 4 Diarrhea "{\n\t\"cdmVersionRange\" : \">=5.0.0\",\n\t\"… "CRE…
#> 3 5 Dyspnea "{\n\t\"cdmVersionRange\" : \">=5.0.0\",\n\t\"… "CRE…