835 Health Care Claim Payment/Advice (005010X221A1)

Payers send the 835 electronic remittance advice (ERA) to explain claim payments, adjustments and denials. This is the standard X12 HIPAA 005010 spec, with 5 loops and 53 segment positions, as OpenEDI JSON, an ediFabric C# template and an ediFabric Native model. To change it for a trading partner, customize it in the EDI Spec Builder.

Loading the spec…
The spec as an OpenAPI 3 schema with x-openedi-* extensions, for ediFabric Native, ediFabric Cloud and the EDI Spec Builder. Download OpenEDI (235 KB) Generate classes
The ediFabric .NET template, class TS835. The download includes the common segments, composites and codes it needs. Download C# (93 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (91 KB)

Use the 835 spec in your code

ediFabric .NET

Add the C# template and its common files to your project, or reference the template NuGet package, and read 835 files into TS835 objects. See ediFabric .NET.

ediFabric Native

Map version 005010X221A1 to the Native model with set_map, then parse 835 files to JSON from Python, Java, C or C#. See Convert between EDI and JSON.

OpenEDI

Select Customize in Spec Builder to copy the spec under your own name, change it for your partner, and parse files against it in EdiNation, ediFabric Native or ediFabric Cloud. Read about OpenEDI.

Generate 835 classes in Python, Java, Node.js, Go, Rust or C

ediFabric Native returns each 835 as JSON, with the property names of the OpenEDI schema. To work with that JSON as typed objects, generate classes from the OpenEDI file in your language and deserialize the JSON into TS835. Serialize the objects back to JSON to build EDI with ediFabric Native. The classes keep the loops, segments, lengths and code lists, but not the EDI data formats, so validate files with ediFabric Native. Read more in Generate a class from OpenEDI.

Python: datamodel-code-generator. Node.js: openapi-typescript. Java, Go, Rust and C: OpenAPI Generator.

For a sample file, the same data as JSON, and code to parse, validate and generate the 835, see the 835 transaction guide.

835 structure

Loops and segments of the standard 835, with their usage and maximum repeats.

IDNameUsageMax use
STTransaction Set HeaderOptional1
BPRFinancial InformationMandatory1
TRNReassociation Trace NumberMandatory1
CURForeign Currency InformationOptional1
REFReceiver IdentificationOptional1
REFVersion IdentificationOptional1
DTMProduction DateOptional1
Loop 1000APayer IdentificationMandatory1
N1Payer IdentificationMandatory1
N3Payer AddressMandatory1
N4Payer City State ZIP CodeMandatory1
REFAdditional Payer IdentificationOptional4
PERPayer Business Contact InformationOptional1
PERPayer Technical Contact InformationMandatory>1
PERPayer WEB SiteOptional1
Loop 1000BPayee IdentificationMandatory1
N1Payee IdentificationMandatory1
N3Payee AddressOptional1
N4Payee City State ZIP CodeOptional1
REFPayee Additional IdentificationOptional>1
RDMRemittance Delivery MethodOptional1
Loop 2000Header NumberOptional>1
LXHeader NumberMandatory1
TS3Provider Summary InformationOptional1
TS2Provider Supplemental Summary InformationOptional1
Loop 2100Claim Payment InformationMandatory>1
CLPClaim Payment InformationMandatory1
CASClaims AdjustmentOptional99
NM1Patient NameMandatory1
NM1Insured NameOptional1
NM1Corrected Patient Insured NameOptional1
NM1Service Provider NameOptional1
NM1Crossover Carrier NameOptional1
NM1Corrected Priority Payer NameOptional1
NM1Other Subscriber NameOptional1
MIAInpatient Adjudication InformationOptional1
MOAOutpatient Adjudication InformationOptional1
REFOther Claim Related IdentificationOptional5
REFRendering Provider IdentificationOptional10
DTMStatement Fromor To DateOptional2
DTMCoverage Expiration DateOptional1
DTMClaim Received DateOptional1
PERClaim Contact InformationOptional2
AMTClaim Supplemental InformationOptional13
QTYClaim Supplemental Information QuantityOptional14
Loop 2110Service Payment InformationOptional999
SVCService Payment InformationMandatory1
DTMService DateOptional2
CASService AdjustmentOptional99
REFService IdentificationOptional8
REFLine Item Control NumberOptional1
REFRendering Provider InformationOptional10
REFHealth Care Policy IdentificationOptional5
AMTService Supplemental AmountOptional9
QTYService Supplemental QuantityOptional6
LQHealth Care Remark CodesOptional99
PLBProvider AdjustmentOptional>1
SETransaction Set TrailerOptional1