Skip to content

@kaiord/core


@kaiord/core / computeFlag

Function: computeFlag()

computeFlag(input): "unknown" | "in" | "low" | "high"

Defined in: packages/core/src/domain/lab/lab-flag.ts:33

Classify a canonical value against the effective reference range. Priority: report canonical bounds > report refText > catalog fallback (sex-aware when refBySex and sex are present) > "unknown". A refText that does not parse to numeric bounds yields "unknown" (not highlighted).

Parameters

input

ComputeFlagInput

Returns

"unknown" | "in" | "low" | "high"