IF Commons GitHub

mod

Written to: 6 requirements: 6 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-integrations-x12-skeleton FR-001, 0001-integrations-x12-skeleton FR-002, 0001-integrations-x12-skeleton FR-003, 0001-integrations-x12-skeleton FR-004, 0001-integrations-x12-skeleton FR-005, 0001-integrations-x12-skeleton FR-006

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.

Source: commons/integrations-x12/src/mod.ts

Mutation score of this file: 64.3% (210 of 588 changes to its code were not noticed by a test).

12 of 14 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

X12_SYNTAXconst
const X12_SYNTAX: StandardUrn

The X12 syntax, version 005010.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

TRANSACTION_SETSconst
const 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.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

TransactionSettypeno test imports it
type TransactionSet = (typeof TRANSACTION_SETS)[number];

A transaction set the plugin lists.

setUrnconst
const setUrn: (set: "270" | "271" | "810" | "834" | "835" | "837" | "850" | "856") => StandardUrn

The urn of a transaction set's schema.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

STANDARDSconst
const STANDARDS: readonly Standard[]

The standards the plugin registers.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

EMBEDDEDconst
const EMBEDDED: readonly EmbeddedContent[]

The files of standards content the package embeds: none.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

delimitersOffunction
function 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.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

codecconst
const codec: Codec

The X12 codec.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

envelopeFindingsfunction
function 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.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

ta1function
function ta1(received: Interchange, status: AckStatus): Interchange

A 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).

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

ack999function
function ack999(received: Interchange, status: AckStatus): Interchange

A 999: the acknowledgement of each group of an interchange, AK1 for the group, AK9 for its status and counts.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

acksconst
const acks: AckPort

The acknowledgement port of X12: a 999 where the interchange has groups, a TA1 where it has none; TA1 and 999 read back.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

loadersconstno test imports it
const 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.

x12Pluginconst
const x12Plugin: StandardsPlugin

The plugin of X12.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.