Function: hlParentLevelInvalid()
hlParentLevelInvalid(
position):X12ParseWarning
Build an X12_HL_PARENT_LEVEL_INVALID warning. Emitted when an HL's
level code (HL-03) is inconsistent with its declared parent's level code
per the TR3 (e.g. a 22 Subscriber claiming a 22 Subscriber as its
parent, where the parent must be 20 Information Source). Both level
codes stay verbatim on the model.
Parameters
position
Returns
Example
import { hlParentLevelInvalid } from "@cosyte/x12";
const w = hlParentLevelInvalid({ segmentIndex: 14, groupIndex: 0, transactionIndex: 0 });