# get_service_line_prices

Get Service Line Prices · v1.0.0 · hospital

A market's or a hospital's negotiated prices across a whole SERVICE LINE in ONE call: GI endoscopy, MRI, CT, cardiology, orthopedics, maternity, lab, and the rest of CMS's 70 shoppable services grouped the way buyers shop. For each code: how many hospitals price it, the market median (median of hospital medians), the 25th to 75th percentile, the low and high, and the multiple of Medicare. For each hospital: its price per code and a service-line index (its typical multiple of Medicare across the line), ranked low to high.

ARGS: service_line (call with service_line='list' to see every line and its codes) or codes (up to 30 CPT/HCPCS or MS-DRG). state (2 letters, required: prices are stored by state). Optional: hospitals (up to 25 CCNs) or cbsa (CMS's wage-index CBSA or metro division: Miami 33124, Houston 26420) to narrow the market; line_of_business (commercial default, medicare_advantage, medicaid, exchange, unspecified); billing_class (institutional default = the facility price; professional = the physician fee); limit (hospitals listed, default 25, max 100).

RULES the tool applies: posted negotiated DOLLAR rates the comparability screen calls real (never a percent of charges); one median per method (case rate, fee schedule, per diem never mixed); line of business never pooled; a DRG is a whole inpatient stay, a CPT code one procedure. These are prices hospitals post, not paid claims. For one code in depth (per payer, methodology detail) use compare_hospital_rates.

**Inputs.**
- `service_line`: 
- `codes`: 
- `state`: 
- `hospitals`: 
- `cbsa`: 
- `line_of_business`: 
- `billing_class`: 
- `limit`: 

**Known limits.**
- Prices are what hospitals post in their price-transparency files, not paid claims.
- Hospitals that post a code only as a percent of charges or with an unclear method are left out of that code.
- The service-line index compares hospitals on the codes each prices; coverage says how many of the line's codes that is.

**A real answer** (customer seat, 7.84 s, args `{"service_line":"mri","state":"TX"}`):

```json
{
 "value": {
  "found": true,
  "not_found_reason": null,
  "summary": {
   "service_line": "mri",
   "label": "MRI",
   "state": "TX",
   "line_of_business": "commercial",
   "billing_class": "institutional",
   "codes_requested": 6,
   "codes_priced": 6,
   "hospitals_priced": 253
  },
  "codes": [
   {
    "code": "70553",
    "label": "MRI scan of brain before and after contrast",
    "system": "CPT",
    "method": "fee_schedule",
    "hospitals": 248,
    "market_median": 1433.85,
    "p25": 775.24,
    "p75": 1759.26,
    "low": 32.0,
    "high": 5939.0,
    "median_x_medicare": 4.02,
    "medicare_reference": 356.43,
    "hospitals_on_other_methods": {
     "per_diem": 30,
     "case_rate": 72,
     "negotiated_dollar_unspecified": 1
    },
    "prices_set_aside_below_floor": 1
   },
   {
    "code": "72148",
    "label": "MRI scan of lower spinal canal",
    "system": "CPT",
    "method": "fee_schedule",
    "hospitals": 248,
    "market_median": 906.53,
    "p25": 492.4,
    "p75": 1435.53,
    "low": 32.0,
    "high": 4779.0,
    "median_x_medicare": 3.58,
    "medicare_reference": 243.77,
    "hospitals_on_other_methods": {
     "per_diem": 30,
     "case_rate": 72,
     "negotiated_dollar_unspecified": 1
    },
    "prices_set_aside_below_floor": 0
   },
   {
    "code": "73721",
    "label": "MRI scan of leg joint",
    "system": "CPT",
    "method": "fee_schedule",
    "hospitals": 240,
    "market_median": 908.86,
    "p25": 565.36,
    "p75": 1404.28,
    "low": 32.0,
    "high": 5120.0,
    "median_x_medicare": 3.58,
    "medicare_reference": 243.77,
    "hospitals_on_other_methods": {
     "case_rate": 69,
     "per_diem": 27,
     "negotiated_dollar_unspecified": 1
    },
    "prices_set_aside_below_floor": 0
   },
   {
    "code": "70551",
    "label": "MRI brain, without contrast",
    "system": "CPT",
    "method": "fee_schedule",
    "hospitals": 251,
    "market_median": 906.53,
    "p25": 514.77,
    "p75": 1260.74,
    "low": 32.0,
    "high": 4846.0,
    "median_x_medicare": 3.58,
    "medicare_reference": 243.77,
    "hospitals_on_other_methods": {
     "case_rate": 72,
     "per_diem": 29,
     "negotiated_dollar_unspecified": 1
    },
    "prices_set_aside_below_floor": 0
   },
   {
    "code": "72141",
    "label": "MRI neck spine",
    "system": "CPT",
    "method": "fee_schedule",
    "hospitals": 247,
    "market_median": 906.53,
    "p25": 489.76,
    "p75": 1381.93,
    "low": 32.0,
    "high": 5200.0,
    "median_x_medicare": 3.58,
    "medicare_reference": 243.77,
    "hospitals_on_other_methods": {
     "per_diem": 30,
     "case_rate": 72,
     "negotiated_dollar_unspecified": 1
    },
    "prices_set_aside_below_floor": 0
   },
   {
    "code": "73221",
    "label": "MRI shoulder or arm joint",
    "system": "CPT",
    "method": "fee_schedule",
    "hospitals": 240,
    "market_median": 906.53,
    "p25": 566.69,
    "p75": 1196.37,
    "low": 32.0,
    "high": 4830.0,
    "median_x_medicare": 3.71,
    "medicare_reference": 243.77,
    "hospitals_on_other_methods": {
     "case_rate": 69,
     "negotiated_dollar_unspecified": 1,
     "per_diem": 27
    },
    "prices_set_aside_below_floor": 0
   }
  ],
  "hospitals": [
   {
    "ccn": "452061",
    "name": "POST ACUTE MEDICAL SPECIALTY HOSPITAL OF TEXARKANA",
    "codes_priced": 6,
    "service_line_index_x_medicare": 0.78,
    "prices": {
     "73721": 197.72,
     "72148": 175.55,
     "72141": 175.13,
     "73221": 198.15,
     "70553": 305.82,
     "70551": 181.48
    }
   },
   {
    "ccn": "450144",
    "name": "PERMIAN REGIONAL MEDICAL CENTER ANDREWS COUNTY HO",
    "codes_priced": 6,
    "service_line_index_x_medicare": 0.88,
    "prices": {
     "73721": 216.53,
     "72148": 204.36,
     "72141": 203.67,
     "73221": 216.87,
     "70553": 341.6,
     "70551": 209.53
    }
   },
   {
    "ccn": "450015",
    "name": "PARKLAND HEALTH & HOSPITAL SYSTEM",
    "codes_priced": 6,
    "service_line_index_x_medicare": 0.93,
    "prices": {
     "73721": 229.72,
     "72148": 216.85,
     "72141": 216.13,
     "73221": 230.08,
     "70553": 360.92,
     "70551": 222.37
    }
   },
   {
    "ccn": "450007",
    "name": "PETERSON REGIONAL MEDICAL CENTER",
    "codes_priced": 6,
    "service_line_index_x_medicare": 0.97,
    "prices": {
     "73721": 233.04,
     "72148": 233.04,
     "72141": 233.04,
     "73221": 233.04,
     "70553": 381.85,
     "70551": 233.04
    }
   },
   {
    "ccn": "453311",
    "name": "SHRINERS HOSPITALS FOR CHILDREN",
    "codes_priced": 6,
    "service_line_index_x_medicare": 1.19,
    "prices": {
     "73721": 285.29,
     "72148": 281.65,
     "72141": 281.65,
     "73221": 285.75,
     "70553": 469.68,
     "70551": 281.65
    }
   },
   {
    "ccn": "450678",
    "name": "WHITE ROCK MEDICAL CENTER",
    "codes_priced": 6,
    "service_line_index_x_medicare": 1.22,
    "prices": {
     "73721": 461.42,
     "72148": 239.69,
     "72141": 239.69,
     "73221": 461.42,
     "70553": 350.46,
     "70551": 239.69
    }
   },
   {
    "ccn": "453035",
    "name": "Warm Springs Rehab Hospital Of San Antonio Llc",
    "codes_priced": 5,
    "service_line_index_x_medicare": 1.28,
    "prices": {
     "73721": 311.22,
     "72148": 311.22,
     "72141": 311.22,
     "70553": 455.05,
     "70551": 311.22
    }
   },
   {
    "ccn": "452062",
    "name": "POST ACUTE MEDICAL AT LULING LLC",
    "codes_priced": 4,
    "service_line_index_x_medicare": 1.28,
    "prices": {
     "72148": 311.22,
     "72141": 311.22,
     "70553": 455.05,
     "70551": 311.22
    }
   },
   {
    "ccn": "452094",
    "name": "PAM SPECIALTY HOSPITAL OF VICTORIA NORTH",
    "codes_priced": 4,
    "service_line_index_x_medicare": 1.3,
    "prices": {
     "72148": 316.79,
     "72141": 316.79,
     "70553": 463.19,
     "70551": 316.79
    }
   },
   {
    "ccn": "453048",
    "name": "PAM REHABILITATION HOSPITAL OF BEAUMONT",
    "codes_priced": 6,
    "service_line_index_x_medicare": 1.31,
    
... (truncated)
```

REST: `POST https://api.vladahealth.com/v1/tools/get_service_line_prices` with the inputs as the JSON body. MCP: the tool by name.
