ca_hospital_visits_by_payer
Pack: ca-hcai-hospital-finance · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ca_hospital_visits_by_payer for the schema, then POST the same URL with its arguments for the data.
Outpatient visits and inpatient discharges by payer for a named California hospital, from HCAI’s quarterly financial and utilization report: Medicare, Medi-Cal, county indigent programs, other third parties, other indigent and other payers, each split into traditional and managed care where HCAI reports it, plus the total. Use for “outpatient visits by payer at Adventist Health Rideout, 2026 Q1”, “Medi-Cal managed care discharges at a hospital”. Give the hospital name words or the facility number, and a year and quarter (omit for the latest). Counts are for the trailing four quarters ending in the report quarter, as the report publishes them, not a single quarter. When the quarter asked for is newer than the newest published report, the newest is returned and the note and data_as_of say so. Answered live from the state portal; the stored copy does not carry these columns.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
hospital | string | no | Words from the hospital name, e.g. “Rideout” or “Cedars-Sinai”. |
facility_no | string | no | HCAI facility number (9 digits), e.g. “106580996”. |
year | number | no | Report year, e.g. 2026. |
quarter | number | no | Quarter 1-4 of the report year. |
limit | number | no | Max hospitals when the name matches several (1-25, default 5). |
Example call
Arguments
{
"hospital": "Rideout",
"year": 2026,
"quarter": 1
}
curl
curl -X POST https://gateway.pipeworx.io/ca-hcai-hospital-finance/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ca_hospital_visits_by_payer","arguments":{"hospital":"Rideout","year":2026,"quarter":1}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ca_hospital_visits_by_payer', {
"hospital": "Rideout",
"year": 2026,
"quarter": 1
});
Response shape
| Field | Type | Description |
|---|---|---|
period | object | |
requested | object | |
total_matches | number | |
returned | number | |
hospitals | array | |
note | string | |
source | string | |
answered_from | string | |
data_as_of | string | |
error | string | |
available | array |
Full JSON Schema
{
"type": "object",
"properties": {
"period": {
"type": "object",
"properties": {
"year": {
"type": "number"
},
"quarter": {
"type": "number"
},
"released": {
"type": [
"string",
"null"
]
},
"covers": {
"type": "string"
}
},
"additionalProperties": true
},
"requested": {
"type": "object",
"properties": {
"year": {
"type": [
"number",
"null"
]
},
"quarter": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"total_matches": {
"type": "number"
},
"returned": {
"type": "number"
},
"hospitals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"facility_no": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"county": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"report_period": {
"type": "object",
"properties": {
"begin": {
"type": [
"string",
"null"
]
},
"end": {
"type": [
"string",
"null"
]
},
"year_quarter": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
},
"outpatient_visits_by_payer": {
"type": "object",
"properties": {
"medicare": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"medi_cal": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"county_indigent_programs": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"other_third_parties": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"other_indigent": {
"type": [
"number",
"null"
]
},
"other_payers": {
"type": [
"number",
"null"
]
},
"total": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"outpatient_visits_payer_lines_sum": {
"type": [
"number",
"null"
]
},
"inpatient_discharges_by_payer": {
"type": "object",
"properties": {
"medicare": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"medi_cal": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"county_indigent_programs": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"other_third_parties": {
"type": "object",
"properties": {
"total": {
"type": [
"number",
"null"
]
},
"traditional": {
"type": [
"number",
"null"
]
},
"managed_care": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"other_indigent": {
"type": [
"number",
"null"
]
},
"other_payers": {
"type": [
"number",
"null"
]
},
"total": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
},
"inpatient_discharges_payer_lines_sum": {
"type": [
"number",
"null"
]
},
"long_term_care_discharges": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
}
},
"note": {
"type": "string"
},
"source": {
"type": "string"
},
"answered_from": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"error": {
"type": "string"
},
"available": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the ca-hcai-hospital-finance pack
{
"mcpServers": {
"ca-hcai-hospital-finance": {
"url": "https://gateway.pipeworx.io/ca-hcai-hospital-finance/mcp"
}
}
}
See Getting Started for client-specific install steps.