Skip to main content
Version: v0.0.4

Interface: AstmLivdWarning

A single terminology (LIVD) warning: a stable code, a value-free human-readable message, and positional context. Never carries a test code, a value, or a LOINC.

Example

import type { AstmLivdWarning } from "@cosyte/astm";
const w: AstmLivdWarning = {
code: "ASTM_LIVD_UNMAPPED_CODE",
message: "Reported test code had no LIVD mapping - surfaced unmapped, never a guessed LOINC.",
position: { recordIndex: 3, recordType: "R" },
};

Properties

code

readonly code: LivdWarningCode


message

readonly message: string

Human-readable detail for logs. Never contains a test code, a value, or a LOINC.


position

readonly position: AstmPosition