Variable: lookupServiceType
constlookupServiceType: (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)