Interface: Build837BillingProviderSpec
Loop 2000A billing provider. Emits an HL level-20 top-of-tree node, computed by the builder. Requires ≥ 1 subscriber.
Example
import type { Build837BillingProviderSpec } from "@cosyte/x12";
declare const sub: import("@cosyte/x12").Build837SubscriberSpec;
const bp: Build837BillingProviderSpec = {
provider: {
entityIdentifierCode: "85", entityTypeQualifier: "2", name: "BILLING CLINIC INC",
idQualifier: "XX", idCode: "1234567890",
address: { lines: ["123 BILLING WAY"], city: "CLEVELAND", state: "OH", postalCode: "44113" },
references: [{ qualifier: "EI", value: "987654321" }],
},
subscribers: [sub],
};
Properties
payToAddress?
readonlyoptionalpayToAddress?:Build837AddressSpec
NM1*87 - pay-to address (N3/N4 round-trip; the name is not re-surfaced).
payToPlan?
readonlyoptionalpayToPlan?:Build837EntitySpec
NM1*PE - pay-to plan (837I only).
provider
readonlyprovider:Build837EntitySpec
NM1*85 - the billing provider.
subscribers
readonlysubscribers: readonlyBuild837SubscriberSpec[]
Loop 2000B subscribers (≥ 1 required).