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
readonlybenefitStatusCode:string|undefined
coordinationOfBenefits
readonlycoordinationOfBenefits: readonlyX12CoordinationOfBenefits[]
dates
readonlydates: readonlyX12EnrollmentDate[]
employmentStatusCode
readonlyemploymentStatusCode:string|undefined
healthCoverages
readonlyhealthCoverages: readonlyX12HealthCoverage[]
maintenanceReasonCode
readonlymaintenanceReasonCode:string|undefined
maintenanceTypeCode
readonlymaintenanceTypeCode:string
maintenanceTypeDescription
readonlymaintenanceTypeDescription:string|undefined
member
readonlymember:X12EnrollmentMember|undefined
references
readonlyreferences: readonlyX12EnrollmentReference[]
relationshipCode
readonlyrelationshipCode:string|undefined
subscriberIndicator
readonlysubscriberIndicator:string|undefined
warnings
readonlywarnings: readonlyX12ParseWarning[]