Skip to main content
Version: v0.0.2

Function: unknownClaimStatusCategory()

unknownClaimStatusCategory(position, code): X12ParseWarning

Build an X12_UNKNOWN_CLAIM_STATUS_CATEGORY warning. Emitted by the 277 / 277CA helpers when an STC composite's Claim Status Category Code (CSCC, first component) is outside the bundled snapshot (see "../code-lists/claim-status-category.js". CLAIM_STATUS_CATEGORY_CODES). The verbatim CSCC is still preserved on the parsed status - only the description is missing. The code value is shape-validated against the CSCC grammar before echoing; a hostile non-conformant value collapses to the literal (non-spec) so the parser never echoes arbitrary bytes (H-PHI invariant).

Parameters

position

X12Position

code

string

Returns

X12ParseWarning

Example

import { unknownClaimStatusCategory } from "@cosyte/x12";
const w = unknownClaimStatusCategory(
{ segmentIndex: 18, interchangeIndex: 0, groupIndex: 0, transactionIndex: 0 },
"Z9",
);