278 Health Care Services Review: Request for Review and Response (005010X217)

Providers send the 278 to request prior authorization or referral review, and payers use it to respond. This is the standard X12 HIPAA 005010 spec, with 44 loops and 313 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 (639 KB) Generate classes
The ediFabric .NET template, class TS278. The download includes the common segments, composites and codes it needs. Download C# (94 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (269 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 005010X217 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 2000AUtilization Management Organization UMO LevelOptional1
HLUtilization Management Organization UMO LevelMandatory1
Loop 2010AUtilization Management Organization UMO NameMandatory1
NM1Utilization Management Organization UMO NameMandatory1
Loop 2000BRequester LevelMandatory1
HLRequester LevelMandatory1
Loop 2010BRequester NameMandatory1
NM1Requester NameMandatory1
REFRequester Supplemental IdentificationOptional8
N3Requester AddressOptional1
N4Requester City State ZIP CodeOptional1
PERRequester Contact InformationOptional1
PRVRequester Provider InformationOptional1
Loop 2000CSubscriber LevelMandatory1
HLSubscriber LevelMandatory1
Loop 2010CSubscriber NameMandatory1
NM1Subscriber NameMandatory1
REFSubscriber Supplemental IdentificationOptional9
N3Subscriber AddressOptional1
N4Subscriber City State ZIP CodeOptional1
DMGSubscriber Demographic InformationOptional1
INSSubscriber RelationshipOptional1
Loop 2000DDependent LevelOptional1
HLDependent LevelMandatory1
Loop 2010DDependent NameMandatory1
NM1Dependent NameMandatory1
REFDependent Supplemental IdentificationOptional3
N3Dependent AddressOptional1
N4Dependent City State ZIP CodeOptional1
DMGDependent Demographic InformationOptional1
INSDependent RelationshipOptional1
Loop 2000EPatient Event LevelMandatory1
HLPatient Event LevelMandatory1
TRNPatient Event Tracking NumberOptional2
UMHealth Care Services Review InformationMandatory1
REFPrevious Review Authorization NumberOptional1
REFPrevious Review Administrative Reference NumberOptional1
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Dateof BirthOptional1
DTPOnsetof Current Symptomsor Illness DateOptional1
DTPEvent DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
HIPatient DiagnosisOptional1
HSDHealth Care Services DeliveryOptional1
CRCAmbulance Certification InformationOptional1
CRCChiropractic Certification InformationOptional1
CRCDurable Medical Equipment InformationOptional1
CRCOxygen Therapy Certification InformationOptional1
CRCFunctional Limitations InformationOptional1
CRCActivities Permitted InformationOptional1
CRCMental Status InformationOptional1
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Patient InformationOptional10
MSGMessage TextOptional1
Loop 2010EAPatient Event Provider NameOptional14
NM1Patient Event Provider NameMandatory1
REFPatient Event Provider Supplemental InformationOptional7
N3Patient Event Provider AddressOptional1
N4Patient Event Provider City State Zip CodeOptional1
PERPatient Event Provider Contact InformationOptional1
PRVPatient Event Provider InformationOptional1
Loop 2010EBPatient Event Transport InformationOptional5
NM1Patient Event Transport InformationMandatory1
N3Patient Event Transport Location AddressMandatory1
N4Patient Event Transport Location City State ZIP CodeMandatory1
Loop 2010ECPatient Event Other UMO NameOptional3
NM1Patient Event Other UMO NameMandatory1
REFOther UMO Denial ReasonMandatory1
DTPOther UMO Denial DateMandatory1
Loop 2000FService LevelOptional>1
HLService LevelMandatory1
TRNService Trace NumberOptional2
UMHealth Care Services Review InformationOptional1
REFPrevious Review Authorization NumberOptional1
REFPrevious Review Administrative Reference NumberOptional1
DTPService DateOptional1
SV1Professional ServiceOptional1
SV2Institutional Service LineOptional1
SV3Dental ServiceOptional1
TOOTooth InformationOptional32
HSDHealth Care Services DeliveryOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop 2010FService Provider NameOptional10
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional8
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
PRVService Provider InformationOptional1
Loop 2000EPatient Event LevelOptional1
HLPatient Event LevelMandatory1
TRNPatient Event Tracking NumberOptional2
UMHealth Care Services Review InformationMandatory1
REFPrevious Review Authorization NumberOptional1
REFPrevious Review Administrative Reference NumberOptional1
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Dateof BirthOptional1
DTPOnsetof Current Symptomsor Illness DateOptional1
DTPEvent DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
HIPatient DiagnosisOptional1
HSDHealth Care Services DeliveryOptional1
CRCAmbulance Certification InformationOptional1
CRCChiropractic Certification InformationOptional1
CRCDurable Medical Equipment InformationOptional1
CRCOxygen Therapy Certification InformationOptional1
CRCFunctional Limitations InformationOptional1
CRCActivities Permitted InformationOptional1
CRCMental Status InformationOptional1
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Patient InformationOptional10
MSGMessage TextOptional1
Loop 2010EAPatient Event Provider NameOptional14
NM1Patient Event Provider NameMandatory1
REFPatient Event Provider Supplemental InformationOptional7
N3Patient Event Provider AddressOptional1
N4Patient Event Provider City State Zip CodeOptional1
PERPatient Event Provider Contact InformationOptional1
PRVPatient Event Provider InformationOptional1
Loop 2010EBPatient Event Transport InformationOptional5
NM1Patient Event Transport InformationMandatory1
N3Patient Event Transport Location AddressMandatory1
N4Patient Event Transport Location City State ZIP CodeMandatory1
Loop 2010ECPatient Event Other UMO NameOptional3
NM1Patient Event Other UMO NameMandatory1
REFOther UMO Denial ReasonMandatory1
DTPOther UMO Denial DateMandatory1
Loop 2000FService LevelOptional>1
HLService LevelMandatory1
TRNService Trace NumberOptional2
UMHealth Care Services Review InformationOptional1
REFPrevious Review Authorization NumberOptional1
REFPrevious Review Administrative Reference NumberOptional1
DTPService DateOptional1
SV1Professional ServiceOptional1
SV2Institutional Service LineOptional1
SV3Dental ServiceOptional1
TOOTooth InformationOptional32
HSDHealth Care Services DeliveryOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop 2010FService Provider NameOptional10
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional8
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
PRVService Provider InformationOptional1
Loop BHTBeginning Of Hierarchical TransactionOptional1
BHTBeginning Of Hierarchical TransactionOptional1
Loop 2000AUtilization Management Organization UMO LevelOptional1
HLUtilization Management Organization UMO LevelMandatory1
AAARequest ValidationOptional9
Loop 2010AUtilization Management Organization UMO NameMandatory1
NM1Utilization Management Organization UMO NameMandatory1
PERUtilization Management Organization UMO Contact InformationOptional1
AAAUtilization Management Organization UMO Request ValidationOptional9
Loop 2000BRequester LevelOptional1
HLRequester LevelMandatory1
Loop 2010BRequester NameMandatory2
NM1Requester NameMandatory1
REFRequester Supplemental IdentificationOptional8
AAARequester Request ValidationOptional9
PRVRequester Provider InformationOptional1
Loop 2000CSubscriber LevelOptional1
HLSubscriber LevelMandatory1
Loop 2010CSubscriber NameMandatory1
NM1Subscriber NameMandatory1
REFSubscriber Supplemental IdentificationOptional9
N3Subscriber Mailing AddressOptional1
N4Subscriber City State ZIP CodeOptional1
AAASubscriber Request ValidationOptional9
DMGSubscriber Demographic InformationOptional1
INSSubscriber RelationshipOptional1
Loop 2000EPatient Event LevelOptional>1
HLPatient Event LevelMandatory1
TRNPatient Event Tracking NumberOptional3
AAAPatient Event Request ValidationOptional9
UMHealth Care Services Review InformationMandatory1
HCRHealth Care Services ReviewOptional1
REFAdministrative Reference NumberOptional1
REFPrevious Review Authorization NumberOptional1
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Dateof BirthOptional1
DTPOnsetof Current Symptomsor Illness DateOptional1
DTPEvent DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
DTPCertification Issue DateOptional1
DTPCertification Expiration DateOptional1
DTPCertification Effective DateOptional1
HIPatient DiagnosisOptional1
HSDHealth Care Services DeliveryOptional1
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Patient InformationOptional10
MSGMessage TextOptional1
Loop 2010EAPatient Event Provider NameOptional14
NM1Patient Event Provider NameMandatory1
REFPatient Event Provider Supplemental IdentificationOptional7
N3Patient Event Provider AddressOptional1
N4Patient Event Provider City State ZIP CodeOptional1
PERProvider Contact InformationOptional1
AAAPatient Event Provider Request ValidationOptional9
PRVPatient Event Provider InformationOptional1
Loop 2010EBAdditional Patient Information Contact NameOptional1
NM1Additional Patient Information Contact NameMandatory1
N3Additional Patient Information Contact AddressOptional1
N4Additional Patient Information Contact City State ZIP CodeOptional1
PERAdditional Patient Information Contact InformationOptional1
Loop 2010ECPatient Event Transport InformationOptional5
NM1Patient Event Transport InformationMandatory1
N3Patient Event Transport Location AddressMandatory1
N4Patient Event Transport Location City State ZIP CodeMandatory1
AAAPatient Event Transport Location Request ValidationOptional9
Loop 2000FService LevelOptional>1
HLService LevelMandatory1
TRNService Trace NumberOptional3
AAAService Request ValidationOptional9
UMHealth Care Services Review InformationOptional1
HCRHealth Care Services ReviewOptional1
REFAdministrative Reference NumberOptional1
REFPrevious Review Authorization NumberOptional1
DTPService DateOptional1
DTPCertification Issue DateOptional1
DTPCertification Expiration DateOptional1
DTPCertification Effective DateOptional1
HIRequest For Additional InformationOptional1
SV1Professional ServiceOptional1
SV2Institutional Service LineOptional1
SV3Dental ServiceOptional1
TOOTooth InformationOptional32
HSDHealth Care Services DeliveryOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop 2010FAService Provider NameOptional12
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional8
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
AAAService Provider Request ValidationOptional9
PRVService Provider InformationOptional1
Loop 2010FBAdditional Service Information Contact NameOptional1
NM1Additional Service Information Contact NameMandatory1
N3Additional Service Information Contact AddressOptional1
N4Additional Service Information Contact City State ZIP CodeMandatory1
PERAdditional Service Information Contact InformationOptional1
Loop 2000DDependent LevelOptional1
HLDependent LevelMandatory1
Loop 2010DDependent NameMandatory1
NM1Dependent NameMandatory1
REFDependent Supplemental IdentificationOptional3
N3Dependent AddressOptional1
N4Dependent City State ZIP CodeOptional1
AAADependent Request ValidationOptional9
DMGDependent Demographic InformationOptional1
INSDependent RelationshipOptional1
Loop 2000EPatient Event LevelOptional>1
HLPatient Event LevelMandatory1
TRNPatient Event Tracking NumberOptional3
AAAPatient Event Request ValidationOptional9
UMHealth Care Services Review InformationMandatory1
HCRHealth Care Services ReviewOptional1
REFAdministrative Reference NumberOptional1
REFPrevious Review Authorization NumberOptional1
DTPAccident DateOptional1
DTPLast Menstrual Period DateOptional1
DTPEstimated Dateof BirthOptional1
DTPOnsetof Current Symptomsor Illness DateOptional1
DTPEvent DateOptional1
DTPAdmission DateOptional1
DTPDischarge DateOptional1
DTPCertification Issue DateOptional1
DTPCertification Expiration DateOptional1
DTPCertification Effective DateOptional1
HIPatient DiagnosisOptional1
HSDHealth Care Services DeliveryOptional1
CL1Institutional Claim CodeOptional1
CR1Ambulance Transport InformationOptional1
CR2Spinal Manipulation Service InformationOptional1
CR5Home Oxygen Therapy InformationOptional1
CR6Home Health Care InformationOptional1
PWKAdditional Patient InformationOptional10
MSGMessage TextOptional1
Loop 2010EAPatient Event Provider NameOptional14
NM1Patient Event Provider NameMandatory1
REFPatient Event Provider Supplemental IdentificationOptional7
N3Patient Event Provider AddressOptional1
N4Patient Event Provider City State ZIP CodeOptional1
PERProvider Contact InformationOptional1
AAAPatient Event Provider Request ValidationOptional9
PRVPatient Event Provider InformationOptional1
Loop 2010EBAdditional Patient Information Contact NameOptional1
NM1Additional Patient Information Contact NameMandatory1
N3Additional Patient Information Contact AddressOptional1
N4Additional Patient Information Contact City State ZIP CodeOptional1
PERAdditional Patient Information Contact InformationOptional1
Loop 2010ECPatient Event Transport InformationOptional5
NM1Patient Event Transport InformationMandatory1
N3Patient Event Transport Location AddressMandatory1
N4Patient Event Transport Location City State ZIP CodeMandatory1
AAAPatient Event Transport Location Request ValidationOptional9
Loop 2000FService LevelOptional>1
HLService LevelMandatory1
TRNService Trace NumberOptional3
AAAService Request ValidationOptional9
UMHealth Care Services Review InformationOptional1
HCRHealth Care Services ReviewOptional1
REFAdministrative Reference NumberOptional1
REFPrevious Review Authorization NumberOptional1
DTPService DateOptional1
DTPCertification Issue DateOptional1
DTPCertification Expiration DateOptional1
DTPCertification Effective DateOptional1
HIRequest For Additional InformationOptional1
SV1Professional ServiceOptional1
SV2Institutional Service LineOptional1
SV3Dental ServiceOptional1
TOOTooth InformationOptional32
HSDHealth Care Services DeliveryOptional1
PWKAdditional Service InformationOptional10
MSGMessage TextOptional1
Loop 2010FAService Provider NameOptional12
NM1Service Provider NameMandatory1
REFService Provider Supplemental IdentificationOptional8
N3Service Provider AddressOptional1
N4Service Provider City State ZIP CodeOptional1
PERService Provider Contact InformationOptional1
AAAService Provider Request ValidationOptional9
PRVService Provider InformationOptional1
Loop 2010FBAdditional Service Information Contact NameOptional1
NM1Additional Service Information Contact NameMandatory1
N3Additional Service Information Contact AddressOptional1
N4Additional Service Information Contact City State ZIP CodeMandatory1
PERAdditional Service Information Contact InformationOptional1
SETransaction Set TrailerOptional1