Skip to main content
Version: v0.0.2

Interface: X12EnrollmentHeader

Decoded 834 header - the BGN Beginning Segment plus the sponsor (N1*P5) and payer (N1*IN) parties. Returned by "./get-834.js".get834Header; the per-member stream is separate so a consumer can read the file-level context without draining the (potentially huge) member roster.

Example

import type { X12EnrollmentHeader } from "@cosyte/x12";
declare const h: X12EnrollmentHeader;
h.transactionSetPurposeCode; // "00" original
h.sponsor?.name; // "EMPLOYER CO"
h.payer?.name; // "MEDPAY INSURANCE"

Properties

actionCode

readonly actionCode: string | undefined


date

readonly date: string | undefined


dates

readonly dates: readonly X12EnrollmentDate[]


payer

readonly payer: X12EnrollmentParty | undefined


referenceId

readonly referenceId: string | undefined


references

readonly references: readonly X12EnrollmentReference[]


readonly sponsor: X12EnrollmentParty | undefined


time

readonly time: string | undefined


transactionSetPurposeCode

readonly transactionSetPurposeCode: string


warnings

readonly warnings: readonly X12ParseWarning[]