Skip to content

Export Format Reference ​

Detailed specifications for each export format available in EDI Paisan.


EDI File Format ​

Downloaded EDI files are valid X12 documents.

File Extension ​

  • .edi — Standard EDI extension
  • .txt — Alternative text extension
  • .x12 — X12-specific extension

All contain the same content; choose based on your system's requirements.

Formatting Options ​

OptionResult
StandardContinuous string, segments separated by ~ only
Line breaksNewline after each segment terminator

Standard Format ​

ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240120*0800*^*00501*000000001*0*P*:~GS*HC*SENDER*RECEIVER*20240120*0800*1*X*005010X222A1~ST*837*0001*005010X222A1~...

Line Break Format ​

ISA*00*          *00*          *ZZ*SENDER         *ZZ*RECEIVER       *240120*0800*^*00501*000000001*0*P*:~
GS*HC*SENDER*RECEIVER*20240120*0800*1*X*005010X222A1~
ST*837*0001*005010X222A1~
...

Character Encoding ​

  • UTF-8 — Default encoding
  • ASCII — Pure 7-bit ASCII for maximum compatibility

EDI files use ASCII characters; UTF-8 is backward-compatible.


JSON Format ​

Structured JSON representation of parsed EDI data.

Full Parse Result ​

Complete structure preserving all data and hierarchy:

json
{
  "meta": {
    "fileType": "837P",
    "version": "005010X222A1",
    "parsedAt": "2024-01-20T15:30:00Z",
    "parser": "edipaisan-1.0"
  },
  "interchanges": [
    {
      "header": {
        "ISA01": "00",
        "ISA02": "          ",
        "ISA03": "00",
        "ISA04": "          ",
        "ISA05": "ZZ",
        "ISA06": "SENDER         ",
        "ISA07": "ZZ",
        "ISA08": "RECEIVER       ",
        "ISA09": "240120",
        "ISA10": "0800",
        "ISA11": "^",
        "ISA12": "00501",
        "ISA13": "000000001",
        "ISA14": "0",
        "ISA15": "P",
        "ISA16": ":"
      },
      "controlNumber": "000000001",
      "functionalGroups": [
        {
          "header": {
            "GS01": "HC",
            "GS02": "SENDER",
            "GS03": "RECEIVER",
            "GS04": "20240120",
            "GS05": "0800",
            "GS06": "1",
            "GS07": "X",
            "GS08": "005010X222A1"
          },
          "controlNumber": "1",
          "transactions": [
            {
              "controlNumber": "0001",
              "type": "837",
              "segments": [...],
              "loops": {...}
            }
          ]
        }
      ]
    }
  ],
  "summary": {
    "interchangeCount": 1,
    "groupCount": 1,
    "transactionCount": 1,
    "segmentCount": 156,
    "claimCount": 3,
    "serviceLineCount": 12,
    "totalCharges": 4500.00
  },
  "validation": {
    "valid": true,
    "errors": [],
    "warnings": [
      {
        "segment": "NM1",
        "position": 45,
        "code": "W001",
        "message": "Middle name not provided"
      }
    ]
  }
}

Structure Only ​

Hierarchical outline without raw data:

json
{
  "fileType": "837P",
  "structure": {
    "ISA": {
      "GS": {
        "ST": {
          "Loop 1000A": ["NM1", "N3", "N4", "PER"],
          "Loop 1000B": ["NM1"],
          "Loop 2000A": {
            "HL": "Billing Provider",
            "Loop 2010AA": ["NM1", "N3", "N4", "REF"],
            "Loop 2000B": {
              "HL": "Subscriber",
              "Loop 2010BA": ["NM1", "DMG"],
              "Loop 2010BB": ["NM1"],
              "Loop 2300": {
                "CLM": "Claim",
                "DTP": "Dates",
                "Loop 2400": ["LX", "SV1", "DTP"]
              }
            }
          }
        }
      }
    }
  }
}

File Summary ​

Statistics and metadata only:

json
{
  "fileName": "claims_batch_2024-01-20.edi",
  "fileSize": 45678,
  "fileType": "837P",
  "version": "005010X222A1",
  "created": "2024-01-20T08:00:00",
  "statistics": {
    "interchanges": 1,
    "functionalGroups": 1,
    "transactions": 1,
    "claims": 47,
    "serviceLines": 123,
    "uniquePatients": 42,
    "uniqueProviders": 3,
    "totalCharges": 125000.00,
    "dateRange": {
      "earliest": "2024-01-01",
      "latest": "2024-01-15"
    }
  },
  "validation": {
    "valid": true,
    "errorCount": 0,
    "warningCount": 2
  }
}

XML Format ​

Structured XML representation of parsed EDI data. Mirrors the JSON export with identical data in XML syntax using kebab-case tag names.

Tag Naming ​

Object properties are converted from camelCase to kebab-case:

JSON PropertyXML Tag
controlNumber<control-number>
functionalGroups<functional-groups>
byteOffset<byte-offset>

Arrays use singular child tags: <segments> contains <segment> elements.

Full Parse Result ​

xml
<?xml version="1.0" encoding="UTF-8"?>
<edi-export>
  <metadata>
    <exported-at>2026-03-23T15:30:00.000Z</exported-at>
    <format>edi-parse-result</format>
    <version>1.0</version>
  </metadata>
  <data>
    <parse-result>
      <delimiters>
        <element>*</element>
        <component>:</component>
        <segment>~</segment>
      </delimiters>
      <segments>
        <segment>
          <id>ISA</id>
          <elements>
            <element>ISA</element>
            <element>00</element>
            <!-- ... -->
          </elements>
          <raw-text>ISA*00*...</raw-text>
          <index>0</index>
          <byte-offset>0</byte-offset>
          <byte-length>106</byte-length>
        </segment>
      </segments>
      <interchanges>
        <interchange>
          <control-number>000000001</control-number>
          <sender-id>SENDER</sender-id>
          <receiver-id>RECEIVER</receiver-id>
          <functional-groups>
            <functional-group>
              <control-number>1</control-number>
              <functional-id>HC</functional-id>
              <transaction-sets>
                <transaction-set>
                  <control-number>0001</control-number>
                  <type>837</type>
                </transaction-set>
              </transaction-sets>
            </functional-group>
          </functional-groups>
        </interchange>
      </interchanges>
      <errors/>
    </parse-result>
  </data>
</edi-export>

File Summary ​

xml
<?xml version="1.0" encoding="UTF-8"?>
<edi-export>
  <metadata>
    <exported-at>2026-03-23T15:30:00.000Z</exported-at>
    <format>edi-file-summary</format>
    <version>1.0</version>
  </metadata>
  <data>
    <file-summary>
      <file-name>claims_batch.edi</file-name>
      <file-size>45678</file-size>
      <counts>
        <interchanges>1</interchanges>
        <functional-groups>1</functional-groups>
        <transaction-sets>1</transaction-sets>
        <segments>156</segments>
        <claims>47</claims>
        <service-lines>123</service-lines>
      </counts>
      <validation>
        <error-count>0</error-count>
        <warning-count>2</warning-count>
        <is-valid>true</is-valid>
      </validation>
    </file-summary>
  </data>
</edi-export>

For more details and use cases, see the XML Export guide.


CSV Format ​

Tabular data for spreadsheets and databases. CSV export is currently available for 835 remittance files only.

General Specifications ​

  • Delimiter: Comma (,)
  • Text qualifier: Double quote (")
  • Line ending: CRLF (\r\n) for Windows compatibility
  • Encoding: UTF-8 with BOM (for Excel)
  • Header row: Always included

835 Payment CSV Schemas ​

Claims Export ​

ColumnDescriptionExample
claim_idProvider's claim identifierCLM001
payer_claim_idPayer's control number123456789
patient_namePatient full nameSMITH, JOHN
patient_idMember IDMEM123456
service_dateDate of service2024-01-10
billed_amountTotal charges1500.00
allowed_amountPayer's allowed1350.00
paid_amountAmount paid1200.00
patient_respPatient responsibility150.00
adjustment_totalTotal adjustments150.00
status_codeClaim status1
statusStatus descriptionProcessed Primary

Service Lines Export ​

ColumnDescriptionExample
claim_idParent claim IDCLM001
line_numberService line #1
procedure_codeCPT/HCPCS99213
modifier_1Primary modifier25
modifier_2Secondary modifier
service_dateDate of service2024-01-10
unitsQuantity1
billed_amountLine charges125.00
allowed_amountAllowed112.50
paid_amountPaid100.00
adjustment_amountAdjustments25.00

Adjustments Export ​

ColumnDescriptionExample
claim_idClaim IDCLM001
line_numberService line (0=claim level)1
group_codeAdjustment categoryCO
reason_codeCARC code45
reason_descCARC descriptionCharges exceed fee schedule
amountAdjustment amount25.00
remark_codeRARC codeN130
remark_descRARC descriptionConsult payer website

PDF Format ​

Printable reports generated via your browser's print dialog.

How it works: EDI Paisan renders reports as formatted HTML. Use your browser's Print function (Ctrl+P / Cmd+P) to save as PDF or print directly. This approach works across all browsers without requiring additional software.

Specifications ​

  • Page size: Letter (8.5" x 11")
  • Margins: 0.75" all sides
  • Font: Sans-serif (Arial/Helvetica)
  • Color: Monochrome-friendly

Report Sections ​

┌─────────────────────────────────────────────┐
│  EDI Paisan                                 │
│  [Report Type] Summary                      │
│  Generated: January 20, 2024 3:30 PM        │
└─────────────────────────────────────────────┘

Content (varies by report type) ​

Tables, summaries, and detailed breakdowns as applicable.

┌─────────────────────────────────────────────┐
│  Page 1 of 3        Generated by EDI Paisan │
└─────────────────────────────────────────────┘

Import Compatibility ​

JSON ​

  • Node.js: JSON.parse()
  • Python: json.loads()
  • Java: Jackson, Gson
  • C#: System.Text.Json

XML ​

  • Java: JAXB, DOM4J, Jackson XML
  • C#/.NET: System.Xml, XDocument
  • Python: xml.etree.ElementTree, lxml
  • XSLT: Apply transformations with any XSLT processor
  • XPath: Query with standard XPath expressions

CSV ​

  • Excel: Open directly or Data → From Text/CSV
  • Google Sheets: File → Import
  • Python: pandas.read_csv()
  • SQL: LOAD DATA INFILE or import wizard

EDI ​

  • Standard X12 parsers
  • Clearinghouse portals
  • Practice management systems

Your Friend in EDI