Population Health
Cohorts, prevalence trends, risk stratification, and de-identified data exports.
API endpoints
| Method | Path | RBAC | Purpose |
|---|---|---|---|
GET | /v1/population/cohorts | admin | List cohorts |
GET | /v1/population/trends | admin | List trends |
POST | /v1/population/trends/aggregate | admin | Recompute a trend window |
GET | /v1/population/risk-stratification | admin | Risk strata |
POST | /v1/population/exports | admin | Create de-identified export |
Database tables
population_cohorts— Definition + criteria JSONB + cached countpopulation_trends— Time-series metric valuesrisk_stratification— Patient-level stratum assignmentdata_exports— Anonymised export records with TTL
Notes
- Exports apply k-anonymity and HMAC-rotated identifiers. The original mapping is not stored alongside the export.
