Interface: UniversalTestId
A recognized ASTM Universal Test ID. All components are surfaced verbatim (already escape-decoded by the tokenizer); nothing is looked up.
Example
import { recognizeUniversalTestId } from "@cosyte/astm";
const u = recognizeUniversalTestId(["", "", "", "687"]);
u.localCode; // "687"
u.provenance; // "local-code"
Properties
codingScheme?
readonlyoptionalcodingScheme?:string
Component 3: the coding-scheme selector, when present.
components
readonlycomponents: readonlystring[]
The field's components, verbatim and in order.
localCode?
readonlyoptionallocalCode?:string
Component 4, the vendor/local code: the primary identifier when no inline LOINC is given.
loincCandidate?
readonlyoptionalloincCandidate?:string
Component 1 when populated: a candidate LOINC (provenance only, never validated).
provenance
readonlyprovenance:UniversalTestIdProvenance
Where the primary identifier came from.
testName?
readonlyoptionaltestName?:string
Component 2: the test / battery name, when present.