List one payer's rates for a code across hospitals
list_code_payer_hospitalsOne payer's rate for a (code_type, code) at each hospital, one row per hospital and billing class/methodology/setting, paginated, rolled up across the payer's plans there. Good for 'which hospital is cheapest for Aetna members'. Defaults/caps page_size at 500; includes total_count. Backed by the hospital-prices serving snapshot; fails with UNAVAILABLE until the server has opened one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code_type": "<code_type>",
"code": "<code>",
"payer_slug": "<payer_slug>"
},
"name": "list_code_payer_hospitals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| state | No | Optional two-letter USPS state code (e.g. "TX", case-insensitive): only hospitals with a location in that state are counted. A hospital in several states counts in each, so state figures can add up to more than national ones. Empty means every hospital; anything that is not a state code is rejected as INVALID_ARGUMENT. | |
| filter | No | Keeps only some of the grouped rows (see group_by). Each field left out matches any value; set a field (even to its *_UNSPECIFIED value, which means 'not filed') to require it. Billing classes are never blended: a facility fee and a professional fee are separate bills. | |
| order_by | No | Defaults to AVG_ASC (cheapest average first). STD_DEV_* orders by how widely the payer's rates vary at a hospital, COEFFICIENT_OF_VARIATION_* by that spread relative to the price level (comparable across hospitals); pair those with min_sample_count since thin filings have an artificially low spread. MEDIAN_PCT_*/AVG_PCT_* order by the percentage of billed charges of rows filed under the percent-of-total-billed-charges methodology (dollar-only figures last). | |
| code_type | Yes | Code system the billing code belongs to, e.g. APR-DRG, CDM, CPT, HCPCS, MS-DRG, RC. | |
| page_size | No | ||
| page_token | No | Opaque next_page_token from a previous response; only valid with the same request fields. | |
| payer_slug | Yes | A payer_slug from list_code_payers, e.g. "aetna". | |
| min_sample_count | No | Only hospitals whose figure has at least this many billing records (sample count lower bound). 0 keeps every hospital; negative is rejected. |