opsinjs

TrendPoint

One reading in a series, for the components that draw change over time.

How this is generated

Source: lib/opsinjs.ts. Script: scripts/build-reference.mts. Command: pnpm run generate.

Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.

TrendPoint

One reading in a series, for the components that draw change over time.

value is number | null rather than number because a gap in a series is information: a day with no reading is not a day with a reading of zero, and charting it as zero invents a measurement. A null point is drawn as a break in the line and described in words by the chart's text twin.

status is optional and is an input, never a derivation. opsinjs does not compare a point to a range and decide what it means, because it does not know the reader; a point carries a verdict only when the consuming product attached one.

KindDeclared in
interfacelib/opsinjs.ts
export interface TrendPoint {
  at: string
  value: number | null
  status?: ClinicalStatus
}

On this page