OHDSI / CohortDiagnostics

An R package for performing various cohort diagnostics.
https://ohdsi.github.io/CohortDiagnostics
40 stars 45 forks source link

Index Event Breakdown errors when cohort have 0 count #1034

Open gowthamrao opened 1 year ago

gowthamrao commented 1 year ago

When all cohorts being run have 0 record count, CD executions fails on index event breakdown as follows. Instead it should continue with no results in index event breakdown. Or (better) it should not run diagnostics that are not informative when cohorts have 0 count.

2023-02-15 21:12:55 [Thread 4] TRACE CohortDiagnostics makeDataExportable - Ensuring data is exportable: index_event_breakdown 2023-02-15 21:12:55 [Thread 4] TRACE CohortDiagnostics makeDataExportable - Ensuring data is exportable: index_event_breakdown 2023-02-15 21:12:55 [Thread 4] TRACE CohortDiagnostics makeDataExportable - Found in table index_event_breakdown the following fields: databaseId 2023-02-15 21:12:55 [Thread 4] TRACE CohortDiagnostics makeDataExportable - Found in table index_event_breakdown the following fields: databaseId 2023-02-15 21:12:55 [Thread 4] FATAL CohortDiagnostics makeDataExportable - Cannot find required field index_event_breakdown - conceptId, conceptCount, subjectCount, cohortId, domainField, domainTable. 2023-02-15 21:12:55 [Thread 4] FATAL CohortDiagnostics makeDataExportable - Cannot find required field index_event_breakdown - conceptId, conceptCount, subjectCount, cohortId, domainField, domainTable.