OHDSI / CohortGenerator

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

Add cohort id to log, not just cohort name #132

Closed gowthamrao closed 2 months ago

gowthamrao commented 4 months ago

CohortGenerator FUN 2/284- Generating cohort: Cough or Sputum

I use the log to see which cohort is being generated from the CohortDefinitionSet object. The log only tells me the cohort name. While that is informative, its not sufficient. CohortNames are not unique, cohortIds are.

Can we do a simple change to write both cohortId and cohortName to the log? can be even as simple as paste0(cohortId, " - ", cohortName).