Skip to main content
Version: v0.0.2

Interface: GsSegment

The decoded GS functional group header. elements[0] = "GS", elements[1] = GS-01 functional ID code (HC for claims, HP for remittance, etc.), elements[6] = GS-06 group control number (must match GE-02), elements[8] = GS-08 version (e.g. 005010X222A2).

Example

import type { GsSegment } from "@cosyte/x12";
declare const gs: GsSegment;
gs.elements[1]; // GS-01 - functional ID code
gs.elements[6]; // GS-06 - group control number

Properties

elements

readonly elements: readonly string[]


raw

readonly raw: string