Skip to main content
Version: v0.0.7

Variable: REQUIRED_LOOPS

const REQUIRED_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

readonly BILLING_PROVIDER_2000A: "2000A" = "2000A"

Loop 2000A, Billing Provider HL.

PAYER_NAME_2010BB

readonly PAYER_NAME_2010BB: "2010BB" = "2010BB"

Loop 2010BB, Payer Name.

SUBSCRIBER_2000B

readonly SUBSCRIBER_2000B: "2000B" = "2000B"

Loop 2000B, Subscriber HL.

SUBSCRIBER_NAME_2010BA

readonly SUBSCRIBER_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);