837D Health Care Claim: Dental (005010X224A1)

Dental practices send the 837D to submit dental claims and predeterminations to payers and clearinghouses. This is the standard X12 HIPAA 005010 before the errata spec, with 53 loops and 253 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 (390 KB) Generate classes
The ediFabric .NET template, class TS837D. The download includes the common segments, composites and codes it needs. Download C# (75 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (174 KB)

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

ediFabric Native

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

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

837D structure

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

IDNameUsageMax use
STTransaction Set HeaderOptional1
BHTBeginning Of Hierarchical TransactionMandatory1
Loop NM1Submitter NameMandatory1
NM1Submitter NameMandatory1
PERSubmitter EDI Contact InformationMandatory2
Loop NM1Receiver NameMandatory1
NM1Receiver NameMandatory1
Loop HLBilling Provider Hierarchical LevelMandatory>1
HLBilling Provider Hierarchical LevelMandatory1
PRVBilling Provider Specialty InformationOptional1
CURForeign Currency InformationOptional1
Loop NM1Billing Provider NameMandatory1
NM1Billing Provider NameMandatory1
N3Billing Provider AddressMandatory1
N4Billing Provider City State ZIP CodeMandatory1
REFBilling Provider Tax IdentificationMandatory1
REFBilling Provider UPIN License InformationOptional2
PERBilling Provider Contact InformationOptional2
Loop NM1Pay Address NameOptional1
NM1Pay Address NameMandatory1
N3Pay Address ADDRESSMandatory1
N4Pay Address City State ZIP CodeMandatory1
Loop NM1Pay To Plan NameOptional1
NM1Pay To Plan NameMandatory1
N3Pay To Plan AddressMandatory1
N4Pay To Plan City State Zip CodeMandatory1
REFPay To Plan Secondary IdentificationOptional1
REFPay To Plan Tax Identification NumberMandatory1
Loop HLSubscriber Hierarchical LevelMandatory>1
HLSubscriber Hierarchical LevelMandatory1
SBRSubscriber InformationMandatory1
Loop NM1Subscriber NameMandatory1
NM1Subscriber NameMandatory1
N3Subscriber AddressOptional1
N4Subscriber City State ZIP CodeMandatory1
DMGSubscriber Demographic InformationOptional1
REFSubscriber Secondary IdentificationOptional1
REFPropertyand Casualty Claim NumberOptional1
Loop NM1Payer NameMandatory1
NM1Payer NameMandatory1
N3Payer AddressOptional1
N4Payer City State ZIP CodeMandatory1
REFPayer Secondary IdentificationOptional3
REFBilling Provider Secondary IdentificationOptional1
Loop CLMClaim InformationOptional100
CLMClaim InformationMandatory1
DTPDate AccidentOptional1
DTPDate Appliance PlacementOptional1
DTPDate Service DateOptional1
DTPDate Repricer Received DateOptional1
DN1Orthodontic Total Monthsof TreatmentOptional1
DN2Tooth StatusOptional35
PWKClaim Supplemental InformationOptional10
CN1Contract InformationOptional1
AMTPatient Amount PaidOptional1
REFPredetermination IdentificationOptional1
REFService Authorization Exception CodeOptional1
REFPayer Claim Control NumberOptional1
REFReferral NumberOptional1
REFPrior AuthorizationOptional1
REFRepriced Claim NumberOptional1
REFAdjusted Repriced Claim NumberOptional1
REFClaim Identifier For Transmission IntermediariesOptional1
K3File InformationOptional10
NTEClaim NoteOptional5
HIHealth Care Diagnosis CodeOptional1
HCPClaim Pricing Repricing InformationOptional1
Loop NM1Referring Provider NameOptional2
NM1Referring Provider NameMandatory1
PRVReferring Provider Specialty InformationOptional1
REFReferring Provider Secondary IdentificationOptional3
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationMandatory1
REFRendering Provider Secondary IdentificationOptional4
Loop NM1Service Facility Location NameOptional1
NM1Service Facility Location NameMandatory1
N3Service Facility Location AddressMandatory1
N4Service Facility Location City State Zip CodeMandatory1
REFService Facility Location Secondary IdentificationOptional3
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationMandatory1
REFAssistant Surgeon Secondary IdentificationOptional4
Loop NM1Supervising Provider NameOptional1
NM1Supervising Provider NameMandatory1
REFSupervising Provider Secondary IdentificationOptional4
Loop SBROther Subscriber InformationOptional10
SBROther Subscriber InformationMandatory1
CASClaim Level AdjustmentsOptional5
AMTCoordinationof Benefits COB Payer Paid AmountOptional1
AMTRemaining Patient LiabilityOptional1
AMTCoordinationof Benefits COB Total Non AmountOptional1
OIOther Insurance Coverage InformationMandatory1
MOAOutpatient Adjudication InformationOptional1
Loop NM1Other Subscriber NameMandatory1
NM1Other Subscriber NameMandatory1
N3Other Subscriber AddressOptional1
N4Other Subscriber City State Zip CodeMandatory1
REFOther Subscriber Secondary IdentificationOptional2
Loop NM1Other Payer NameMandatory1
NM1Other Payer NameMandatory1
N3Other Payer AddressOptional1
N4Other Payer City State ZIP CodeMandatory1
DTPClaim Check Or Remittance DateOptional1
REFOther Payer Secondary IdentifierOptional3
REFOther Payer Prior Authorization NumberOptional1
REFOther Payer Referral NumberOptional1
REFOther Payer Claim Adjustment IndicatorOptional1
REFOther Payer Predetermination IdentificationOptional1
REFOther Payer Claim Control NumberOptional1
Loop NM1Other Payer Referring ProviderOptional2
NM1Other Payer Referring ProviderMandatory1
REFOther Payer Referring Provider Secondary IdentificationMandatory3
Loop NM1Other Payer Rendering ProviderOptional1
NM1Other Payer Rendering ProviderMandatory1
REFOther Payer Rendering Provider Secondary IdentificationMandatory3
Loop NM1Other Payer Supervising ProviderOptional1
NM1Other Payer Supervising ProviderMandatory1
REFOther Payer Supervising Provider IdentificationMandatory3
Loop NM1Other Payer Billing ProviderOptional1
NM1Other Payer Billing ProviderMandatory1
REFOther Payer Billing Provider Secondary IdentificationMandatory2
Loop NM1Other Payer Service Facility LocationOptional1
NM1Other Payer Service Facility LocationMandatory1
REFOther Payer Service Facility Location Secondary IdentificationMandatory3
Loop NM1Other Payer Assistant SurgeonOptional1
NM1Other Payer Assistant SurgeonMandatory1
REFOther Payer Assistant Surgeon Secondary IdentifierMandatory3
Loop LXService Line CounterMandatory50
LXService Line CounterMandatory1
SV3Dental ServiceMandatory1
TOOTooth InformationOptional32
DTPDate Service DateOptional1
DTPDate Prior PlacementOptional1
DTPDate Appliance PlacementOptional1
DTPDate ReplacementOptional1
DTPDate Treatment StartOptional1
DTPDate Treatment CompletionOptional1
CN1Contract InformationOptional1
REFService Predetermination IdentificationOptional5
REFPrior AuthorizationOptional5
REFLine Item Control NumberOptional1
REFRepriced Claim NumberOptional1
REFAdjusted Repriced Claim NumberOptional1
REFReferral NumberOptional5
AMTSales Tax AmountOptional1
K3File InformationOptional10
HCPLine Pricing Repricing InformationOptional1
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationMandatory1
REFRendering Provider Secondary IdentificationOptional20
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationOptional1
REFAssistant Surgeon Secondary IdentificationOptional20
Loop NM1Supervising Provider NameOptional1
NM1Supervising Provider NameMandatory1
REFSupervising Provider Secondary IdentificationOptional20
Loop NM1Service Facility Location NameOptional1
NM1Service Facility Location NameMandatory1
N3Service Facility Location AddressMandatory1
N4Service Facility Location City State ZIP CodeMandatory1
REFService Facility Location Secondary IdentificationOptional20
Loop SVDLine Adjudication InformationOptional15
SVDLine Adjudication InformationMandatory1
CASLine AdjustmentOptional5
DTPLine Checkor Remittance DateMandatory1
AMTRemaining Patient LiabilityOptional1
Loop HLPatient Hierarchical LevelOptional>1
HLPatient Hierarchical LevelMandatory1
PATPatient InformationMandatory1
Loop NM1Patient NameMandatory1
NM1Patient NameMandatory1
N3Patient AddressMandatory1
N4Patient City State ZIP CodeMandatory1
DMGPatient Demographic InformationMandatory1
REFPropertyand Casualty Claim NumberOptional1
Loop CLMClaim InformationMandatory100
CLMClaim InformationMandatory1
DTPDate AccidentOptional1
DTPDate Appliance PlacementOptional1
DTPDate Service DateOptional1
DTPDate Repricer Received DateOptional1
DN1Orthodontic Total Monthsof TreatmentOptional1
DN2Tooth StatusOptional35
PWKClaim Supplemental InformationOptional10
CN1Contract InformationOptional1
AMTPatient Amount PaidOptional1
REFPredetermination IdentificationOptional1
REFService Authorization Exception CodeOptional1
REFPayer Claim Control NumberOptional1
REFReferral NumberOptional1
REFPrior AuthorizationOptional1
REFRepriced Claim NumberOptional1
REFAdjusted Repriced Claim NumberOptional1
REFClaim Identifier For Transmission IntermediariesOptional1
K3File InformationOptional10
NTEClaim NoteOptional5
HIHealth Care Diagnosis CodeOptional1
HCPClaim Pricing Repricing InformationOptional1
Loop NM1Referring Provider NameOptional2
NM1Referring Provider NameMandatory1
PRVReferring Provider Specialty InformationOptional1
REFReferring Provider Secondary IdentificationOptional3
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationMandatory1
REFRendering Provider Secondary IdentificationOptional4
Loop NM1Service Facility Location NameOptional1
NM1Service Facility Location NameMandatory1
N3Service Facility Location AddressMandatory1
N4Service Facility Location City State Zip CodeMandatory1
REFService Facility Location Secondary IdentificationOptional3
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationMandatory1
REFAssistant Surgeon Secondary IdentificationOptional4
Loop NM1Supervising Provider NameOptional1
NM1Supervising Provider NameMandatory1
REFSupervising Provider Secondary IdentificationOptional4
Loop SBROther Subscriber InformationOptional10
SBROther Subscriber InformationMandatory1
CASClaim Level AdjustmentsOptional5
AMTCoordinationof Benefits COB Payer Paid AmountOptional1
AMTRemaining Patient LiabilityOptional1
AMTCoordinationof Benefits COB Total Non AmountOptional1
OIOther Insurance Coverage InformationMandatory1
MOAOutpatient Adjudication InformationOptional1
Loop NM1Other Subscriber NameMandatory1
NM1Other Subscriber NameMandatory1
N3Other Subscriber AddressOptional1
N4Other Subscriber City State Zip CodeMandatory1
REFOther Subscriber Secondary IdentificationOptional2
Loop NM1Other Payer NameMandatory1
NM1Other Payer NameMandatory1
N3Other Payer AddressOptional1
N4Other Payer City State ZIP CodeMandatory1
DTPClaim Check Or Remittance DateOptional1
REFOther Payer Secondary IdentifierOptional3
REFOther Payer Prior Authorization NumberOptional1
REFOther Payer Referral NumberOptional1
REFOther Payer Claim Adjustment IndicatorOptional1
REFOther Payer Predetermination IdentificationOptional1
REFOther Payer Claim Control NumberOptional1
Loop NM1Other Payer Referring ProviderOptional2
NM1Other Payer Referring ProviderMandatory1
REFOther Payer Referring Provider Secondary IdentificationMandatory3
Loop NM1Other Payer Rendering ProviderOptional1
NM1Other Payer Rendering ProviderMandatory1
REFOther Payer Rendering Provider Secondary IdentificationMandatory3
Loop NM1Other Payer Supervising ProviderOptional1
NM1Other Payer Supervising ProviderMandatory1
REFOther Payer Supervising Provider IdentificationMandatory3
Loop NM1Other Payer Billing ProviderOptional1
NM1Other Payer Billing ProviderMandatory1
REFOther Payer Billing Provider Secondary IdentificationMandatory2
Loop NM1Other Payer Service Facility LocationOptional1
NM1Other Payer Service Facility LocationMandatory1
REFOther Payer Service Facility Location Secondary IdentificationMandatory3
Loop NM1Other Payer Assistant SurgeonOptional1
NM1Other Payer Assistant SurgeonMandatory1
REFOther Payer Assistant Surgeon Secondary IdentifierMandatory3
Loop LXService Line CounterMandatory50
LXService Line CounterMandatory1
SV3Dental ServiceMandatory1
TOOTooth InformationOptional32
DTPDate Service DateOptional1
DTPDate Prior PlacementOptional1
DTPDate Appliance PlacementOptional1
DTPDate ReplacementOptional1
DTPDate Treatment StartOptional1
DTPDate Treatment CompletionOptional1
CN1Contract InformationOptional1
REFService Predetermination IdentificationOptional5
REFPrior AuthorizationOptional5
REFLine Item Control NumberOptional1
REFRepriced Claim NumberOptional1
REFAdjusted Repriced Claim NumberOptional1
REFReferral NumberOptional5
AMTSales Tax AmountOptional1
K3File InformationOptional10
HCPLine Pricing Repricing InformationOptional1
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationMandatory1
REFRendering Provider Secondary IdentificationOptional20
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationOptional1
REFAssistant Surgeon Secondary IdentificationOptional20
Loop NM1Supervising Provider NameOptional1
NM1Supervising Provider NameMandatory1
REFSupervising Provider Secondary IdentificationOptional20
Loop NM1Service Facility Location NameOptional1
NM1Service Facility Location NameMandatory1
N3Service Facility Location AddressMandatory1
N4Service Facility Location City State ZIP CodeMandatory1
REFService Facility Location Secondary IdentificationOptional20
Loop SVDLine Adjudication InformationOptional15
SVDLine Adjudication InformationMandatory1
CASLine AdjustmentOptional5
DTPLine Checkor Remittance DateMandatory1
AMTRemaining Patient LiabilityOptional1
SETransaction Set TrailerOptional1