Skip to main content
Version: v0.0.2

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

readonly amounts: readonly X12ClaimAmount[]


benefitsAssignment

readonly benefitsAssignment: string | undefined


billingProvider

readonly billingProvider: X12ClaimEntity | undefined


claimFrequencyCode

readonly claimFrequencyCode: string | undefined


claimId

readonly claimId: string


dates

readonly dates: readonly X12ClaimDate[]


diagnoses

readonly diagnoses: readonly X12ClaimHiCode[]


facilityCodeQualifier

readonly facilityCodeQualifier: string | undefined


hierarchy

readonly hierarchy: X12HierarchicalLevel | undefined


notes

readonly notes: readonly X12ClaimNote[]


otherHi

readonly otherHi: readonly X12ClaimHiCode[]


otherSubscribers

readonly otherSubscribers: readonly X12OtherSubscriber[]


patient

readonly patient: X12ClaimMember | undefined


payer

readonly payer: X12ClaimEntity | undefined


payToAddress

readonly payToAddress: X12ClaimAddress | undefined


payToPlan

readonly payToPlan: X12ClaimEntity | undefined


placeOfServiceCode

readonly placeOfServiceCode: string | undefined


procedures

readonly procedures: readonly X12ClaimHiCode[]


providerAcceptAssignment

readonly providerAcceptAssignment: string | undefined


providers

readonly providers: readonly X12ClaimEntity[]


providerSignatureOnFile

readonly providerSignatureOnFile: string | undefined


references

readonly references: readonly X12ClaimReference[]


releaseOfInformationCode

readonly releaseOfInformationCode: string | undefined


serviceLines

readonly serviceLines: readonly X12_837ServiceLine[]


subscriber

readonly subscriber: X12ClaimMember | undefined


totalCharge

readonly totalCharge: X12Decimal


variant

readonly variant: X12Claim837Variant