Population Health

Cohorts, prevalence trends, risk stratification, and de-identified data exports.

API endpoints

MethodPathRBACPurpose
GET/v1/population/cohortsadminList cohorts
GET/v1/population/trendsadminList trends
POST/v1/population/trends/aggregateadminRecompute a trend window
GET/v1/population/risk-stratificationadminRisk strata
POST/v1/population/exportsadminCreate de-identified export

Database tables

  • population_cohortsDefinition + criteria JSONB + cached count
  • population_trendsTime-series metric values
  • risk_stratificationPatient-level stratum assignment
  • data_exportsAnonymised export records with TTL

Notes

  • Exports apply k-anonymity and HMAC-rotated identifiers. The original mapping is not stored alongside the export.