darwin-eu / CodelistGenerator

Identifying relevant concepts from the OMOP CDM vocabularies
https://darwin-eu.github.io/CodelistGenerator/
Other
12 stars 8 forks source link

Output of codesFromConceptSet #205

Closed catalamarti closed 1 month ago

catalamarti commented 1 month ago

Should the output of codesFromConceptSet be a codelist? instead of a list of concept ids? @edward-burn

edward-burn commented 1 month ago

@catalamarti yes, it should work like that from 3.1.0. Do you see something different from the below?

library(CodelistGenerator)
packageVersion("CodelistGenerator")
#> [1] '3.1.0'
cdm <- mockVocabRef()
codesFromCohort(
  cdm = cdm, path =  system.file(package = "CodelistGenerator",
                                 "cohorts_for_mock_with_exclude"), 
  type = "codelist"
)
#> 
#> ── 2 codelists ─────────────────────────────────────────────────────────────────
#> 
#> - OA (2 codes)
#> - Other (1 codes)

Created on 2024-07-15 with reprex v2.0.2

catalamarti commented 1 month ago

error was due to old version of CodelistGenerator