OHDSI / CohortGenerator

An R package for instantiating cohorts using data in the CDM.
https://ohdsi.github.io/CohortGenerator/
11 stars 10 forks source link

getCohortCounts() returns empty table if cohortIds is not specified, but cohortDefinitionSet is. #136

Closed schuemie closed 2 months ago

schuemie commented 2 months ago

In this line we see

y = cohortDefinitionSet[cohortDefinitionSet$cohortId %in% cohortIds, ]

However, if cohortIds is not specified this will result in an empty table. According to the documentation, if cohortIds is not specified it should return all cohorts in the table.