Skip to content

@kaiord/core


@kaiord/core / convertBound

Function: convertBound()

convertBound(param, bound, unitRaw): number | undefined

Defined in: packages/core/src/domain/lab/unit-conversion.ts:66

Convert an optional reference bound with the same affine transform.

Parameters

param

{ canonicalRefHigh?: number; canonicalRefLow?: number; canonicalUnit: string; key: string; knownUnits?: object[]; loinc?: string; panel: "hemogram" | "biochemistry" | "lipids" | "hepatic" | "ions" | "iron" | "thyroid" | "vitamins" | "hormones" | "sports"; refBySex?: { female: { high?: number; low?: number; }; male: { high?: number; low?: number; }; }; } | undefined

bound

number | undefined

unitRaw

string

Returns

number | undefined