Skip to main content

POST /api/v1/cohort-diagnostics/run

POST 

/api/v1/cohort-diagnostics/run

Run CohortDiagnostics for one or more cohort definitions against a CDM source. Proxies to the R Plumber endpoint at /analysis/cohort-diagnostics/run.

Accepts the cohort_definition_id(s) and a source_id; resolves the CDM connection details from the Source model so the frontend does not have to supply raw database credentials.

Diagnostic toggles (all optional, default true unless noted):

  • run_incidence_rate (default: true)
  • run_orphan_concepts (default: true)
  • run_breakdown_index_events (default: true)
  • run_visit_context (default: true)
  • run_inclusion_statistics (default: true)
  • run_temporal_characterization (default: false — expensive)
  • min_cell_count (default: 5)

Request

Responses