Segments

Enveloping

The first segment in a batch is always the Transmission Header Segment, which serves the same purpose as the X12 ISA. It starts with hex 02 followed by the 00 segment identifier. It has fixed-length, required fields with no delimiters, and ends with hex 03.

Example (element IDs shown below):

Detail Segments

The G1 record starts with hex 02 followed by the segment ID G1 and then fixed-length, undelimited fields in the Request Header Segment or Response Header Segment. It ends with a hex 03.

The G1 record contains the application segments. These always start with the Segment Separator character hex 1E, followed by AM and then the segment ID.

Within a G1, segments after the 07 segment are in any order. Likewise, within a segment, elements can be in any order as long as mandatory elements come before optional elements.

One G1 record can contain up to four claims.

Trailer Segment

The trailer record starts with a hex 02 and ends with a hex 03. All elements are fixed length with no delimiters. It contains a batch number that should match the one in the 00 record, and a count of all 00, G1, and 99 records in the batch.