837 Health Care Claim (workers' compensation) (005010I20)

The IAIABC 837 is the health care claim for workers' compensation medical bills. This is the standard X12 IAIABC 2.0 spec, with 21 loops and 96 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 (206 KB) Generate classes
The ediFabric .NET template, class TS837. The download includes the common segments, composites and codes it needs. Download C# (13 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (122 KB)

Use the 837 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 837 files into TS837 objects. See ediFabric .NET.

ediFabric Native

Map version 005010I20 to the Native model with set_map, then parse 837 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 837 classes in Python, Java, Node.js, Go, Rust or C

ediFabric Native returns each 837 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 TS837. 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.

837 structure

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

IDNameUsageMax use
STTransaction Set HeaderOptional1
BHTBHTMandatory1
Loop 1000ASubmiter InformationMandatory1
NM1Submiter InformationMandatory1
Loop 1000BReceiver InformationMandatory1
NM1Receiver InformationMandatory1
Loop 2000AHLMandatory>1
HLHLMandatory1
DTPReporting PeriodOptional1
Loop 2010AAInsurer NameMandatory1
NM1Insurer NameMandatory1
N4N4Mandatory1
Loop 2010ABClaim Administrator NameOptional1
NM1Claim Administrator NameMandatory1
N4N4Optional1
Loop 2000BHLMandatory>1
HLHLMandatory1
Loop 2010BAEmployer NameMandatory1
NM1Employer NameMandatory1
N3Employer AddressOptional1
N4N4Optional1
Loop 2000CHLMandatory>1
HLHLMandatory1
DTPInjury DateMandatory1
Loop 2010CAPatient NameMandatory1
NM1Patient NameMandatory1
N3Claimant AddressOptional1
N4N4Optional1
DMGClaimant Demographic InformationOptional1
REFClaim Administrator Claim NumberMandatory1
REFJurisdiction Assigned Claim NumberOptional1
REFClaimant Telephone NumberOptional1
PERClaimant Contact InformationOptional1
Loop 2300Bill Record InformationMandatory100
CLMBill Record InformationMandatory1
DTPDate Insurer Received BillMandatory1
DTPDate And Time Of AdmissionOptional1
DTPDate And Time Of DischargeOptional1
DTPService Date RangeOptional1
DTPDate Of PrescriptionOptional1
DTPDate Of BillMandatory1
DTPDate Insurer Paid BillMandatory1
CL1Admission TypeOptional1
CN1Contract InformationOptional1
AMTPatient Amount PaidMandatory1
REFUnique Bill Identification NumberMandatory1
REFRecord Transmission Tracking NumberMandatory1
REFTreatment Authorization NumberOptional1
REFSettlement Or Award IdentifierOptional1
HIInstitutional Bill Principal DiagnosisOptional1
HIInstitutional Bill Admitting DiagnosisOptional1
HIInstitutional Bill Other DiagnosisOptional1
HIOutpatient Reason For VisitOptional1
HINon Institutional Diagnosis CodesOptional1
HIInstitutional Bill Principal ProcedureOptional1
HIInstitutional Bill Other Procedure CodesOptional1
HICondition CodesOptional1
HIDiagnosis Related Group InformationOptional1
Loop 2310ABilling Provider NameOptional1
NM1Billing Provider NameMandatory1
PRVBilling Provider Specialty InformationOptional1
N3Billing Provider AddressMandatory1
N4N4Mandatory1
REFBilling Provider Tax Identification NumberMandatory1
REFBilling Provider State License NumberOptional1
Loop 2310BRendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationOptional1
REFRendering Provider Secondary IdentificationOptional1
Loop 2310CSupervising Provider NameOptional1
NM1Supervising Provider NameMandatory1
PRVSupervising Provider Specialty InformationOptional1
REFSupervising Provider State License NumberOptional1
Loop 2310DService Facility Location NameOptional1
NM1Service Facility Location NameMandatory1
N3Party LocationOptional1
N4Geographic LocationOptional1
REFService Facility Location Secondary IdentificationOptional2
Loop 2310EReferring Provider NameOptional2
NM1Referring Provider NameMandatory1
REFReferring Provider State License NumberOptional1
Loop 2310FManaged Care Organization NameOptional1
NM1Managed Care Organization NameMandatory1
REFManaged Care Organization Secondary IdentificationOptional1
Loop 2320Subscriber InformationOptional1
SBRSubscriber InformationMandatory1
CASClaim Level AdjustmentsOptional5
AMTPrior Payment AmountOptional1
Loop 2400Service Line NumberOptional999
LXService Line NumberMandatory1
SV1Professional ServiceOptional1
SV2Institutional Service InformationOptional1
SV3Dental ServiceOptional1
SV4Drug ServiceOptional1
DTPService DateMandatory1
DTPPrescription DateOptional1
QTYPrescription QuantityOptional2
CN1Contract InformationOptional1
REFTreatment Authorization NumberOptional2
AMTPharmacy Dispensing Fee AmountOptional1
AMTPharmacy Billedd AmountOptional1
AMTLine Item Tax Charged AmountOptional1
K3File InformationOptional10
Loop 2410Drug IdentificationOptional>1
LINDrug IdentificationMandatory1
CTPDrug QuantityOptional1
REFPrescriptionor Compound Drug Association NumberOptional1
Loop 2420Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationOptional1
REFRendering Provider Secondary InformationOptional1
Loop 2430Line Adjudication InformationOptional15
SVDLine Adjudication InformationMandatory1
CASLine AdjustmentOptional99
AMTLine Item Prior Payment AmountOptional1
AMTLine Item Tax Paid AmountOptional1
SETransaction Set TrailerOptional1