# Medicare Inpatient Hospitals — by Provider and Service (granular DRG price)

`medicare_silver.fact_inpatient_by_provider_service` · Medicare Advantage, Part D, Medicaid · status live · 2,451,944 rows

The CMS Medicare Inpatient Hospitals PUF at the provider×DRG grain: per hospital (CCN) and MS-DRG, total discharges, average submitted covered charge, average total payment, and average Medicare payment. The granular per-hospital inpatient price (provider-level counterpart to fact_inpatient_payment_by_geo). FY2011-FY2024 are loaded; FY2011-FY2013 are the CMS top-100-DRG era, while FY2014+ are broader all-DRG files.

**Grain.** One row per (data_year, hospital CCN, MS-DRG) — discharges + charge + payments.

| column | type | meaning |
|---|---|---|
| data_year | int |  |
| ccn | string |  |
| org_name | string |  |
| state | string |  |
| zip5 | string |  |
| ruca | string |  |
| drg_cd | string |  |
| drg_desc | string |  |
| tot_discharges | double |  |
| avg_submitted_charge | double |  |
| avg_total_payment | double |  |
| avg_medicare_payment | double |  |
| observed_period | date |  |
| asserted_at | date |  |
| effective_period_start | date |  |
| effective_period_end | date |  |
| cms_vintage_sequence | int |  |
| parse_revision | int |  |
| parser_artifact_hash | string |  |
| source_url | string |  |
| sha256_content_hash | string |  |
| source_id | string |  |
| is_current | boolean |  |
| bronze_object_key | string |  |
| s3_version_id | string |  |
| vintage_tag | string |  |
| drug_source_version_id | string |  |

Query it: `query_substrate` with `SELECT ... FROM medicare_silver.fact_inpatient_by_provider_service WHERE ... LIMIT 100`; read `describe_data_source("medicare_silver.fact_inpatient_by_provider_service")` first.
