278 Health Care Services Review: Request for Review and Response (004010X094A1)

Providers send the 278 to request prior authorization or referral review, and payers use it to respond. This is the standard X12 HIPAA 004010 spec, with 34 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 (206 KB) Generate classes
The ediFabric .NET template, class TS278. The download includes the common segments, composites and codes it needs. Download C# (53 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (114 KB)

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

ediFabric Native

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

ediFabric Native returns each 278 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 TS278. 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 278, see the 278 transaction guide.

278 structure

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

IDNameUsageMax use
STTransaction Set HeaderOptional1
Loop BHTBeginning Of Hierarchical TransactionOptional1
BHTBeginning Of Hierarchical TransactionOptional1
Loop HLUtilization Management Organization UMO LevelOptional1
HLUtilization Management Organization UMO LevelMandatory1
Loop NM1Utilization Management Organization UMO NameMandatory1
NM1Utilization Management Organization UMO NameMandatory1
Loop HLRequester LevelMandatory1
HLRequester LevelMandatory1
Loop NM1Requester NameMandatory1
NM1Requester NameMandatory1
REFRequester Supplemental IdentificationOptional8
N3Requester AddressOptional1
N4Requester City State ZIP CodeOptional1
PERRequester Contact InformationOptional1
PRVRequester Provider InformationOptional1
Loop HLSubscriber LevelMandatory1
HLSubscriber LevelMandatory1
TRNPatient Event Tracking NumberOptional2
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Date Of BirthOptional1
DTPOnset Of Current Symptoms Or Illness DateOptional1
HISubscriber DiagnosisOptional1
PWKAdditional Patient InformationOptional10
Loop NM1Subscriber Name 2010CAMandatory1
NM1Subscriber Name 2010CAMandatory1
REFSubscriber Supplemental Identification 2010CAOptional9
DMGSubscriber Demographic Information 2010CAOptional1
Loop HLDependent LevelOptional1
HLDependent LevelMandatory1
TRNPatient Event Tracking NumberOptional2
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Date Of BirthOptional1
DTPOnset Of Current Symptoms Or Illness DateOptional1
HIDependent DiagnosisOptional1
PWKAdditional Patient InformationOptional10
Loop NM1Dependent Name 2010DAMandatory1
NM1Dependent Name 2010DAMandatory1
REFDependent Supplemental Identification 2010DAOptional3
DMGDependent Demographic Information 2010DAOptional1
INSDependent Relationship 2010DAOptional1
Loop HLService Provider LevelMandatory>1
HLService Provider LevelMandatory1
MSGMessage TextOptional1
Loop NM1Service Provider NameMandatory3
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional7
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
PRVService Provider InformationOptional1
Loop HLService LevelMandatory>1
HLService LevelMandatory1
TRNService Trace NumberOptional2
UMHealth Care Services Review InformationMandatory1
REFPrevious Certification IdentificationOptional1
DTPService DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
DTPSurgery DateOptional1
HIProceduresOptional1
HSDHealth Care Services DeliveryOptional1
CRCPatient Condition InformationOptional6
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop HLService Provider LevelOptional>1
HLService Provider LevelMandatory1
MSGMessage TextOptional1
Loop NM1Service Provider NameMandatory3
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional7
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
PRVService Provider InformationOptional1
Loop HLService LevelMandatory>1
HLService LevelMandatory1
TRNService Trace NumberOptional2
UMHealth Care Services Review InformationMandatory1
REFPrevious Certification IdentificationOptional1
DTPService DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
DTPSurgery DateOptional1
HIProceduresOptional1
HSDHealth Care Services DeliveryOptional1
CRCPatient Condition InformationOptional6
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop BHTBeginning Of Hierarchical TransactionOptional1
BHTBeginning Of Hierarchical TransactionOptional1
Loop HLUtilization Management Organization UMO LevelOptional1
HLUtilization Management Organization UMO LevelMandatory1
AAARequest ValidationOptional9
Loop NM1Utilization Management Organization UMO NameMandatory1
NM1Utilization Management Organization UMO NameMandatory1
PERUtilization Management Organization UMO Contact InformationOptional1
AAAUtilization Management Organization UMO Request ValidationOptional9
Loop HLRequester LevelMandatory1
HLRequester LevelMandatory1
Loop NM1Requester NameMandatory1
NM1Requester NameMandatory1
REFRequester Supplemental IdentificationOptional8
AAARequester Request ValidationOptional9
PRVRequester Provider InformationOptional1
Loop HLSubscriber LevelMandatory1
HLSubscriber LevelMandatory1
TRNPatient Event Tracking NumberOptional3
AAASubscriber Request ValidationOptional9
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Date Of BirthOptional1
DTPOnset Of Current Symptoms Or Illness DateOptional1
HISubscriber DiagnosisOptional1
PWKAdditional Patient InformationOptional10
Loop NM1Subscriber Name 2010CAMandatory1
NM1Subscriber Name 2010CAMandatory1
REFSubscriber Supplemental Identification 2010CAOptional9
AAASubscriber Request Validation 2010CAOptional9
DMGSubscriber Demographic Information 2010CAOptional1
Loop NM1Additional Patient Information Contact Name 2010CBOptional1
NM1Additional Patient Information Contact Name 2010CBMandatory1
N3Additional Patient Information Contact Address 2010CBOptional1
N4Additional Patient Information Contact City State Zip Code 2010CBOptional1
PERAdditional Patient Information Contact Information 2010CBOptional1
Loop HLDependent LevelOptional1
HLDependent LevelMandatory1
TRNPatient Event Tracking NumberOptional3
AAADependent Request ValidationOptional9
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Date Of BirthOptional1
DTPOnset Of Current Symptoms Or Illness DateOptional1
HIDependent DiagnosisOptional1
PWKAdditional Patient InformationOptional10
Loop NM1Dependent Name 2010DAMandatory1
NM1Dependent Name 2010DAMandatory1
REFDependent Supplemental Identification 2010DAOptional3
AAADependent Request Validation 2010DAOptional9
DMGDependent Demographic Information 2010DAOptional1
INSDependent Relationship 2010DAOptional1
Loop NM1Additional Patient Information Contact Name 2010DBOptional1
NM1Additional Patient Information Contact Name 2010DBMandatory1
N3Additional Patient Information Contact Address 2010DBOptional1
N4Additional Patient Information Contact City State Zip Code 2010DBOptional1
PERAdditional Patient Information Contact Information 2010DBOptional1
Loop HLService Provider LevelMandatory>1
HLService Provider LevelMandatory1
MSGMessage TextOptional1
Loop NM1Service Provider NameMandatory3
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional7
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
AAAService Provider Request ValidationOptional9
PRVService Provider InformationOptional1
Loop HLService LevelMandatory>1
HLService LevelMandatory1
TRNService Trace NumberOptional3
AAAService Request ValidationOptional9
UMHealth Care Services Review InformationMandatory1
HCRHealth Care Services ReviewOptional1
REFPrevious Certification IdentificationOptional1
DTPService DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
DTPSurgery DateOptional1
DTPCertification Issue DateOptional1
DTPCertification Expiration DateOptional1
DTPCertification Effective DateOptional1
HIProceduresOptional1
HSDHealth Care Services DeliveryOptional1
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop NM1Additional Service Information Contact NameOptional1
NM1Additional Service Information Contact NameMandatory1
N3Additional Service Information Contact AddressOptional1
N4Additional Service Information Contact City State Zip CodeOptional1
PERAdditional Service Information Contact InformationOptional1
Loop HLService Provider LevelOptional>1
HLService Provider LevelMandatory1
MSGMessage TextOptional1
Loop NM1Service Provider NameMandatory3
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional7
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
AAAService Provider Request ValidationOptional9
PRVService Provider InformationOptional1
Loop HLService LevelMandatory>1
HLService LevelMandatory1
TRNService Trace NumberOptional3
AAAService Request ValidationOptional9
UMHealth Care Services Review InformationMandatory1
HCRHealth Care Services ReviewOptional1
REFPrevious Certification IdentificationOptional1
DTPService DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
DTPSurgery DateOptional1
DTPCertification Issue DateOptional1
DTPCertification Expiration DateOptional1
DTPCertification Effective DateOptional1
HIProceduresOptional1
HSDHealth Care Services DeliveryOptional1
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop NM1Additional Service Information Contact NameOptional1
NM1Additional Service Information Contact NameMandatory1
N3Additional Service Information Contact AddressOptional1
N4Additional Service Information Contact City State Zip CodeOptional1
PERAdditional Service Information Contact InformationOptional1
SETransaction Set TrailerOptional1