Skip to main content
Version: v0.0.2

Function: missingGe()

missingGe(position): X12ParseWarning

Build an X12_MISSING_GE warning. Emitted when a GS opened a functional group but no matching GE appeared before the next GS or IEA. The parser returns the group with ge: undefined and the transactions it managed to collect.

Parameters

position

X12Position

Returns

X12ParseWarning

Example

import { missingGe } from "@cosyte/x12";
const w = missingGe({ segmentIndex: 3, interchangeIndex: 0, groupIndex: 0 });