Hi, @zai,
Looks like you’re doing pretty well if you are able to generate cohorts and see some results! Fantastic!
To answer your question:
CIRCE populates cohort_definition, cohort_definition_details, and cohort_generation_info in the WebAPI database. (The webAPI database has separate tables from the CDM database, and I just want to be sure that we are clear on this point, because the cohort and cohort_definition table from the CDM database is not the same as the cohort and cohort_definition tables created when installing WebAPI).
When you click ‘generate’, data is populated in the ohdsi_schema.cohort table. You can select * from ohdsi_schema.cohort table where cohort_definition_id = {your cohort ID}.
If you have records in that table, then CIRCE is working for you.
Next: Heracles: I’m hoping @jon_duke can give more details, but there’s a ‘runner’ mode and a ‘view’ mode in Heracles. In the ‘runner’ mode, you search for the cohort, then pick the list of analysis you need to run (you should pick them all since some sub-reports depend on others, and it is not clear which depends on which). Once you select all the reports to run and click run, you then have to wait for the reports to generate, Once complete, you should be able to pull up the ‘viewer’ and search for your cohort again, and view the results.
The reason why I think you are only getting the summary counts is that without running the specific Heracles analyses, all the heracles reports show is select count(*) from ohdsi_schema.cohort, which is just a simple member count. The number of men/women and other statistics requires the Heracles analysis to run.
To answer your second question, I’llt ry to give a broad overview:
WebAPI: in is our service layer that responds to HTTP requests and reads/writes data to the OHDSI database. The sub-services within WebAPI are broken down into: cohort_definition (used by CIRCE), Vocabulary query (used by HERMES), cohort analysis (used by Heracles), study feasiblity (used by CALYPSO).
Web appilcations CIRCE/CALYPSO/HERACLES/HERMES: These are just simple html applications which use HTTP to communicate to WebAPI to fetch data from the OHDSI database. The data that is generated from each application (such as new cohort defintiions, or cohort analysis results) is invoked from these web applications, but the work is performed by the back-end service layer: WebAPI. So you won’t be able to go into any of the client applications and figure out where the database is being written to. All you’ll find is the HTTP requests made to WebAPI. WebAPI does all the database access.
Let me know if you need any more detail.
-Chris