Testing X12 configurations
Tests X12 record format configurations. This test reads, parses, and displays messages, ensuring that configurations match the input data.
hcix12test handles X12 messages that contain:
- Any number of interchanges
(ISA..IEA).
or
- A single group
(GS..GE).
or
- A single transaction set (ST..SE).
hcix12test accepts interchanges, groups, or transaction sets.
If the message starts with ST or GS, then it is treated as an individual transaction set or an individual group, respectively. For ST and GS messages, use default separator characters (*, ~ and \).
If the message does not start with ST or GS, then it is treated as an interchange. hcix12test handles a message with any number of interchanges, each containing any number of groups, which can contain any number of transaction sets. For interchanges, the separator characters are extracted from the ISA segments.
If using group messages (GS to GE), then create a variant that defines the transaction sets in terms of groups and specify such a variant for the test. The path names for a group are different from the transaction set. This is because the GS becomes group zero and the first ST is 1(0).0(0).ST(0).
The group message variant uses this structure:
GS
{
ST
. . .
SE
}
GE
- If an envelope is used, then it extracts the transaction sets and parses the individual transaction sets.
- If transaction sets are used, then hcix12test processes the message without extracting the transaction sets.