Closed ablack3 closed 1 year ago
I think this would be a useful change if someone is interested in contributing to the development. At the moment, the absence of data in the cohort
table that yields no rows in the cohort count should be considered a count of 0 people. Knowing if each cohort has been generated is a separate task and is part of the return value when using generateCohortSet
as describe here: https://ohdsi.github.io/CohortGenerator/reference/generateCohortSet.html
I’ll share it with the OSC group and see if anyone is interested. If not, I’ll give it a shot and create a PR.
Hey @ablack3, im gonna give it a try, let me know in case you already fix it
let m know if this is what you wanted #91
Nice work @javier-gracia-tabuenca-tuni!
getCohortCounts
It returns "A data frame with cohort counts"
But if the counts are 0 then it simply leaves them out rather than reporting the count as 0.
getCohortCounts
does not seem to make a distinction between cohorts that are empty and cohorts that were never generated.actual result
expected result