Skip to main content
Version: v0.0.2

Variable: lookupServiceType

const lookupServiceType: (code) => CodeListEntry | undefined

Look up a Service Type Code (EB-03) description from the bundled snapshot. Returns undefined for codes outside the initial subset; the verbatim code is still preserved on the parsed benefit model.

Parameters

code

string

Returns

CodeListEntry | undefined

Example

import { lookupServiceType } from "@cosyte/x12";
lookupServiceType("30")?.description; // "Health Benefit Plan Coverage"
lookupServiceType("ZZ"); // undefined (outside subset)