Variable: REQUIRED_LOOPS
constREQUIRED_LOOPS:object
The TR3-required loops the parser reports as structurally absent. A
closed set owned by the loop specs under src/transactions/, so both the
loop id and its rationale are library constants rather than anything read
out of the document.
Type Declaration
BILLING_PROVIDER_2000A
readonlyBILLING_PROVIDER_2000A:"2000A"="2000A"
Loop 2000A, Billing Provider HL.
PAYER_NAME_2010BB
readonlyPAYER_NAME_2010BB:"2010BB"="2010BB"
Loop 2010BB, Payer Name.
SUBSCRIBER_2000B
readonlySUBSCRIBER_2000B:"2000B"="2000B"
Loop 2000B, Subscriber HL.
SUBSCRIBER_NAME_2010BA
readonlySUBSCRIBER_NAME_2010BA:"2010BA"="2010BA"
Loop 2010BA, Subscriber Name.
Example
import { missingRequiredLoop, REQUIRED_LOOPS } from "@cosyte/x12";
const w = missingRequiredLoop({ segmentIndex: 12 }, REQUIRED_LOOPS.PAYER_NAME_2010BB);