Skip to main content
Version: v0.0.4

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

readonly code: WarningCode


message

readonly message: string


position

readonly position: Hl7Position