# Hospital financials

> Multi-year Medicare cost-report financials, IPPS payment profile, HAC and VBP adjustments, inpatient service areas and outpatient APC volume per hospital.

Source: https://openpipe.health/docs/api/hospital-financials/

These endpoints extend [Hospitals and systems](https://openpipe.health/docs/api/hospital-intel.md) with five fiscal years of Medicare cost-report financials (FY 2020–2024), the FY 2027 IPPS payment profile (case mix index, wage index, teaching and DSH status), Medicare pay-for-performance adjustments (HAC Reduction Program and Hospital Value-Based Purchasing), Medicare inpatient service areas by patient ZIP code, and Medicare outpatient volume by comprehensive APC.

Every endpoint on this page costs 1 credit, charged only when the call succeeds. A `400` or `404` is free.

The same financial, payment-profile, adjustment and top-ZIP sections are also included directly on [`GET /api/facilities/:ccn/intel`](https://openpipe.health/docs/api/hospital-intel.md#get-hospital-intel), and financial, IPPS and HAC filters are available on [`GET /api/hospital-intel`](https://openpipe.health/docs/api/hospital-intel.md#search-hospitals-by-ehr-rating-system-or-drg). For nursing home (`snf_financials`) and home health agency (`hha_financials`) cost reports, use [Ask](https://openpipe.health/docs/api/ask.md).

## Get hospital financials, IPPS profile and adjustments

```http
GET /api/facilities/:ccn/financials
```

Returns up to five fiscal years of Medicare cost-report financials (newest first), the hospital's IPPS payment profile, and its HAC and VBP pay-for-performance results. Costs 1 credit, charged only if the hospital exists.

A CCN shorter than six characters is left-padded with zeros. A CCN that is not 1 to 6 letters or digits returns `400` with `CCN must be up to 6 letters or digits.` There are no query parameters.

### Response

| Field | Contents |
|---|---|
| `ccn` | The CCN, padded and upper-cased. |
| `financials` | `null` if the hospital has no cost reports on file; otherwise an object with `latest`, `history` and `revenue_change`. |
| `financials.latest` | The newest fiscal year in full: dates, `period_days`, `partial_year` (`true` when `period_days < 360`), `beds`, `fte`, `total_discharges`, `occupancy_rate`, `net_patient_revenue`, `operating_expense`, `other_income`, `net_income`, computed `operating_margin` and `total_margin`, `payer_mix` (`medicare_day_share`, `medicaid_day_share`, `other_day_share`, `medicare_discharge_share`, `medicaid_discharge_share`), `uncompensated_care`, `labor`, `liquidity` and `balance_sheet`. |
| `financials.history` | Up to five fiscal years, newest first (the latest included), with period dates, beds, discharges, revenue, expenses, net income and margins. |
| `financials.revenue_change` | Change in net patient revenue (`pct` and `annualized_pct`) between the oldest and newest full-year reports (`period_days >= 360`), or `null` when fewer than two full years exist. |
| `payment_profile` | The hospital's FY 2027 IPPS Impact File row (`case_mix_index`, `wage_index`, `medicare_cases`, `provider_type`, `urban_rural`, `control_type`, `is_teaching`, `resident_to_bed_ratio`, `ime_operating_adjustment`, `dsh_patient_pct`, `dsh_operating_adjustment`, `uncompensated_care_per_claim`, `quality_reporting_reduction`, `ehr_reduction`, `is_medicare_dependent`), or `null` for hospitals not in the IPPS Impact File (critical access, psychiatric, rehabilitation, long-term care, children's). Maryland's 43 hospitals are in it even though Maryland pays them under its own all-payer model. |
| `adjustments` | Array of HAC (`program: "HAC"`) and Value-Based Purchasing (`program: "VBP"`) rows ordered by program and fiscal year descending: `fiscal_year`, `score`, `penalized`, `adjustment_factor`, `adjustment_pct`, and VBP domain scores (`vbp_clinical_outcomes_score`, `vbp_person_community_score`, `vbp_safety_score`, `vbp_efficiency_score`). |
| `sql` | The three statements, keyed `financials`, `payment_profile` and `adjustments`, as a read-only [receipt](https://openpipe.health/docs/receipts.md). |
| `sources` | `hospital_financials`, `hospital_ipps`, `hospital_adjustments`. |

### Example

```sh
curl "$OPH_API/api/facilities/360180/financials" \
  -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "ccn": "360180",
  "financials": {
    "latest": {
      "fiscal_year": 2024,
      "fiscal_year_begin": "2024-01-01",
      "fiscal_year_end": "2024-12-31",
      "period_days": 366,
      "partial_year": false,
      "beds": 1318,
      "fte": 28094,
      "total_discharges": 53780,
      "occupancy_rate": 0.8342,
      "net_patient_revenue": 7426526583,
      "operating_expense": 9185631976,
      "other_income": 2186927224,
      "net_income": 427821831,
      "operating_margin": -0.2369,
      "total_margin": 0.0445,
      "payer_mix": {
        "medicare_day_share": 0.2112,
        "medicaid_day_share": 0.0419,
        "other_day_share": 0.7469,
        "medicare_discharge_share": 0.2051,
        "medicaid_discharge_share": 0.0147
      },
      "uncompensated_care": { "cost": 93845264, "charity_care_cost": 75240989, "bad_debt_expense": 83938851, "share_of_operating_expense": 0.0102 },
      "labor": { "total_salaries": 3623672200, "contract_labor": 98838850, "contract_labor_share_of_salaries": 0.0273 },
      "liquidity": { "cash": 233965211, "temporary_investments": null, "days_cash_on_hand": 9.5 },
      "balance_sheet": { "total_assets": 15217423680, "total_liabilities": 6320517197, "fund_balance": 8896906483 }
    },
    "history": [
      { "fiscal_year": 2024, "fiscal_year_end": "2024-12-31", "period_days": 366, "partial_year": false, "beds": 1318, "total_discharges": 53780, "net_patient_revenue": 7426526583, "operating_expense": 9185631976, "net_income": 427821831, "operating_margin": -0.2369, "total_margin": 0.0445 },
      { "fiscal_year": 2023, "fiscal_year_end": "2023-12-31", "period_days": 365, "partial_year": false, "beds": 1288, "total_discharges": 53274, "net_patient_revenue": 6960527823, "operating_expense": 8323985995, "net_income": 634706998, "operating_margin": -0.1959, "total_margin": 0.0708 }
    ],
    "revenue_change": { "from_fiscal_year": 2020, "to_fiscal_year": 2024, "pct": 41.7, "annualized_pct": 9.1 }
  },
  "payment_profile": {
    "fiscal_year": 2027,
    "case_mix_index": 3.4137,
    "wage_index": 0.8888,
    "medicare_cases": 11233,
    "provider_type": "Rural Referral Center",
    "urban_rural": "other urban",
    "control_type": "voluntary non-profit",
    "is_teaching": true,
    "resident_to_bed_ratio": 0.6474,
    "ime_operating_adjustment": 0.30248,
    "dsh_patient_pct": 0.2486,
    "dsh_operating_adjustment": 0.02431,
    "uncompensated_care_per_claim": 1213.76,
    "quality_reporting_reduction": false,
    "ehr_reduction": false,
    "is_medicare_dependent": false
  },
  "adjustments": [
    { "program": "HAC", "fiscal_year": 2026, "score": 0.5695, "penalized": true, "adjustment_factor": 0.99, "adjustment_pct": -1, "vbp_clinical_outcomes_score": null, "vbp_person_community_score": null, "vbp_safety_score": null, "vbp_efficiency_score": null },
    { "program": "VBP", "fiscal_year": 2027, "score": null, "penalized": false, "adjustment_factor": 1.0073691969, "adjustment_pct": 0.7369, "vbp_clinical_outcomes_score": null, "vbp_person_community_score": null, "vbp_safety_score": null, "vbp_efficiency_score": null },
    { "program": "VBP", "fiscal_year": 2026, "score": 40.3333, "penalized": false, "adjustment_factor": 1.0078139054, "adjustment_pct": 0.7814, "vbp_clinical_outcomes_score": 17.0833, "vbp_person_community_score": 10.75, "vbp_safety_score": 5, "vbp_efficiency_score": 7.5 }
  ],
  "sql": { "financials": "SELECT fiscal_year, ...", "payment_profile": "SELECT fiscal_year, ...", "adjustments": "SELECT program, ..." },
  "sources": ["hospital_financials", "hospital_ipps", "hospital_adjustments"],
  "ms": 24,
  "usage": { "credits": 1, "creditsUsed": 1, "creditsLimit": 5000, "txid": "11201" }
}
```

An unknown CCN returns `404` with `No hospital or facility with that CCN.`

## List a hospital's inpatient service area

```http
GET /api/facilities/:ccn/service-area
```

Returns the patient residence ZIP codes that send Medicare inpatients to one hospital, ordered by discharges descending. Costs 1 credit, charged only if the hospital exists.

The top 15 ZIP codes are also returned in the `service_area` array of [`GET /api/facilities/:ccn/intel`](https://openpipe.health/docs/api/hospital-intel.md#get-hospital-intel).

### Parameters

| Name | Type | Description |
|---|---|---|
| `limit` | number | 1 to 200. Default 25. |
| `offset` | number | Rows to skip, 0 to 100,000. Default 0. |

### Example

```sh
curl "$OPH_API/api/facilities/360180/service-area?limit=2" \
  -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "ccn": "360180",
  "total": 324,
  "published_discharges": 20132,
  "limit": 2,
  "offset": 0,
  "rows": [
    {
      "zip5": "44120",
      "year": 2025,
      "discharges": 536,
      "days": 3568,
      "charges": "50986821",
      "hospital_share": 0.0266,
      "zip_share": 0.2613,
      "zip_rank": 1
    },
    {
      "zip5": "44108",
      "year": 2025,
      "discharges": 473,
      "days": 3653,
      "charges": "52770456",
      "hospital_share": 0.0235,
      "zip_share": 0.357,
      "zip_rank": 2
    }
  ],
  "sql": "SELECT zip5, year, discharges, days, round(charges::numeric, 0) AS charges, hospital_share, zip_share, zip_rank FROM hospital_service_area WHERE ccn = $1 ORDER BY discharges DESC, zip5 LIMIT 2 OFFSET 0",
  "params": ["360180"],
  "sources": ["hospital_service_area"],
  "ms": 18,
  "usage": { "credits": 1, "creditsUsed": 2, "creditsLimit": 5000, "txid": "11202" }
}
```

Things to know:

- `hospital_share` is this ZIP's share of the hospital's published Medicare discharges (where its patients come from).
- `zip_share` is this hospital's share of all published Medicare discharges for residents of that ZIP (its local market share).
- Calendar year 2025; includes both Medicare fee-for-service and Medicare Advantage inpatient stays. Pairs with fewer than 11 discharges are suppressed by CMS and excluded, so `published_discharges` is a floor and both shares are computed over unsuppressed pairs only.

## List a hospital's outpatient APC volume

```http
GET /api/facilities/:ccn/apcs
```

Returns Medicare Part B fee-for-service outpatient volume and payments for one hospital by comprehensive Ambulatory Payment Classification (APC), most services first. Costs 1 credit, charged only if the hospital exists.

### Parameters

| Name | Type | Description |
|---|---|---|
| `limit` | number | 1 to 200. Default 25. |
| `offset` | number | Rows to skip, 0 to 100,000. Default 0. |

### Example

```sh
curl "$OPH_API/api/facilities/360180/apcs?limit=1" \
  -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "ccn": "360180",
  "total": 63,
  "total_services": 24950,
  "limit": 1,
  "offset": 0,
  "rows": [
    {
      "apc_code": "5372",
      "apc_description": "Level 2 Urology and Related Services",
      "year": 2024,
      "beneficiaries": 2856,
      "services": 4918,
      "avg_submitted_charges": "2553",
      "avg_allowed_amount": "522",
      "avg_medicare_payment": "411",
      "total_medicare_payment": "2019973"
    }
  ],
  "sql": "SELECT apc_code, apc_description, year, beneficiaries, services, ... FROM hospital_apcs WHERE ccn = $1 ORDER BY services DESC, apc_code LIMIT 1 OFFSET 0",
  "params": ["360180"],
  "sources": ["hospital_apcs"],
  "ms": 15,
  "usage": { "credits": 1, "creditsUsed": 3, "creditsLimit": 5000, "txid": "11203" }
}
```

Calendar year 2024, covering OPPS hospitals and the comprehensive APCs CMS publishes (surgical and procedural episodes such as observation stays, musculoskeletal procedures, endovascular procedures and intraocular procedures). Rows with fewer than 11 services are suppressed by CMS and excluded; rows where CMS hides only the beneficiary count carry `beneficiaries: null`.

## Filtering hospital search by financials, IPPS and HAC

[`GET /api/hospital-intel`](https://openpipe.health/docs/api/hospital-intel.md#search-hospitals-by-ehr-rating-system-or-drg) accepts these financial, payment-profile and pay-for-performance filters:

| Name | Type | Description |
|---|---|---|
| `min_net_revenue` | number | Minimum net patient revenue in USD from the latest cost report, 0 to 1e12. |
| `max_net_revenue` | number | Maximum net patient revenue in USD from the latest cost report. Must be >= `min_net_revenue`. |
| `min_operating_margin` | number | Minimum operating margin as a fraction (`0.05` = 5%), latest fiscal year. Patient revenue only. |
| `max_operating_margin` | number | Maximum operating margin as a fraction (`-0.1` = 10% operating loss), latest fiscal year. Must be >= `min_operating_margin`. |
| `max_total_margin` | number | Maximum total margin as a fraction (`0` = lost money overall), latest fiscal year. |
| `min_medicare_share` | number | Minimum Medicare share of inpatient days, `0` to `1`, latest fiscal year. |
| `min_medicaid_share` | number | Minimum Medicaid share of inpatient days, `0` to `1`, latest fiscal year. |
| `min_case_mix_index` | number | Minimum Medicare case mix index, `0` to `10` (IPPS hospitals only). |
| `teaching` | string | `true` for teaching hospitals (`resident_to_bed_ratio > 0`), `false` for non-teaching (IPPS hospitals only). |
| `hac_penalized` | string | `true` for hospitals penalized 1% under the latest HAC Reduction Program year; `false` for scored hospitals not penalized. |
| `sort` | string | Also accepts `margin` (operating margin ascending, worst first) and `case_mix` (case mix index descending). |

The financial, IPPS and adjustment tables are joined only when a filter or sort requests them, so basic searches stay fast.

## MCP access

The [MCP server](https://openpipe.health/docs/mcp.md) exposes all of these through the existing hospital tools:

- `search_hospital_intel` accepts the same financial, IPPS and HAC filters as `GET /api/hospital-intel` (typed JSON numbers and booleans).
- `get_hospital_intel` accepts `section: "summary"` (includes `financials`, `payment_profile`, `adjustments`, and top 15 `service_area` ZIPs), `section: "financials"`, `section: "service_area"` (with `limit`, `offset`) and `section: "apcs"` (with `limit`, `offset`).

## Caveats

- **Operating margin vs. total margin.** `operating_margin = (net_patient_revenue - operating_expense) / net_patient_revenue` covers patient care only. Academic medical centers often show strongly negative operating margins while posting positive `total_margin` because grants, research and investment income sit in `other_income`. Both are `null` unless operating expense is above zero and at most ten times net patient revenue, and `total_margin` is also `null` outside -9 to 1: past those bounds the figure is a keying error or a hospital funded by appropriations (state psychiatric hospitals), and would otherwise top every `sort=margin` list.
- **Fiscal year alignment.** `fiscal_year` is the federal fiscal year (October to September) in which the hospital's reporting period *begins*, matching CMS's file naming. Check `partial_year` (`period_days < 360`) before comparing dollar totals across years.
- **System-held cash.** Hospitals in a health system frequently report zero cash at the individual CCN level because cash is held at the parent level, making `days_cash_on_hand` a floor.
- **Medicare day share is fee-for-service.** Title XVIII days on the cost report exclude Medicare Advantage for most hospitals, so `medicare_day_share` has trended downward as MA penetration rose; commercial, MA and self-pay sit in `other_day_share`.
- **IPPS coverage and reclassification.** `payment_profile` covers the ~3,075 acute-care IPPS hospitals. Some large urban hospitals appear with `provider_type: "Rural Referral Center"` because they hold CMS rural reclassification status.
- **HAC vs. VBP score direction.** On HAC, a *higher* score is worse (worst quartile receives `adjustment_factor: 0.99`, a 1% cut). On VBP, a *higher* Total Performance Score (0–100) is better; `adjustment_factor < 1` is a net cut and `> 1` is a net bonus. FY 2027 VBP rows carry published factors (`Table 16B`) before FY 2027 domain scores are published (`score: null`).
