837I Health Care Claim: Institutional (004010X096A1)

Hospitals and other facilities send the 837I to submit institutional claims, the electronic UB-04, to payers and clearinghouses. This is the standard X12 HIPAA 004010 spec, with 52 loops and 267 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 (310 KB) Generate classes
The ediFabric .NET template, class TS837I. The download includes the common segments, composites and codes it needs. Download C# (55 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (177 KB)

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

ediFabric Native

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

ediFabric Native returns each 837I 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 TS837I. 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 837I, see the 837I transaction guide.

837I structure

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

IDNameUsageMax use
STTransaction Set HeaderOptional1
BHTBeginning Of Hierarchical TransactionMandatory1
REFTransmission Type IdentificationMandatory1
Loop NM1Submitter NameMandatory1
NM1Submitter NameMandatory1
PERSubmitter EDI Contact InformationMandatory2
Loop NM1Receiver NameMandatory1
NM1Receiver NameMandatory1
Loop HLBilling Pay To Provider Hierarchical LevelMandatory>1
HLBilling Pay To Provider Hierarchical LevelMandatory1
PRVBilling Pay To Provider Specialty InformationOptional1
CURForeign Currency InformationOptional1
Loop NM1Billing Provider Name 2010AAMandatory1
NM1Billing Provider Name 2010AAMandatory1
N3Billing Provider Address 2010AAMandatory1
N4Billing Provider City State ZIP Code 2010AAMandatory1
REFBilling Provider Secondary Identification 2010AAOptional8
REFCredit Debit Card Billing Information 2010AAOptional8
PERBilling Provider Contact Information 2010AAOptional2
Loop NM1Pay To Provider Name 2010ABOptional1
NM1Pay To Provider Name 2010ABMandatory1
N3Pay To Provider Address 2010ABMandatory1
N4Pay To Provider City State ZIP Code 2010ABMandatory1
REFPay To Provider Secondary Identification 2010ABOptional5
Loop HLSubscriber Hierarchical LevelMandatory>1
HLSubscriber Hierarchical LevelMandatory1
SBRSubscriber InformationMandatory1
Loop NM1Subscriber Name 2010BAMandatory1
NM1Subscriber Name 2010BAMandatory1
N3Subscriber Address 2010BAOptional1
N4Subscriber City State ZIP Code 2010BAOptional1
DMGSubscriber Demographic Information 2010BAOptional1
REFSubscriber Secondary Identification 2010BAOptional4
REFProperty And Casualty Claim Number 2010BAOptional1
Loop NM1Credit Debit Card Account Holder Name 2010BBOptional1
NM1Credit Debit Card Account Holder Name 2010BBMandatory1
REFCredit Debit Card Information 2010BBOptional2
Loop NM1Payer Name 2010BCMandatory1
NM1Payer Name 2010BCMandatory1
N3Payer Address 2010BCOptional1
N4Payer City State ZIP Code 2010BCOptional1
REFPayer Secondary Identification 2010BCOptional3
Loop NM1Responsible Party Name 2010BDOptional1
NM1Responsible Party Name 2010BDMandatory1
N3Responsible Party Address 2010BDMandatory1
N4Responsible Party City State ZIP Code 2010BDMandatory1
Loop CLMClaim InformationOptional100
CLMClaim InformationMandatory1
DTPDischarge HourOptional1
DTPStatement DatesMandatory1
DTPAdmission Date HourOptional1
CL1Institutional Claim CodeOptional1
PWKClaim Supplemental InformationOptional10
CN1Contract InformationOptional1
AMTPayer Estimated Amount DueOptional1
AMTPatient Estimated Amount DueOptional1
AMTPatient Paid AmountOptional1
AMTCredit Debit Card Maximum AmountOptional1
REFAdjusted Repriced Claim NumberOptional1
REFRepriced Claim NumberOptional1
REFClaim Identification Number For Clearinghouses And Other Transmission IntermediariesOptional1
REFDocument Identification CodeOptional2
REFOriginal Reference Number ICNDCNOptional1
REFInvestigational Device Exemption NumberOptional1
REFService Authorization Exception CodeOptional1
REFPeer Review Organization PRO Approval NumberOptional1
REFPrior Authorization Or Referral NumberOptional2
REFMedical Record NumberOptional1
REFDemonstration Project IdentifierOptional1
K3File InformationOptional10
NTEClaim NoteOptional10
NTEBilling NoteOptional1
CR6Home Health Care InformationOptional1
CRCHome Health Functional LimitationsOptional3
CRCHome Health Activities PermittedOptional3
CRCHome Health Mental StatusOptional2
HIPrincipal Admitting E Code And Patient Reason For Visit Diagnosis InformationOptional1
HIDiagnosis Related Group DRG InformationOptional1
HIOther Diagnosis InformationOptional2
HIPrincipal Procedure InformationOptional1
HIOther Procedure InformationOptional2
HIOccurrence Span InformationOptional2
HIOccurrence InformationOptional2
HIValue InformationOptional2
HICondition InformationOptional2
HITreatment Code InformationOptional2
QTYClaim QuantityOptional4
HCPClaim Pricing Repricing InformationOptional1
Loop CR7Home Health Care Plan InformationOptional6
CR7Home Health Care Plan InformationMandatory1
HSDHealth Care Services DeliveryOptional12
Loop NM1Attending Physician NameOptional1
NM1Attending Physician NameMandatory1
PRVAttending Physician Specialty InformationOptional1
REFAttending Physician Secondary IdentificationOptional5
Loop NM1Operating Physician NameOptional1
NM1Operating Physician NameMandatory1
REFOperating Physician Secondary IdentificationOptional5
Loop NM1Other Provider NameOptional1
NM1Other Provider NameMandatory1
REFOther Provider Secondary IdentificationOptional5
Loop NM1Service Facility NameOptional1
NM1Service Facility NameMandatory1
N3Service Facility AddressMandatory1
N4Service Facility City State Zip CodeMandatory1
REFService Facility Secondary IdentificationOptional5
Loop SBROther Subscriber InformationOptional10
SBROther Subscriber InformationMandatory1
CASClaim Level AdjustmentOptional5
AMTPayer Prior PaymentOptional1
AMTCoordination Of Benefits COB Total Allowed AmountOptional1
AMTCoordination Of Benefits COB Total Submitted ChargesOptional1
AMTDiagnostic Related Group DRG Outlier AmountOptional1
AMTCoordination Of Benefits COB Total Medicare Paid AmountOptional1
AMTMedicare Paid Amount100Optional1
AMTMedicare Paid Amount80Optional1
AMTCoordination Of Benefits COB Medicare A Trust Fund Paid AmountOptional1
AMTCoordination Of Benefits COB Medicare B Trust Fund Paid AmountOptional1
AMTCoordination Of Benefits COB Total Noncovered AmountOptional1
AMTCoordination Of Benefits COB Total Denied AmountOptional1
DMGOther Subscriber Demographic InformationOptional1
OIOther Insurance Coverage InformationMandatory1
MIAMedicare Inpatient Adjudication InformationOptional1
MOAMedicare Outpatient Adjudication InformationOptional1
Loop NM1Other Subscriber NameMandatory1
NM1Other Subscriber NameMandatory1
N3Other Subscriber AddressOptional1
N4Other Subscriber City State ZIP CodeOptional1
REFOther Subscriber Secondary InformationOptional3
Loop NM1Other Payer NameMandatory1
NM1Other Payer NameMandatory1
N3Other Payer AddressOptional1
N4Other Payer City State ZIP CodeOptional1
DTPClaim Adjudication DateOptional1
REFOther Payer Secondary Identification And Reference NumberOptional2
REFOther Payer Prior Authorization Or Referral NumberOptional1
Loop NM1Other Payer Patient InformationOptional1
NM1Other Payer Patient InformationMandatory1
REFOther Payer Patient Identification NumberOptional3
Loop NM1Other Payer Attending ProviderOptional1
NM1Other Payer Attending ProviderMandatory1
REFOther Payer Attending Provider IdentificationMandatory3
Loop NM1Other Payer Operating ProviderOptional1
NM1Other Payer Operating ProviderMandatory1
REFOther Payer Operating Provider IdentificationMandatory3
Loop NM1Other Payer Other ProviderOptional1
NM1Other Payer Other ProviderMandatory1
REFOther Payer Other Provider IdentificationMandatory3
Loop NM1Other Payer Service Facility ProviderOptional1
NM1Other Payer Service Facility ProviderMandatory1
REFOther Payer Service Facility Provider IdentificationMandatory3
Loop LXService Line NumberMandatory999
LXService Line NumberMandatory1
SV2Institutional Service LineMandatory1
PWKLine Supplemental InformationOptional5
DTPService Line DateOptional1
DTPAssessment DateOptional1
AMTService Tax AmountOptional1
AMTFacility Tax AmountOptional1
HCPLine Pricing Repricing InformationOptional1
Loop LINDrug IdentificationOptional25
LINDrug IdentificationMandatory1
CTPDrug PricingOptional1
REFPrescription NumberOptional1
Loop NM1Attending Physician NameOptional1
NM1Attending Physician NameMandatory1
REFAttending Physician Secondary IdentificationOptional1
Loop NM1Operating Physician NameOptional1
NM1Operating Physician NameMandatory1
REFOperating Physician Secondary IdentificationOptional1
Loop NM1Other Provider NameOptional1
NM1Other Provider NameMandatory1
REFOther Provider Secondary IdentificationOptional1
Loop SVDService Line Adjudication InformationOptional25
SVDService Line Adjudication InformationMandatory1
CASService Line AdjustmentOptional99
DTPService Adjudication DateOptional1
Loop HLPatient Hierarchical LevelOptional>1
HLPatient Hierarchical LevelMandatory1
PATPatient InformationMandatory1
Loop NM1Patient Name 2010CAMandatory1
NM1Patient Name 2010CAMandatory1
N3Patient Address 2010CAMandatory1
N4Patient City State ZIP Code 2010CAMandatory1
DMGPatient Demographic Information 2010CAMandatory1
REFSubscriber Secondary Identification 2010BAOptional4
REFProperty And Casualty Claim Number 2010BAOptional1
Loop CLMClaim InformationMandatory100
CLMClaim InformationMandatory1
DTPDischarge HourOptional1
DTPStatement DatesMandatory1
DTPAdmission Date HourOptional1
CL1Institutional Claim CodeOptional1
PWKClaim Supplemental InformationOptional10
CN1Contract InformationOptional1
AMTPayer Estimated Amount DueOptional1
AMTPatient Estimated Amount DueOptional1
AMTPatient Paid AmountOptional1
AMTCredit Debit Card Maximum AmountOptional1
REFAdjusted Repriced Claim NumberOptional1
REFRepriced Claim NumberOptional1
REFClaim Identification Number For Clearinghouses And Other Transmission IntermediariesOptional1
REFDocument Identification CodeOptional2
REFOriginal Reference Number ICNDCNOptional1
REFInvestigational Device Exemption NumberOptional1
REFService Authorization Exception CodeOptional1
REFPeer Review Organization PRO Approval NumberOptional1
REFPrior Authorization Or Referral NumberOptional2
REFMedical Record NumberOptional1
REFDemonstration Project IdentifierOptional1
K3File InformationOptional10
NTEClaim NoteOptional10
NTEBilling NoteOptional1
CR6Home Health Care InformationOptional1
CRCHome Health Functional LimitationsOptional3
CRCHome Health Activities PermittedOptional3
CRCHome Health Mental StatusOptional2
HIPrincipal Admitting E Code And Patient Reason For Visit Diagnosis InformationOptional1
HIDiagnosis Related Group DRG InformationOptional1
HIOther Diagnosis InformationOptional2
HIPrincipal Procedure InformationOptional1
HIOther Procedure InformationOptional2
HIOccurrence Span InformationOptional2
HIOccurrence InformationOptional2
HIValue InformationOptional2
HICondition InformationOptional2
HITreatment Code InformationOptional2
QTYClaim QuantityOptional4
HCPClaim Pricing Repricing InformationOptional1
Loop CR7Home Health Care Plan InformationOptional6
CR7Home Health Care Plan InformationMandatory1
HSDHealth Care Services DeliveryOptional12
Loop NM1Attending Physician NameOptional1
NM1Attending Physician NameMandatory1
PRVAttending Physician Specialty InformationOptional1
REFAttending Physician Secondary IdentificationOptional5
Loop NM1Operating Physician NameOptional1
NM1Operating Physician NameMandatory1
REFOperating Physician Secondary IdentificationOptional5
Loop NM1Other Provider NameOptional1
NM1Other Provider NameMandatory1
REFOther Provider Secondary IdentificationOptional5
Loop NM1Service Facility NameOptional1
NM1Service Facility NameMandatory1
N3Service Facility AddressMandatory1
N4Service Facility City State Zip CodeMandatory1
REFService Facility Secondary IdentificationOptional5
Loop SBROther Subscriber InformationOptional10
SBROther Subscriber InformationMandatory1
CASClaim Level AdjustmentOptional5
AMTPayer Prior PaymentOptional1
AMTCoordination Of Benefits COB Total Allowed AmountOptional1
AMTCoordination Of Benefits COB Total Submitted ChargesOptional1
AMTDiagnostic Related Group DRG Outlier AmountOptional1
AMTCoordination Of Benefits COB Total Medicare Paid AmountOptional1
AMTMedicare Paid Amount100Optional1
AMTMedicare Paid Amount80Optional1
AMTCoordination Of Benefits COB Medicare A Trust Fund Paid AmountOptional1
AMTCoordination Of Benefits COB Medicare B Trust Fund Paid AmountOptional1
AMTCoordination Of Benefits COB Total Noncovered AmountOptional1
AMTCoordination Of Benefits COB Total Denied AmountOptional1
DMGOther Subscriber Demographic InformationOptional1
OIOther Insurance Coverage InformationMandatory1
MIAMedicare Inpatient Adjudication InformationOptional1
MOAMedicare Outpatient Adjudication InformationOptional1
Loop NM1Other Subscriber NameMandatory1
NM1Other Subscriber NameMandatory1
N3Other Subscriber AddressOptional1
N4Other Subscriber City State ZIP CodeOptional1
REFOther Subscriber Secondary InformationOptional3
Loop NM1Other Payer NameMandatory1
NM1Other Payer NameMandatory1
N3Other Payer AddressOptional1
N4Other Payer City State ZIP CodeOptional1
DTPClaim Adjudication DateOptional1
REFOther Payer Secondary Identification And Reference NumberOptional2
REFOther Payer Prior Authorization Or Referral NumberOptional1
Loop NM1Other Payer Patient InformationOptional1
NM1Other Payer Patient InformationMandatory1
REFOther Payer Patient Identification NumberOptional3
Loop NM1Other Payer Attending ProviderOptional1
NM1Other Payer Attending ProviderMandatory1
REFOther Payer Attending Provider IdentificationMandatory3
Loop NM1Other Payer Operating ProviderOptional1
NM1Other Payer Operating ProviderMandatory1
REFOther Payer Operating Provider IdentificationMandatory3
Loop NM1Other Payer Other ProviderOptional1
NM1Other Payer Other ProviderMandatory1
REFOther Payer Other Provider IdentificationMandatory3
Loop NM1Other Payer Service Facility ProviderOptional1
NM1Other Payer Service Facility ProviderMandatory1
REFOther Payer Service Facility Provider IdentificationMandatory3
Loop LXService Line NumberMandatory999
LXService Line NumberMandatory1
SV2Institutional Service LineMandatory1
PWKLine Supplemental InformationOptional5
DTPService Line DateOptional1
DTPAssessment DateOptional1
AMTService Tax AmountOptional1
AMTFacility Tax AmountOptional1
HCPLine Pricing Repricing InformationOptional1
Loop LINDrug IdentificationOptional25
LINDrug IdentificationMandatory1
CTPDrug PricingOptional1
REFPrescription NumberOptional1
Loop NM1Attending Physician NameOptional1
NM1Attending Physician NameMandatory1
REFAttending Physician Secondary IdentificationOptional1
Loop NM1Operating Physician NameOptional1
NM1Operating Physician NameMandatory1
REFOperating Physician Secondary IdentificationOptional1
Loop NM1Other Provider NameOptional1
NM1Other Provider NameMandatory1
REFOther Provider Secondary IdentificationOptional1
Loop SVDService Line Adjudication InformationOptional25
SVDService Line Adjudication InformationMandatory1
CASService Line AdjustmentOptional99
DTPService Adjudication DateOptional1
SETransaction Set TrailerOptional1