Skip to main content
Version: v0.0.2

Interface: X12Enrollment

One decoded Loop 2000 member-level detail (INS) - a single member's enrollment action. Carries the member identity (Loop 2100A NM1 + DMG + address), the supplemental ids (REF - subscriber id, group/policy), the dates (DTP - eligibility begin/end), the health-coverage loops (Loop 2300 HD), and the coordination-of-benefits loops (Loop 2320 COB). Any recoverable deviation (e.g. an unknown maintenance type) is surfaced on warnings for THIS member only.

Example

import type { X12Enrollment } from "@cosyte/x12";
declare const e: X12Enrollment;
e.maintenanceTypeCode; // "021" addition
e.maintenanceTypeDescription; // "Addition"
e.member?.lastName; // verbatim member surname
e.healthCoverages[0]?.insuranceLineCode; // "HLT"

Properties

benefitStatusCode

readonly benefitStatusCode: string | undefined


coordinationOfBenefits

readonly coordinationOfBenefits: readonly X12CoordinationOfBenefits[]


dates

readonly dates: readonly X12EnrollmentDate[]


employmentStatusCode

readonly employmentStatusCode: string | undefined


healthCoverages

readonly healthCoverages: readonly X12HealthCoverage[]


maintenanceReasonCode

readonly maintenanceReasonCode: string | undefined


maintenanceTypeCode

readonly maintenanceTypeCode: string


maintenanceTypeDescription

readonly maintenanceTypeDescription: string | undefined


member

readonly member: X12EnrollmentMember | undefined


references

readonly references: readonly X12EnrollmentReference[]


relationshipCode

readonly relationshipCode: string | undefined


subscriberIndicator

readonly subscriberIndicator: string | undefined


warnings

readonly warnings: readonly X12ParseWarning[]