Skip to main content

837I outbound — institutional context

Outcome

An institutional claim is composed as a syntactically valid 837I — with DRG, occurrence codes, value codes, condition codes, and the right revenue-code service lines — and the per-diem grouping aligns with the program's billing period.

Prerequisites

ScopeWhat it lets you do
edi.transaction.readView transactions
billing.claim.writeOriginate institutional builds

A program configured with filingType = INSTITUTIONAL (rcm-app configuration). A trading partner with 837I outbound capability.

What 837I differs from 837P on

The envelope and most loops are identical. The differences live in:

Loop / segment837P837I
Implementation convention005010X222A1005010X223A2
BHT06 purposeCH ChargeableCH Chargeable
CLM05 POS qualifierAlways B:1Always A:1
Bill type(not used)CL103 3-character bill type
CL1(skipped)Required — admit type / source / discharge status
HI*DR(rare)DRG code + quantity + version
HI*BH(rare)Occurrence codes (74 LOA, 11 onset, etc.)
HI*BE(rare)Value codes (80 covered days, 81 non-covered, others for cost share)
HI*BG(rare)Condition codes
Service lineSV1 (proc + modifiers)SV2 (revenue code + proc + amount)

Source: packages/x12/src/outbound/claim-837i.ts.

CL1 — institutional context header

Required at the 2300 loop level for institutional claims:

CL1*1*1*30~
ElementMeaning
CL101Admission type code. 1 Emergency, 2 Urgent, 3 Elective, 4 Newborn, 5 Trauma, 9 Information not available.
CL102Admission source code. 1 Physician referral, 2 Clinic referral, 4 Transfer from hospital, 7 ER, 8 Court / law enforcement, etc.
CL103Patient discharge status. 01 Routine, 02 Discharged to short-term hospital, 03 Discharged to SNF, 06 Discharged home with home health, 20 Expired, 30 Still patient (used on interim bills), 40 Hospice — home, 41 Hospice — facility, 50 Discharged to home for hospice.

HI segments — the institutional codes

Each HI segment carries up to 12 composite code positions; multiple HI segments cluster by qualifier:

HI*BK:F329~ (principal diagnosis)
HI*BF:F100:F329:Z794~ (other diagnoses)
HI*DR:470*A0~ (DRG version A0 = 470)
HI*BH:11:D8:20251015 (occurrence — onset 2025-10-15)
*BH:74:D8:20251020 (occurrence — LOA 2025-10-20)
:RD8:20251020-20251022~ (range)
HI*BE:80:::5~ (value — 80 covered days = 5)
*BE:81:::2~ (value — 81 non-covered days = 2)
HI*BG:67~ (condition — beneficiary admitted within 3 days of LOA discharge)
QualifierMeaning
BKPrincipal diagnosis (one per claim)
BFOther diagnoses (up to 8)
BJAdmitting diagnosis
BBRPrincipal procedure ICD-10-PCS
BBQOther procedure
BRPatient reason for visit (outpatient)
DRDiagnosis-Related Group (DRG)
BHOccurrence code
BIOccurrence span
BEValue code
BGCondition code
TCTreatment code

Common occurrence codes (HI*BH)

CodeMeaning
01Auto accident
04Accident — employment-related
05Other accident
11Onset of symptoms
12Date of onset for chronically dependent illness
17Date outpatient occupational therapy plan established / reviewed
24Date insurance denied
25Date benefits terminated
27Hospice certification date
74Non-covered level of care / leave of absence

Common value codes (HI*BE)

CodeMeaning
01Most common semi-private rate
06Medicare blood deductible
08Medicare lifetime reserve days
09Medicare coinsurance days
38Lifetime reserve days
39Coinsurance days
41Black lung
80Covered days
81Non-covered days

Common condition codes (HI*BG)

CodeMeaning
02Condition is employment related
04Information only bill
05Lien has been filed
06ESRD patient in first 30 months of entitlement covered by employer group
40Same-day transfer
45Ambulance carrying patient who refused medical care
60Day outlier
61Cost outlier

SV2 — institutional service line

SV2*0301*HC:99213*100.00*UN*1~
ElementMeaning
SV2-01Revenue code (4-digit). 0301 Lab — chemistry, 0250 Pharmacy general, 0450 ER general, 1004 Inpatient psych.
SV2-02Composite procedure code (same shape as 837P SV1-01).
SV2-03Charge amount.
SV2-04Unit basis (typically UN).
SV2-05Units.
SV2-06(Non-covered charge.)
SV2-07(Tax).

The revenue code is mandatory; the procedure code is optional for some revenue codes (e.g. inpatient room-and-board often does not require HCPCS).

Per-diem grouping

The platform groups per-diem charges per the program's institutionalBillingPeriod:

PeriodWhat goes on the claim
DAILYOne claim per day.
WEEKLYAll days in a 7-day window.
MONTHLYAll days in a calendar month.
SPANAdmission through discharge as a single claim.

The grouper applies before claim build. Each grouped claim carries one SV2 per covered day (or one per revenue code per covered day, when multiple revenue codes apply).

Steps

The flow is identical to 837P (3.1) — same consumer, same routing, same companion guide application — with the generator selected based on the program's filing type. Operators rarely choose between 837P and 837I directly.

Validation

CheckExpected
Outbound tx_type = 837I record appearsYes.
CL1 segment present in 2300 with admit type / source / discharge statusYes.
HI*DR present when DRG is set on the source claimYes.
SV2 per service line, with revenue code in SV2-01Yes.
Sum of HI*BE*80 covered days + HI*BE*81 non-covered days equals stay LOSYes.

Troubleshooting

SymptomCauseFix
Built as 837P instead of 837ISource program's filingType is PROFESSIONALEdit the program in the rcm-app; rebuild the claim.
HI*BE*80 + BE*81 does not equal LOSLOA not recorded on the stayCapture the LOA on the source stay record before building.
Generator produces error "DRG not in master"DRG code typo or master out of dateConfirm the DRG; if the master is stale, refresh it (rcm-core admin).
Partner rejects with "occurrence 74 missing date"LOA recorded with one date, not a rangeEdit LOA to specify both start and end.

Next

3.3 — Submission routing rules