Skip to main content
Version: v0.0.8

Function: unknownMaintenanceType()

unknownMaintenanceType(position): X12ParseWarning

Build an X12_834_UNKNOWN_MAINTENANCE_TYPE warning. Emitted by the 834 helper when a member-level INS-03 (or a health-coverage HD-01) maintenance type code falls outside the bundled snapshot (see "../code-lists/maintenance-type.js".MAINTENANCE_TYPE_CODES). Maintenance type is the 834's safety-critical field: an unknown action code must NEVER be silently coerced to add / change / terminate, so the verbatim code is preserved on the parsed enrollment and this warning flags the gap.

Parameters

position

X12Position

Returns

X12ParseWarning

Example

import { unknownMaintenanceType } from "@cosyte/x12";
const w = unknownMaintenanceType({ segmentIndex: 9, transactionIndex: 0 });