GlucoseIQ

Cohort

Population metric distributions across many patients.

1 function

Generated from the source TSDoc — every signature, parameter, and example is the real thing.

aggregateCohort

aggregateCohort(patients: GlucoseReading[][], options?: CohortOptions): CohortResult

Aggregates per-patient glucose metrics across a cohort.

ParameterDescription
patientsOne reading array per patient
optionsUnit for TIR validation

Returns — Distributions of TIR, GMI, CV, and mean glucose across the cohort

const cohort = aggregateCohort([patientA, patientB, patientC])
cohort.tir.median // 68.5 — median in-range % across the population

On this page