Skip to content

270 CSV Schema

This document defines the CSV format for generating 270 (Health Care Eligibility/Benefit Inquiry) files. Upload a CSV with member information to generate properly formatted EDI 270 transactions.


Quick Start

  1. Download a sample template
  2. Fill in your data (one row per member/service type combination)
  3. Upload to EDI Paisan's 270 Generator
  4. Download your generated 270 file

CSV Structure

Each row represents one eligibility inquiry — a combination of member + service type. To check multiple service types for the same member, use multiple rows.

Row Types

ScenarioRows Needed
1 subscriber, 1 service type1 row
1 subscriber, 3 service types3 rows
1 subscriber + 2 dependents, 1 service each3 rows
1 subscriber + 1 dependent, 2 services each4 rows

Required Fields

These fields must have values in every row:

ColumnDescriptionExample
PayerIDPayer's identifier (from payer list)BCBS01
PayerNamePayer organization nameBlue Cross Blue Shield
MemberIDSubscriber's member/policy IDMEM123456789
MemberLastNameMember's last nameSmith
MemberFirstNameMember's first nameJohn
MemberDOBMember's date of birth (MM/DD/YYYY)03/15/1985
ServiceTypeCodeService type to check (see codes)30

Why These Are Required

  • PayerID/PayerName: Identifies who to send the inquiry to
  • MemberID: Primary lookup key for the payer
  • Member Name/DOB: Verification against payer records
  • ServiceTypeCode: Specifies what coverage to check

Optional Fields

Member Information

ColumnDescriptionExampleNotes
MemberMiddleNameMiddle name or initialRobert
MemberSuffixName suffixJrJR, SR, III, etc.
MemberGenderGender codeMM=Male, F=Female, U=Unknown
MemberAddressStreet address123 Main St
MemberCityCityChicago
MemberStateState codeIL2-letter state code
MemberZipZIP code606015 or 9 digits
MemberRelationshipRelationship to subscriber18See relationship codes

Subscriber Information (when different from member)

Use these when the inquiry is for a dependent (child, spouse) and you need to include subscriber info:

ColumnDescriptionExample
SubscriberIDSubscriber's member IDMEM123456789
SubscriberLastNameSubscriber's last nameSmith
SubscriberFirstNameSubscriber's first nameJohn
SubscriberMiddleNameSubscriber's middle nameRobert
SubscriberDOBSubscriber's DOB03/15/1985
SubscriberGenderSubscriber's genderM

When to use: If MemberRelationship is anything other than 18 (Self), include subscriber fields.

Service Inquiry Details

ColumnDescriptionExampleNotes
CoverageLevelIndividual or familyINDIND=Individual, FAM=Family
IndustryCodeMedical/Dental/VisionLeave blank for medical
ServiceDateFromService date or range start01/15/2024MM/DD/YYYY
ServiceDateToService date range end01/31/2024MM/DD/YYYY

Provider Information

ColumnDescriptionExampleNotes
ProviderNPIRequesting provider's NPI123456789010 digits
ProviderNameProvider organization nameABC Medical Group
ProviderTaxIDProvider's tax ID1234567899 digits (EIN)

Tracking

ColumnDescriptionExampleNotes
TraceNumberYour reference numberTRACE001Returned in 271 for matching
GroupNumberEmployer group numberGRP123If known
PolicyNumberPolicy/contract numberPOL456If different from MemberID

Service Type Codes

The ServiceTypeCode field specifies what coverage to check:

Common Codes

CodeDescriptionUse Case
30Health Benefit Plan CoverageGeneral eligibility check — start here
1Medical CareGeneral medical services
2SurgicalSurgery coverage
3ConsultationSpecialist visits
4Diagnostic X-RayImaging coverage
5Diagnostic LabLab work coverage
33ChiropracticChiropractic services
35Dental CareDental coverage
47HospitalHospital services (general)
48Hospital - InpatientInpatient admission
50Hospital - OutpatientOutpatient services
51Hospital - ER (Accident)Emergency - accident
52Hospital - ER (Medical)Emergency - medical
86Emergency ServicesER coverage
88PharmacyPrescription drug coverage
98Professional (Physician) VisitOffice visits
UCUrgent CareUrgent care coverage

Additional Codes

CodeDescription
6Radiation Therapy
7Anesthesia
8Surgical Assistance
12Durable Medical Equipment
14Renal Supplies in the Home
23Diagnostic Dental
24Periodontics
25Restorative
26Endodontics
27Maxillofacial Prosthetics
28Adjunctive Dental Services
34Dental Crowns
36Dental Accident
37Orthodontics
38Prosthodontics
39Oral Surgery
40Preventive Dental
42Home Health Care
43Home Health Prescriptions
44Home Health Visits
45Hospice
46Respite Care
49Hospital - Room and Board
53Hospital - Ambulatory Surgical
54Long Term Care
55Major Medical
56Medically Related Transportation
57Air Transportation
58Cabulance
59Licensed Ambulance
60General Benefits
61In-vitro Fertilization
62MRI/CAT Scan
63Donor Procedures
64Acupuncture
65Newborn Care
66Pathology
67Smoking Cessation
68Well Baby Care
69Maternity
70Transplants
71Audiology Exam
72Inhalation Therapy
73Diagnostic Medical
74Private Duty Nursing
75Prosthetic Device
76Dialysis
77Otological Exam
78Chemotherapy
79Allergy Testing
80Immunizations
81Routine Physical
82Family Planning
83Infertility
84Abortion
85AIDS
87Podiatry
89Free Standing Prescription Drug
90Mail Order Prescription Drug
91Brand Name Prescription Drug
92Generic Prescription Drug
93Podiatry - Nursing Home Visits
94Podiatry - Office Visits
95Podiatry - Surgery
96Psychotherapy
97Social Work
99Other Medical
A0Combined Medical and Dental
A1Physicians Visit - Office
A2Physicians Visit - Home
A3Physicians Visit - Inpatient
A4Psychiatric
A5Psychiatric - Room and Board
A6Psychotherapy - Inpatient
A7Psychotherapy - Outpatient
A8Psychiatric - Outpatient
A9Rehabilitation
AARehabilitation - Inpatient
ABRehabilitation - Outpatient
ACOccupational Therapy
ADPhysical Medicine
AESpeech Therapy
AFSkilled Nursing Care
AGSkilled Nursing Care - Room and Board
AHSubstance Abuse
AIAlcoholism
AJDrug Addiction
AKVision
ALFrames
AMRoutine Eye Exam
ANLenses
AORoutine Exam
AQNon-Medically Necessary Physical
ARExperimental Drug Therapy
BAIndependent Medical Evaluation
BBPartial Hospitalization (Psychiatric)
BCDay Care (Psychiatric)
BDCognitive Therapy
BEMassage Therapy
BFPulmonary Rehabilitation
BGCardiac Rehabilitation
BHPediatric
BINursery
BJSkin
BKOrthopedic
BLCardiac
BMLymphatic
BNGastrointestinal
BPEndocrine
BQNeurology
BREye

Tip: If checking general eligibility, use code 30 (Health Benefit Plan Coverage). This returns overall plan information.


Relationship Codes

The MemberRelationship field uses standard X12 relationship codes:

CodeRelationship
18Self (subscriber is the member)
01Spouse
19Child
20Employee
21Unknown
39Organ Donor
40Cadaver Donor
53Life Partner
G8Other Relationship

Default: If MemberRelationship is blank, the system assumes 18 (Self).


Validation Rules

The generator validates your CSV before creating the 270 file:

Format Validation

FieldRuleError Message
MemberDOBMust be MM/DD/YYYY"MemberDOB must be in MM/DD/YYYY format"
ServiceDateFromMust be MM/DD/YYYY"ServiceDateFrom must be in MM/DD/YYYY format"
MemberGenderMust be M, F, or U"MemberGender must be M, F, or U"
ProviderNPIMust be 10 digits"ProviderNPI must be 10 digits"
MemberStateMust be 2 letters"MemberState must be 2-letter state code"
MemberZipMust be 5 or 9 digits"MemberZip must be 5 or 9 digits"

Required Field Validation

ConditionError Message
Missing PayerID"Row X: PayerID is required"
Missing MemberID"Row X: MemberID is required"
Missing MemberLastName"Row X: MemberLastName is required"
Missing MemberFirstName"Row X: MemberFirstName is required"
Missing MemberDOB"Row X: MemberDOB is required"
Missing ServiceTypeCode"Row X: ServiceTypeCode is required"

Dependent Validation

ConditionError Message
Relationship not "18" but missing SubscriberID"Row X: SubscriberID required for dependent inquiries"
Relationship not "18" but missing SubscriberLastName"Row X: SubscriberLastName required for dependent inquiries"

Date Validation

ConditionWarning Message
ServiceDateFrom in the past"Row X: Service date is in the past"
ServiceDateTo before ServiceDateFrom"Row X: ServiceDateTo must be after ServiceDateFrom"
MemberDOB in the future"Row X: MemberDOB cannot be in the future"

Sample Templates

Basic Eligibility Check

Single subscriber, general coverage check:

csv
PayerID,PayerName,MemberID,MemberLastName,MemberFirstName,MemberDOB,ServiceTypeCode
BCBS01,Blue Cross Blue Shield,MEM123456789,Smith,John,03/15/1985,30

Multiple Service Types

Check multiple coverage types for one member:

csv
PayerID,PayerName,MemberID,MemberLastName,MemberFirstName,MemberDOB,ServiceTypeCode
BCBS01,Blue Cross Blue Shield,MEM123456789,Smith,John,03/15/1985,30
BCBS01,Blue Cross Blue Shield,MEM123456789,Smith,John,03/15/1985,88
BCBS01,Blue Cross Blue Shield,MEM123456789,Smith,John,03/15/1985,35

Checks: General coverage (30), Pharmacy (88), and Dental (35)

Subscriber with Dependent

Check eligibility for subscriber and their child:

csv
PayerID,PayerName,MemberID,MemberLastName,MemberFirstName,MemberDOB,MemberRelationship,SubscriberID,SubscriberLastName,SubscriberFirstName,SubscriberDOB,ServiceTypeCode
BCBS01,Blue Cross Blue Shield,MEM123456789,Smith,John,03/15/1985,18,,,,30
BCBS01,Blue Cross Blue Shield,MEM123456790,Smith,Emma,05/20/2015,19,MEM123456789,Smith,John,03/15/1985,30

Row 1: Subscriber (John Smith), Row 2: Dependent (Emma Smith, child)

Full Example with All Fields

csv
PayerID,PayerName,MemberID,MemberLastName,MemberFirstName,MemberMiddleName,MemberDOB,MemberGender,MemberAddress,MemberCity,MemberState,MemberZip,MemberRelationship,SubscriberID,SubscriberLastName,SubscriberFirstName,SubscriberDOB,ServiceTypeCode,CoverageLevel,ServiceDateFrom,ProviderNPI,ProviderName,TraceNumber
BCBS01,Blue Cross Blue Shield,MEM123456789,Smith,John,Robert,03/15/1985,M,123 Main St,Chicago,IL,60601,18,,,,,30,IND,02/01/2024,1234567890,ABC Medical Group,TRACE001
AETNA01,Aetna,AET987654321,Johnson,Mary,Ann,06/22/1990,F,456 Oak Ave,Boston,MA,02101,18,,,,,30,IND,02/01/2024,1234567890,ABC Medical Group,TRACE002
BCBS01,Blue Cross Blue Shield,MEM123456790,Smith,Emma,,05/20/2015,F,123 Main St,Chicago,IL,60601,19,MEM123456789,Smith,John,03/15/1985,30,IND,02/01/2024,1234567890,ABC Medical Group,TRACE003

Batch Processing Tips

Grouping Recommendations

For efficiency, the generator groups inquiries:

  1. By Payer — All inquiries to the same payer go in one interchange
  2. By Provider — All inquiries from the same provider NPI stay together
  3. By Subscriber — Subscriber and their dependents are grouped

Trace Numbers

  • Use unique TraceNumber values for each row
  • The trace number appears in the 271 response
  • Helps you match responses to original inquiries

File Size Limits

TierMax RowsMax Inquiries per 270
Free5050
Pro500500
EnterpriseUnlimited1,000 per file

Error Handling

CSV Parse Errors

ErrorCauseSolution
"Unexpected end of input"Missing closing quoteCheck quoted fields
"Invalid CSV format"Inconsistent column countEnsure all rows have same columns
"Empty file"No data rowsAdd at least one data row

Validation Errors

Validation errors prevent file generation. Fix all errors before retrying.

Warnings

Warnings don't block generation but may indicate data quality issues. Review and fix if necessary.


Generated 270 Structure

Your CSV generates a 270 with this structure:

ISA...                           (Interchange Header)
  GS*HS...                       (Functional Group - HS = Eligibility)
    ST*270...                    (Transaction Set Header)
      BHT*0022*13*...            (Beginning of Hierarchical Transaction)
      HL*1**20*1~                (Information Source - Provider)
        NM1*1P*...               (Provider Name/NPI)
      HL*2*1*21*1~               (Information Receiver - Payer)
        NM1*PR*...               (Payer Name/ID)
      HL*3*2*22*1~               (Subscriber)
        TRN*1*{TraceNumber}*...  (Trace Number)
        NM1*IL*...               (Subscriber Name/ID)
        DMG*D8*{DOB}*{Gender}~   (Demographics)
        DTP*291*D8*{Date}~       (Service Date)
        EQ*{ServiceTypeCode}~    (Eligibility Inquiry)
      HL*4*3*23*0~               (Dependent, if any)
        TRN*1*{TraceNumber}*...
        NM1*03*...               (Dependent Name)
        ...
    SE...                        (Transaction Set Trailer)
  GE...                          (Functional Group Trailer)
IEA...                           (Interchange Trailer)

Downloadable Templates


Your Friend in EDI