Interface: Hl7ParseWarning
Data shape for every Tier-2 warning emitted by the parser. Warnings are
plain data (distinct from Hl7ParseError, which is a thrown Error
subclass) so they can be safely accumulated into
Hl7Message.warnings and passed to onWarning callbacks.
Example
import type { Hl7ParseWarning } from "@cosyte/hl7";
const w: Hl7ParseWarning = {
code: "UNKNOWN_SEGMENT",
message: "Unknown segment: ZZZ",
position: { segmentIndex: 4 },
};
Properties
code
readonlycode:WarningCode
message
readonlymessage:string
position
readonlyposition:Hl7Position