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
readonlyactionCode:string|undefined
date
readonlydate:string|undefined
dates
readonlydates: readonlyX12EnrollmentDate[]
payer
readonlypayer:X12EnrollmentParty|undefined
referenceId
readonlyreferenceId:string|undefined
references
readonlyreferences: readonlyX12EnrollmentReference[]
sponsor
readonlysponsor:X12EnrollmentParty|undefined
time
readonlytime:string|undefined
transactionSetPurposeCode
readonlytransactionSetPurposeCode:string
warnings
readonlywarnings: readonlyX12ParseWarning[]