Skip to main content
Version: v0.0.2

Variable: lookupCarc

const lookupCarc: (code) => CodeListEntry | undefined

Look up a CARC code's bundled description. Returns undefined when the code is not in the initial subset - the verbatim code is still preserved on the parsed model and the 835 walker emits X12_UNKNOWN_CARC so consumers know the description gap exists.

Parameters

code

string

Returns

CodeListEntry | undefined

Example

import { lookupCarc } from "@cosyte/x12";
lookupCarc("45")?.description; // "Charge exceeds fee schedule..."
lookupCarc("9999"); // undefined (outside the bundled subset)