Interface: FunctionalGroupSpec
A single GS..GE functional group. The builder emits the GS header, each
transaction set, then GE{count}{control} with GE-01 (the transaction
count) computed for you.
Example
const group: FunctionalGroupSpec = {
functionalIdCode: "HC",
groupControlNumber: "1",
versionRelease: "005010X222A2",
transactions: [tx],
};
Properties
applicationReceiverCode?
readonlyoptionalapplicationReceiverCode?:string
GS-03 - application receiver code. Defaults to the interchange receiver id.
applicationSenderCode?
readonlyoptionalapplicationSenderCode?:string
GS-02 - application sender code. Defaults to the interchange sender id.
functionalIdCode
readonlyfunctionalIdCode:string
GS-01 - functional identifier code (HC claims, HP remittance, …).
groupControlNumber
readonlygroupControlNumber:string
GS-06 / GE-02 - group control number (echoed on GE-02).
groupDate?
readonlyoptionalgroupDate?:string
GS-04 - group date CCYYMMDD. Defaults to the century-expanded ISA-09.
groupTime?
readonlyoptionalgroupTime?:string
GS-05 - group time HHMM. Defaults to the interchange time (ISA-10).
responsibleAgencyCode?
readonlyoptionalresponsibleAgencyCode?:string
GS-07 - responsible agency code. Defaults to "X" (ASC X12).
transactions
readonlytransactions: readonlyTransactionSetSpec[]
The ordered ST..SE transaction sets inside this group.
versionRelease
readonlyversionRelease:string
GS-08 - version / release / industry identifier code (e.g. "005010X222A2").