GlucoseIQ

Episodes

Consensus ≥15-minute hypo/hyper event detection.

1 function

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

detectEpisodes

detectEpisodes(readings: GlucoseReading[], options?: EpisodeOptions): EpisodeResult

Detects hypo- and hyperglycemia episodes from a series of readings.

ParameterDescription
readingsGlucose readings with ISO 8601 timestamps
optionsThresholds, minimum duration, and recovery duration

Returns — Hypo and hyper events plus a summary

const { hypoEvents, summary } = detectEpisodes(readings)
// hypoEvents[0] = { level: 2, durationMinutes: 45, extremeValue: 48, ... }

On this page