Skip to main content
Version: v0.0.2

Function: isClaimAdjustmentGroupCode()

isClaimAdjustmentGroupCode(value): value is ClaimAdjustmentGroupCode

Narrow an inbound CAS-01 string to a ClaimAdjustmentGroupCode. false means the inbound code is not one of the 4 spec-defined values (e.g. a typo "CR" from a quirky payer); the verbatim value is still preserved on the parsed model, and the consumer can branch on the narrow result.

Parameters

value

string

Returns

value is ClaimAdjustmentGroupCode

Example

import { isClaimAdjustmentGroupCode } from "@cosyte/x12";
isClaimAdjustmentGroupCode("PR"); // true
isClaimAdjustmentGroupCode("CR"); // false (unknown)