837D Health Care Claim: Dental (004010X097A1)

Dental practices send the 837D to submit dental claims and predeterminations to payers and clearinghouses. This is the standard X12 HIPAA 004010 spec, with 43 loops and 203 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 (196 KB) Generate classes
The ediFabric .NET template, class TS837D. The download includes the common segments, composites and codes it needs. Download C# (54 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (110 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 004010X097A1 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
REFTransmission Type IdentificationMandatory1
Loop NM1Submitter NameMandatory1
NM1Submitter NameMandatory1
PERSubmitter Contact InformationMandatory2
Loop NM1Receiver NameMandatory1
NM1Receiver NameMandatory1
Loop HLBilling Payto Provider Hierarchical LevelMandatory>1
HLBilling Payto Provider Hierarchical LevelMandatory1
PRVBilling Payto 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 Number 2010AAOptional5
REFClaim Submitter Credit Debit Card Information 2010AAOptional8
Loop NM1Payto Providers Name 2010ABOptional1
NM1Payto Providers Name 2010ABMandatory1
N3Payto Providers Address 2010ABMandatory1
N4Payto Provider City State Zip 2010ABMandatory1
REFPayto Provider Secondary Identification Number 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 NM1Payer Name 2010BBMandatory1
NM1Payer Name 2010BBMandatory1
N3Payer Address 2010BBOptional1
N4Payer City State ZIP Code 2010BBOptional1
REFPayer Secondary Identification Number 2010BBOptional3
Loop NM1Credit Debit Card Holder Name 2010BCOptional1
NM1Credit Debit Card Holder Name 2010BCMandatory1
REFCredit Debit Card Information 2010BCOptional3
Loop CLMClaim InformationOptional100
CLMClaim InformationMandatory1
DTPDate AdmissionOptional1
DTPDate DischargeOptional1
DTPDate ReferralOptional1
DTPDate AccidentOptional1
DTPDate Appliance PlacementOptional5
DTPDate ServiceOptional1
DN1Orthodontic Total Months Of TreatmentOptional1
DN2Tooth StatusOptional35
PWKClaim Supplemental InformationOptional10
AMTPatient Amount PaidOptional1
AMTCredit Debit Card Maximum AmountOptional1
REFPredetermination IdentificationOptional5
REFService Authorization Exception CodeOptional1
REFOriginal Reference Number ICNDCNOptional1
REFPrior Authorization Or Referral NumberOptional2
REFClaim Identification Number For Clearinghouses And Other Transmission IntermediariesOptional1
NTEClaim NoteOptional20
Loop NM1Referring Provider NameOptional2
NM1Referring Provider NameMandatory1
PRVReferring Provider Specialty InformationOptional1
REFReferring Provider Secondary IdentificationOptional5
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationOptional1
REFRendering Provider Secondary IdentificationOptional5
Loop NM1Service Facility LocationOptional1
NM1Service Facility LocationMandatory1
REFService Facility Location Secondary IdentificationOptional5
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationOptional1
REFAssistant Surgeon Secondary IdentificationOptional1
Loop SBROther Subscriber InformationOptional10
SBROther Subscriber InformationMandatory1
CASClaim AdjustmentOptional5
AMTCoordination Of Benefits COB Payer Paid AmountOptional1
AMTCoordination Of Benefits COB Approved AmountOptional1
AMTCoordination Of Benefits COB Allowed AmountOptional1
AMTCoordination Of Benefits COB Patient Responsibility AmountOptional1
AMTCoordination Of Benefits COB Covered AmountOptional1
AMTCoordination Of Benefits COB Discount AmountOptional1
AMTCoordination Of Benefits COB Patient Paid AmountOptional1
DMGOther Insured Demographic InformationOptional1
OIOther Insurance Coverage InformationMandatory1
Loop NM1Other Subscriber NameMandatory1
NM1Other Subscriber NameMandatory1
N3Other Subscriber AddressOptional1
N4Other Subscriber City State Zip CodeOptional1
REFOther Subscriber Secondary IdentificationOptional3
Loop NM1Other Payer NameMandatory1
NM1Other Payer NameMandatory1
PEROther Payer Contact InformationOptional2
DTPClaim Paid DateOptional1
REFOther Payer Secondary IdentifierOptional3
REFOther Payer Prior Authorization Or Referral NumberOptional2
REFOther Payer Claim Adjustment IndicatorOptional1
Loop NM1Other Payer Patient InformationOptional1
NM1Other Payer Patient InformationMandatory1
REFOther Payer Patient IdentificationOptional3
Loop NM1Other Payer Referring ProviderOptional1
NM1Other Payer Referring ProviderMandatory1
REFOther Payer Referring Provider IdentificationOptional3
Loop NM1Other Payer Rendering ProviderOptional1
NM1Other Payer Rendering ProviderMandatory1
REFOther Payer Rendering Provider IdentificationOptional3
Loop LXLine CounterMandatory50
LXLine CounterMandatory50
SV3Dental ServiceMandatory1
TOOTooth InformationOptional32
DTPDate ServiceOptional1
DTPDate Prior PlacementOptional1
DTPDate Appliance PlacementOptional1
DTPDate ReplacementOptional1
QTYAnesthesia QuantityOptional5
REFService Predetermination IdentificationOptional1
REFPrior Authorization Or Referral NumberOptional2
REFLine Item Control NumberOptional1
AMTApproved AmountOptional1
AMTSales Tax AmountOptional1
NTELine NoteOptional10
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationOptional1
REFRendering Provider Secondary IdentificationOptional5
Loop NM1Other Payer Referral NumberOptional1
NM1Other Payer Referral NumberMandatory1
REFOther Payer Prior Authorization Or Referral NumberOptional2
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationOptional1
REFAssistant Surgeon Secondary IdentificationOptional1
Loop SVDLine Adjudication InformationOptional25
SVDLine Adjudication InformationMandatory1
CASService AdjustmentOptional99
DTPLine Adjudication DateMandatory1
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
DTPDate AdmissionOptional1
DTPDate DischargeOptional1
DTPDate ReferralOptional1
DTPDate AccidentOptional1
DTPDate Appliance PlacementOptional5
DTPDate ServiceOptional1
DN1Orthodontic Total Months Of TreatmentOptional1
DN2Tooth StatusOptional35
PWKClaim Supplemental InformationOptional10
AMTPatient Amount PaidOptional1
AMTCredit Debit Card Maximum AmountOptional1
REFPredetermination IdentificationOptional5
REFService Authorization Exception CodeOptional1
REFOriginal Reference Number ICNDCNOptional1
REFPrior Authorization Or Referral NumberOptional2
REFClaim Identification Number For Clearinghouses And Other Transmission IntermediariesOptional1
NTEClaim NoteOptional20
Loop NM1Referring Provider NameOptional2
NM1Referring Provider NameMandatory1
PRVReferring Provider Specialty InformationOptional1
REFReferring Provider Secondary IdentificationOptional5
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationOptional1
REFRendering Provider Secondary IdentificationOptional5
Loop NM1Service Facility LocationOptional1
NM1Service Facility LocationMandatory1
REFService Facility Location Secondary IdentificationOptional5
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationOptional1
REFAssistant Surgeon Secondary IdentificationOptional1
Loop SBROther Subscriber InformationOptional10
SBROther Subscriber InformationMandatory1
CASClaim AdjustmentOptional5
AMTCoordination Of Benefits COB Payer Paid AmountOptional1
AMTCoordination Of Benefits COB Approved AmountOptional1
AMTCoordination Of Benefits COB Allowed AmountOptional1
AMTCoordination Of Benefits COB Patient Responsibility AmountOptional1
AMTCoordination Of Benefits COB Covered AmountOptional1
AMTCoordination Of Benefits COB Discount AmountOptional1
AMTCoordination Of Benefits COB Patient Paid AmountOptional1
DMGOther Insured Demographic InformationOptional1
OIOther Insurance Coverage InformationMandatory1
Loop NM1Other Subscriber NameMandatory1
NM1Other Subscriber NameMandatory1
N3Other Subscriber AddressOptional1
N4Other Subscriber City State Zip CodeOptional1
REFOther Subscriber Secondary IdentificationOptional3
Loop NM1Other Payer NameMandatory1
NM1Other Payer NameMandatory1
PEROther Payer Contact InformationOptional2
DTPClaim Paid DateOptional1
REFOther Payer Secondary IdentifierOptional3
REFOther Payer Prior Authorization Or Referral NumberOptional2
REFOther Payer Claim Adjustment IndicatorOptional1
Loop NM1Other Payer Patient InformationOptional1
NM1Other Payer Patient InformationMandatory1
REFOther Payer Patient IdentificationOptional3
Loop NM1Other Payer Referring ProviderOptional1
NM1Other Payer Referring ProviderMandatory1
REFOther Payer Referring Provider IdentificationOptional3
Loop NM1Other Payer Rendering ProviderOptional1
NM1Other Payer Rendering ProviderMandatory1
REFOther Payer Rendering Provider IdentificationOptional3
Loop LXLine CounterMandatory50
LXLine CounterMandatory50
SV3Dental ServiceMandatory1
TOOTooth InformationOptional32
DTPDate ServiceOptional1
DTPDate Prior PlacementOptional1
DTPDate Appliance PlacementOptional1
DTPDate ReplacementOptional1
QTYAnesthesia QuantityOptional5
REFService Predetermination IdentificationOptional1
REFPrior Authorization Or Referral NumberOptional2
REFLine Item Control NumberOptional1
AMTApproved AmountOptional1
AMTSales Tax AmountOptional1
NTELine NoteOptional10
Loop NM1Rendering Provider NameOptional1
NM1Rendering Provider NameMandatory1
PRVRendering Provider Specialty InformationOptional1
REFRendering Provider Secondary IdentificationOptional5
Loop NM1Other Payer Referral NumberOptional1
NM1Other Payer Referral NumberMandatory1
REFOther Payer Prior Authorization Or Referral NumberOptional2
Loop NM1Assistant Surgeon NameOptional1
NM1Assistant Surgeon NameMandatory1
PRVAssistant Surgeon Specialty InformationOptional1
REFAssistant Surgeon Secondary IdentificationOptional1
Loop SVDLine Adjudication InformationOptional25
SVDLine Adjudication InformationMandatory1
CASService AdjustmentOptional99
DTPLine Adjudication DateMandatory1
SETransaction Set TrailerOptional1