Home / Tools / Drugs and formularies

Drugs and formulariesL2 · v2.0.0 · read-only

recall_spend_window

Recall Spend Window

What it answers

Given an FDA-assigned recall_number, returns recall metadata plus Medicare Part D and Medicaid SDUD federal spend on the recalled drug during the recall window (initiation -> termination), summed SERVER-SIDE with per-year Part D rows and per-NDC Medicaid rows riding the answer. The recall source carries NO NDC (openfda_product_ndc_first is NULL on all 17,830 current rows), so the Medicaid leg reaches NDCs through dim_drug on the openFDA product name and says so. Each leg reports its own published-year coverage, so 'no spend', 'not published yet' and 'no join key' are three different answers instead of one null.

Medicaid totals EXCLUDE the SDUD national roll-up, which CMS publishes under state 'XX' beside the 50 state rows and which would otherwise roughly double every Medicaid figure.

Reference demo: recall_number D-1489-2019 (Fresenius Kabi fluorouracil, Class I, window 2019-2022) exercises both legs and the NDC bridge. This description quotes NO dollar figure on purpose: the answer is the only place a number lives, so a change to the computation can never leave a stale figure in the documentation. It did once -- the demo totals here were the pre-2026-08-10 national-roll-up double count and stood six weeks after the fix.

Inputs

recall_number
string · required
acknowledge_era_break
boolean · optional
default: false
detail_limit
integer · optional
default: 25

Call it

From an agent: connect the Vlada MCP once (one click for Claude, ChatGPT, Cursor, VS Code) and ask in plain English; the agent selects recall_spend_window when the question fits. From code: the same tool over REST with an API key. The schema endpoint needs no key.

curl -X POST https://api.vladahealth.com/v1/tools/recall_spend_window \
  -H "Authorization: Bearer $VLADA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recall_number":"<recall_number>"}'
curl https://api.vladahealth.com/v1/tools/recall_spend_window/schema      # the JSON schema, no auth
# MCP endpoint (Streamable HTTP): https://mcp.vladahealth.com/mcp

What comes back

Typed rows plus provenance on every answer: the public source file, its vintage, the methodology, and a response_hash you can replay. Prove and replay tools turn any number into a re-runnable receipt. A number the data cannot support comes back as “not in the data”, never as zero.

Sources behind it

  • drug_silver.fact_drug_recall
  • drug_silver.fact_drug_spending_part_d
  • drug_silver.fact_drug_medicaid_utilization
  • drug_silver.dim_drug

tables: drug_silver.fact_drug_recall · drug_silver.fact_drug_spending_part_d · drug_silver.fact_drug_medicaid_utilization · drug_silver.dim_drug

Known limits

  • medicaid_sdud_suppression_used_flag
  • part_d_puf_annual_grain_only

As of the 2026-09-19 build of the served surface · machine-readable catalog · the live server may run a different version; the schema endpoint above is authoritative for what is deployed.