@kaiord/core / convertMeasurement
Function: convertMeasurement()
convertMeasurement(
param,valueRaw,unitRaw):CanonicalMeasurement
Defined in: packages/core/src/domain/lab/unit-conversion.ts:50
Convert an entered value to canonical, passing through when unresolvable.
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
valueRaw
number
unitRaw
string