Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateConceptCohortSet fails when one concept id is not in a concept in the cdm #17

Open
nmercadeb opened this issue Apr 4, 2024 · 0 comments

Comments

@nmercadeb
Copy link
Contributor

The code below used to work but I encountered this error in CRAN version 1.3.1:

followback  <- 180
  cdm <- DrugUtilisation::generateConceptCohortSet(
    cdm = DrugUtilisation::mockDrugUtilisation(numberIndividuals = 200),
    conceptSet = list(c_1 = 317009, c_2 = 1),
    name = "cases",
    end  = "observation_period_end_date",
    requiredObservation = c(followback,followback),
    overwrite = TRUE
  )
#> ■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 90% | ETA: 0s
#> Error in `validateGeneratedCohortSet()`:
#> ! There are cohort_definition_id that appear in cohort and not in
#>   cohort_codelist:
#> • cohort_codelist: 1, 2
#> • cohort_set: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant