Interface: X12Claim
Decoded CLM claim header + every claim-scoped loop. The variant
mirrors the parent submission's variant; the serviceLines discriminate
on the same variant so a consumer can do a single switch.
PHI surface: claimId (provider's patient-account number), the
subscriber/patient NM1 entities, member ID on subscriber/patient, NTE
notes. All surfaced verbatim; warnings never echo values.
Example
import type { X12Claim } from "@cosyte/x12";
declare const c: X12Claim;
c.variant; // "P" / "I" / "D" / "unknown"
c.claimId; // CLM-01 (patient account number)
c.totalCharge.toString(); // CLM-02 as X12Decimal
c.diagnoses[0]?.codeSystem; // "ICD-10-CM"
c.serviceLines.length; // count of LX/SVx loops
Properties
amounts
readonlyamounts: readonlyX12ClaimAmount[]
benefitsAssignment
readonlybenefitsAssignment:string|undefined
billingProvider
readonlybillingProvider:X12ClaimEntity|undefined
claimFrequencyCode
readonlyclaimFrequencyCode:string|undefined
claimId
readonlyclaimId:string
dates
readonlydates: readonlyX12ClaimDate[]
diagnoses
readonlydiagnoses: readonlyX12ClaimHiCode[]
facilityCodeQualifier
readonlyfacilityCodeQualifier:string|undefined
hierarchy
readonlyhierarchy:X12HierarchicalLevel|undefined
notes
readonlynotes: readonlyX12ClaimNote[]
otherHi
readonlyotherHi: readonlyX12ClaimHiCode[]
otherSubscribers
readonlyotherSubscribers: readonlyX12OtherSubscriber[]
patient
readonlypatient:X12ClaimMember|undefined
payer
readonlypayer:X12ClaimEntity|undefined
payToAddress
readonlypayToAddress:X12ClaimAddress|undefined
payToPlan
readonlypayToPlan:X12ClaimEntity|undefined
placeOfServiceCode
readonlyplaceOfServiceCode:string|undefined
procedures
readonlyprocedures: readonlyX12ClaimHiCode[]
providerAcceptAssignment
readonlyproviderAcceptAssignment:string|undefined
providers
readonlyproviders: readonlyX12ClaimEntity[]
providerSignatureOnFile
readonlyproviderSignatureOnFile:string|undefined
references
readonlyreferences: readonlyX12ClaimReference[]
releaseOfInformationCode
readonlyreleaseOfInformationCode:string|undefined
serviceLines
readonlyserviceLines: readonlyX12_837ServiceLine[]
subscriber
readonlysubscriber:X12ClaimMember|undefined
totalCharge
readonlytotalCharge:X12Decimal
variant
readonlyvariant:X12Claim837Variant