# EDI X12 837I Institutional Claim Parser & Free Validator
> Automated institutional claim parser for hospital inpatient and outpatient EDI 837I files with UB-04 revenue code mapping.

- **Canonical URL:** https://stanzaapi.com/tools/x12-parser/transaction/837i-institutional-claim
- **Governing Standard:** ANSI ASC X12 Standards (005010) (Accredited Standards Committee X12 / HIPAA 5010)
- **Latency:** <4ms Edge
- **Privacy:** In-memory execution only (zero data stored or logged)

## Technical Overview & Governing Rules
The ANSI X12 837I transaction set is utilized by hospitals, skilled nursing facilities, inpatient hospices, and institutional providers to bill health plans.

Captures SV2 institutional service lines containing 4-digit UB-04 Revenue Codes, HCPCS rates, unit measures, and total revenue charges.

Extracts DRG (Diagnosis Related Group) classification codes, admission date/hour, discharge status codes (DTP/CL1), and principal/secondary surgical procedure codes.

## Specification Matrix
| Segment | Description | Key Elements Extracted | Usage |
| --- | --- | --- | --- |
| CL1 | Claim Codes | CL101 (Admission Type), CL102 (Admission Source), CL103 (Discharge Status) | Institutional mandatory |
| DTP | Date or Time Period | DTP01 (435=Admission, 096=Discharge), DTP03 (Date Timestamp) | Length of stay tracking |
| SV2 | Institutional Service Line | SV201 (Revenue Code: 0250), SV202 (HC:CPT), SV203 (Charge) | Hospital charge breakdown |
| HI | Institutional Diagnosis & DRG | HI01-1 (DR: DRG Code), HI02-1 (BJ: Principal ICD-10-PCS Procedure) | Inpatient reimbursement |

## Standard JSON Response Model
```json
{
  "transactionSet": "837I",
  "facility": {
    "name": "METROPOLITAN HOSPITAL",
    "npi": "1447283940"
  },
  "claim": {
    "accountNumber": "HOSP-2026-99",
    "admissionDate": "20260815",
    "dischargeDate": "20260818",
    "admissionType": "1",
    "dischargeStatus": "01",
    "revenueLines": [
      {
        "revenueCode": "0250",
        "procedureCode": "99223",
        "chargeAmount": 3200,
        "units": 3
      }
    ]
  }
}
```

## Frequently Asked Questions & Edge Cases
### Q: Does this handle both inpatient and outpatient 837I claims?
**A:** Yes, both inpatient (UB-04 11X/12X) and outpatient (UB-04 13X/85X) billing structures are fully supported.

### Q: Are UB-04 revenue codes normalized?
**A:** Yes, 3-digit and 4-digit revenue codes (e.g. 0250 Pharmacy, 0450 Emergency Room) are extracted into clean string attributes.
