Interface: ReferenceRange
A parsed reference range. Bounds are surfaced as the verbatim numeric text (never coerced to a float, never rounded, never converted) so nothing is lost or fabricated.
[OSS-derived]: the exact lower/upper delimiter (-) and the open-ended
<x/>x forms are taken from the permissively-licensed OSS reference parsers
and cross-verified vendor transcripts; they are not confirmed against the
purchased CLSI LIS02-A2. Anything that does not match these
forms is surfaced verbatim as unparsed, never guessed into a bound.
Example
import { parseReferenceRange } from "@cosyte/astm";
const r = parseReferenceRange("3.5-5.0");
r.kind; // "closed"
r.low; // "3.5"
r.high; // "5.0"
Properties
high?
readonlyoptionalhigh?:string
The upper bound, verbatim numeric text (for closed and open-low).
kind
readonlykind:ReferenceRangeKind
The recognized shape, or "unparsed" when the text matched no known form.
low?
readonlyoptionallow?:string
The lower bound, verbatim numeric text (for closed and open-high).
raw
readonlyraw:string
The verbatim field text, exactly as received.