surgical_waits
B.C. surgical wait times (aggregates by hospital and procedure group)
Scheduled surgery waits and completions from the Ministry of Health annual file, 2009/10 to the latest fiscal year: for a health authority, hospital and procedure group, the number waiting and completed (counts under 5 are suppressed and returned as "<5", never 0) and the 50th and 90th percentile wait in weeks. Aggregates only; no surgeon or person data. Use surgical_waits_dimensions first to see the exact health authority, hospital and procedure names. hospital and procedure_group match when every word you give appears in the name (any order, any case); health_authority matches exactly ("All Health Authorities", "Fraser", ...). "All Facilities" and "All Procedures" are the totals rows.
Cost: 1 unit of your allowance (see Rate limits).
Parameters
fiscal_year(string, optional)health_authority(string, optional): min length 1, max length 80hospital(string, optional): min length 1, max length 80procedure_group(string, optional): min length 1, max length 80limit(integer, optional): min 1, max 100, default25offset(integer, optional): min 0, max 100000, default0
REST
curl -X POST https://api.bcmcp.ca/v1/tools/surgical_waits \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{}'MCP
Call the tool surgical_waits with these arguments. Over raw JSON-RPC:
curl -X POST https://api.bcmcp.ca/mcp \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"surgical_waits","arguments":{}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.