Hcup Inpatient Stats

liveHealth

HCUP Inpatient Stats — national hospitalization discharges, costs and outcomes by condition and year.

2tools
0msauth
free tier50 calls/day

Tools

condition_hospital_costs

National U.S. inpatient hospital discharges and aggregate costs by principal diagnosis (CCSR category) and year, from AHRQ HCUP's published "Most Expensive Conditions by Payer" Statistical Brief serie

No parameters required.

▶Try it
sepsis_hospital_outcomes

National U.S. inpatient hospital length of stay and mean cost per stay for sepsis (principal diagnosis), by patient population and year, 2016-2021, from AHRQ HCUP Statistical Brief #306. This is the o

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/hcup-inpatient-stats/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/hcup-inpatient-stats/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"condition_hospital_costs","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("condition_hospital_costs", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("hcup inpatient stats — national hospitalization discharges, costs and outcomes by condition and year");