Skip to main content
Version: v0.0.4

Function: segmentCase()

segmentCase(position, observed): Hl7ParseWarning

Build a SEGMENT_CASE warning. Emitted when a segment identifier is not all-uppercase (e.g. pid instead of PID). The parser accepts the segment; the warning alerts consumers to non-conforming senders.

Parameters

position

Hl7Position

observed

string

Returns

Hl7ParseWarning

Example

import { segmentCase } from "@cosyte/hl7";
const w = segmentCase({ segmentIndex: 3 }, "pid");