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
observed
string
Returns
Example
import { segmentCase } from "@cosyte/hl7";
const w = segmentCase({ segmentIndex: 3 }, "pid");