Generating a cohort
A cohort is up to 50 patients generated from one description of a population. The patients live in one fictional regional health system, created for the cohort: its hospitals, clinics and clinicians are shared, so patients see the same doctors and are admitted to the same hospitals, as in a real health system’s records.
Send POST /v1/cohorts:
The specification
Progress
Poll GET /v1/cohorts/{cohort_id}. Its progress counts the patients by status while they
are generated, in parallel:
A cohort of 20 patients usually takes well under an hour. When every patient has finished, the
cohort’s results are packaged and its status becomes succeeded.
Results
Download each from GET /v1/cohorts/{cohort_id}/results/{name}, once, within 24 hours.
See Results for the Bulk Data format.
Summary
A succeeded cohort’s summary says what was delivered, and counts the patients with each
condition:
For each requested condition, assigned is the number of patients it was given to, and
patients the number who have it, including those in whom it arose naturally. Counts follow
the SNOMED CT hierarchy: a patient with a more specific kind of a condition, or a condition
due to it (renal disorder due to type 2 diabetes, for type 2 diabetes), counts for it.
most_common lists up to 15 conditions, counted the same way.
When some patients fail
If a patient cannot be generated, the others are still delivered. The cohort succeeds, the
patient is listed in summary.failures with its error, and it is not billed. If every
patient fails, the cohort fails.
Cancelling
DELETE /v1/cohorts/{cohort_id} cancels the cohort: queued patients at once, and running
ones when they finish. A canceled cohort has no results and is not billed.

