Interface: X12EligibilityBenefit
One eligibility-or-benefit line (EB, Loop 2110C/2110D). EB-01 is the
eligibility code (1 Active Coverage, 6 Inactive, I Non-Covered,
…); EB-03 carries one-or-more Service Type Codes (each looked up against
the bundled snapshot). Monetary + percent + quantity are
X12Decimal. The walker preserves the verbatim EB-01 even when no
description resolves.
Example
import type { X12EligibilityBenefit } from "@cosyte/x12";
declare const b: X12EligibilityBenefit;
b.eligibilityCode; // "1"
b.serviceTypeCodes[0]?.code; // "30"
b.inPlanNetwork; // "Y"
b.monetaryAmount?.toString(); // "1000.00"
Properties
authorizationRequired
readonlyauthorizationRequired:string|undefined
coverageLevelCode
readonlycoverageLevelCode:string|undefined
dates
readonlydates: readonlyX12EligibilityDate[]
eligibilityCode
readonlyeligibilityCode:string
inPlanNetwork
readonlyinPlanNetwork:string|undefined
insuranceTypeCode
readonlyinsuranceTypeCode:string|undefined
messages
readonlymessages: readonlystring[]
monetaryAmount
readonlymonetaryAmount:X12Decimal|undefined
percent
readonlypercent:X12Decimal|undefined
planCoverageDescription
readonlyplanCoverageDescription:string|undefined
quantity
readonlyquantity:X12Decimal|undefined
quantityQualifier
readonlyquantityQualifier:string|undefined
references
readonlyreferences: readonlyX12EligibilityReference[]
relatedEntities
readonlyrelatedEntities: readonlyX12EligibilityEntity[]
serviceTypeCodes
readonlyserviceTypeCodes: readonlyX12EligibilityServiceType[]
timePeriodQualifier
readonlytimePeriodQualifier:string|undefined