Closed greshje closed 2 months ago
Hi @greshje - can you confirm that your cohorts have people in them? Just looking at the log and see the following:
Found 0 of 3 (0.00%) submitted cohorts instantiated. Beginning cohort diagnostics for instantiated cohorts.
I can see from the logs that the cohorts were created via CohortGenerator but suspect they have 0 people based on the message above which may be why diagnostics are failing.
The cohorts I'm looking at are probably empty. I'm running the study against the Eunomia database as a smoke test using a study based on my very specific data. I'll come up with a more reasonable test case for the Eunomia data.
It might be a nice-to-have to echo to the output that there are no patients in the cohort therefore cohort diagnostics is not tenable, or maybe have a simple fail case that is the zero-matching-patients diagnosis that is propigated to the reporting and completes successfully.
Such a message for empty cohorts would need to come from CohortDiagnostics. I'm going to close this out but if needed we can open an issue in CohortDiagnostics to add this type of messaging where needed. Thanks!
Running Cohort Diagnostics using the attached study gives the error shown below. Full output and log file are attached.
Study specification: StrategusSpecification-CovidHomeless-2024-02-11.json
Snipped from study:
Error message (full output and log file attached):
output.txt
errorReport.R.txt
errorReportR.txt
Steps to reproduce: Install and start Broadsea v3.0.0
Run attached study or clone and check out full example at https://github.com/greshje/ergasia Commit: 4bb3ddf267718eddce488a80278c4fc0e566904b
Run ./_StartHere/Bootstrap/Bootstrap.R Run ./_StartHere/01-RunStudies.R
The following versions are being used:
The following versions are being used by Strategus: