X12_SYNTAXconstconst X12_SYNTAX: StandardUrnThe X12 syntax, version 005010.
The X12 envelope and acknowledgement skeleton of Integrations (commons integrations-x12 0001-integrations-x12-skeleton): the entries of X12 and of the HIPAA 5010 and purchasing transaction sets with their licence as data, a codec for the fixed-width ISA envelope and the ISA, GS and ST levels, the control counts checked as findings, TA1 and 999 made and read, and a loader of a schema from the user's own transcription of a licensed guide. It embeds no transaction set, guide or companion guide of X12.
The delimiters are read from the ISA by position (delimitersOf) and kept on the envelope, and the codec writes with them; nothing assumes * or ~. Elements are not split into components. A transaction's children are its segments between ST and SE, flat: loops (the HL loops of the 837) are the schema's, Planned.
X12_SYNTAXconstconst X12_SYNTAX: StandardUrnThe X12 syntax, version 005010.
TRANSACTION_SETSconstconst TRANSACTION_SETS: readonly ["837", "835", "270", "271", "834", "850", "810", "856"]The transaction sets of the plugin: the HIPAA 5010 set and the purchasing documents.
TransactionSettypeno test imports ittype TransactionSet = (typeof TRANSACTION_SETS)[number];A transaction set the plugin lists.
setUrnconstconst setUrn: (set: "270" | "271" | "810" | "834" | "835" | "837" | "850" | "856") => StandardUrnThe urn of a transaction set's schema.
STANDARDSconstconst STANDARDS: readonly Standard[]The standards the plugin registers.
EMBEDDEDconstconst EMBEDDED: readonly EmbeddedContent[]The files of standards content the package embeds: none.
delimitersOffunctionfunction delimitersOf(text: string): Result<Readonly<Record<string, string>>, SyntaxProblem>The delimiters of an interchange, read from its ISA by position as the standard fixes them: the element separator is the character after ISA (position 3), the component separator is ISA16 (position 104), the segment terminator is the character after ISA16 (position 105), and the repetition separator is ISA11 where the version in ISA12 is 00501 or later (before it, ISA11 is a standards identifier). They are four different characters that are not letters, digits or white space; nothing is assumed.
codecconstconst codec: CodecThe X12 codec.
envelopeFindingsfunctionfunction envelopeFindings(i: Interchange): readonly Finding[]The findings of the control counts of an interchange: IEA against the groups and the ISA, GE against its transactions and the GS, SE against its segments and the ST. Paths and codes only.
ta1functionfunction ta1(received: Interchange, status: AckStatus): InterchangeA TA1: the acknowledgement of an interchange envelope: its control number, date and time, the status and a note code (000 where there is no error, 001 otherwise; the detailed codes are Planned).
ack999functionfunction ack999(received: Interchange, status: AckStatus): InterchangeA 999: the acknowledgement of each group of an interchange, AK1 for the group, AK9 for its status and counts.
acksconstconst acks: AckPortThe acknowledgement port of X12: a 999 where the interchange has groups, a TA1 where it has none; TA1 and 999 read back.
loadersconstno test imports itconst loaders: readonly Loader[]The loaders of the transaction sets: each reads the user's own transcription of the segments of a set from a licensed guide ({transaction, segments: [{id, min, max}]}); nothing of a guide is in the package.
x12Pluginconstconst x12Plugin: StandardsPluginThe plugin of X12.