Skip to main content
Version: v0.0.4

Function: unknownSegment()

unknownSegment(position, segmentName): Hl7ParseWarning

Build an UNKNOWN_SEGMENT warning. Emitted when a segment identifier is not in the HL7 spec's standard set and not registered in the active profile's customSegments.

Parameters

position

Hl7Position

segmentName

string

Returns

Hl7ParseWarning

Example

import { unknownSegment } from "@cosyte/hl7";
const w = unknownSegment({ segmentIndex: 7 }, "ZZZ");