Medicare Coverage

v0.2.1
io.github.pipeworx-io/medicare-coverage Checked 1 day ago Published 1 month ago

Medicare national and local coverage policy from the official CMS Coverage API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

medicare_ncd_detail

Retrieve one official Medicare National Coverage Determination by CMS document ID and optional version, including covered indications, limitations, effective dates, benefit category, and revision text.

ParameterTypeDescription
document_id *stringCMS NCD document ID returned by medicare_ncd_search.
versionnumberOptional document version.

medicare_lcd_detail

Retrieve one Medicare LCD by document ID and version. Detailed LCD text requires a CMS license-agreement bearer token because documents may contain licensed AMA/ADA/AHA material; pass _licenseToken obtained directly from CMS after accepting those terms.

ParameterTypeDescription
_licenseToken *stringCMS Coverage API license token, valid for one hour.
document_id *string
versionnumber

medicare_nca_detail

Retrieve one CMS National Coverage Analysis by document ID, including request, issue, benefit category, dates, decision memo, and public-comment status when supplied by CMS.

ParameterTypeDescription
document_id *stringCMS NCA document ID.

medicare_recent_coverage_changes

Recently published or updated national Medicare coverage documents from CMS, including NCDs, NCAs, CALs, MEDCAC meetings, and technology assessments.

ParameterTypeDescription
daysnumberLook-back window (1-365, default 30).
document_typestringOptional case-sensitive CMS document type, e.g. NCD or NCA.
limitnumber

medicare_coverage_states

List CMS Coverage API state identifiers used to scope local Medicare coverage searches.

medicare_article_code_profile

Retrieve one CMS Medicare Coverage Article with its CPT/HCPCS codes and contractor records. Licensed AMA/ADA/AHA content requires a caller-provided CMS license token. Code inclusion describes billing guidance, not guaranteed coverage or payment.

ParameterTypeDescription
_licenseToken *stringCMS license-agreement bearer token.
article_id *stringCMS article ID, with or without A prefix.
limitnumberCode rows (1-200, default 100).
versionnumber

medicare_local_coverage_variation

Compare final LCD search matches across 1–15 states and Medicare Administrative Contractors. Different matching document counts or titles are policy signals, not proof of unequal beneficiary access or payment.

ParameterTypeDescription
query *string
states *array
limit_per_statenumberDocuments per state (1-25, default 10).
statusstring

medicare_coverage_timeline

Retrieve official CMS version or revision history for a Medicare NCD, NCA, CAL, or LCD. Accepts either identifier CMS publishes for a coverage document: the public one that appears in the policy text and in every citation of it — an NCD section number such as 310.1 or 90.2, an NCA/CAL tracking number such as CAG-00450N, an LCD number such as L34246 — or CMS's internal numeric document id. Public identifiers are resolved to the internal id automatically, and every response reports the resolved internal document_id alongside the public document_display_id and the document title so a caller c…

ParameterTypeDescription
document_id *stringEither the public identifier (NCD section number like "310.1", NCA/CAL tracking number like "CAG-00450N", LCD number like "L34246") or CMS's internal numeric document id. A leading "NCD "/"NCA "/"CAL…
document_type *string
_licenseTokenstringRequired only for LCD.
versionnumberOptional LCD version.

medicare_hcpcs_utilization_trend

Show annual Medicare Physician & Other Practitioners national utilization and payment metrics for one HCPCS code. Claims are fee-for-service aggregates with suppression and methodology limits; they do not measure total US use, coverage, demand, or company revenue.

ParameterTypeDescription
hcpcs_code *string
from_yearnumber
to_yearnumber

medicare_hcpcs_geography

Compare state-level Medicare fee-for-service provider, beneficiary, service, and average-payment metrics for one HCPCS code and program year. State beneficiary counts across places of service must not be summed as unique people.

ParameterTypeDescription
hcpcs_code *string
limitnumberState/place rows (1-120, default 120).
yearnumber

medicare_provider_exposure

Return a bounded sample of provider-level Medicare fee-for-service rows for one HCPCS code, optionally filtered by state, with the authoritative matching-row count. This is not a provider ranking and excludes suppressed/non-FFS activity.

ParameterTypeDescription
hcpcs_code *string
limitnumberSample rows (1-100, default 25).
offsetnumber
statestring
yearnumber

medicare_product_market_profile

UTILIZATION ANALYTICS for a product whose HCPCS billing codes you ALREADY KNOW: requires 1-5 caller-supplied HCPCS codes and combines their annual Medicare fee-for-service claim volumes and payments with matching coverage-policy documents. Use when you have the codes and want spend, volume and trend. For a plain coverage question with no codes in hand, medicare_ncd_search answers it directly. CMS does not validate the product-to-code association; verify coding and policy details independently.

ParameterTypeDescription
hcpcs_codes *array
query *stringProduct, technology, or clinical topic.
from_yearnumber
policy_limitnumber
to_yearnumber

medicare_part_d_top_drugs

Rank Medicare Part D drugs by total gross spending for a year — the biggest drugs in the Part D program, highest first. Answers "which drugs have the highest Medicare Part D spending", "top Part D drugs by cost", "what does Medicare spend the most on". Returns brand name, generic name and total spending. Spending is gross, before confidential manufacturer rebates.

ParameterTypeDescription
limitnumberHow many drugs to return (1-100, default 20).
yearstringSpending year, e.g. "2023". Defaults to the newest year the dataset carries.

medicare_part_d_drug_spending

Search CMS Medicare Part D spending by brand or generic name and return 2020–2024 spending, claims, beneficiaries, dosage units, and unit-cost trends. Gross Part D spending is not manufacturer revenue, net price, profit, prescriptions, or total US sales.

ParameterTypeDescription
drug *string
limitnumberRows (1-100, default 25).
offsetnumber

medicare_part_d_prescriber_exposure

Return a bounded sample of Medicare Part D prescriber-by-drug rows for an exact brand name in one year, optionally filtered by state, with the authoritative matching-row count. This is not a prescriber ranking and suppressed/non-Part-D activity is absent.

ParameterTypeDescription
brand_namestringExact Part D brand name, e.g. "Eliquis". `drug` is accepted as a synonym.
drugstringSynonym for brand_name — the sibling spending tool spells it this way.
limitnumber
offsetnumber
statestring
yearnumber

medicare_part_d_generic_competition

Profile Medicare Part D brand rows sharing an exact generic name, including CMS’s reported manufacturer count and 2020–2024 spending/use trends. Manufacturer count is a CMS aggregate, not a list of companies, products on market, or market share.

ParameterTypeDescription
generic_name *string
limitnumberBrand rows (1-100, default 50).

medicare_inpatient_drg_market

Return a bounded sample of hospital-level Medicare fee-for-service inpatient rows for an exact MS-DRG and year, optionally filtered by state, with the authoritative matching-row count. Average payments are not hospital revenue or margin.

ParameterTypeDescription
drg_code *string
limitnumber
offsetnumber
statestring
yearnumber

medicare_outpatient_apc_market

Return a bounded sample of hospital-level Medicare fee-for-service outpatient rows for an exact APC and year, optionally filtered by state, with the authoritative matching-row count. APC payments are claims aggregates, not hospital revenue or margin.

ParameterTypeDescription
apc_code *string
limitnumber
offsetnumber
statestring
yearnumber

medicare_hospital_service_trend

Show annual national Medicare fee-for-service utilization and average-payment trends for one inpatient MS-DRG or outpatient APC using CMS geography/service aggregates. Trends exclude Medicare Advantage and do not measure total market demand, revenue, or profitability.

ParameterTypeDescription
code *string
service_type *string
from_yearnumber
to_yearnumber

medicare_dme_supplier_market

Return a bounded API-order sample of Medicare fee-for-service DME supplier rows for an exact HCPCS code and year, optionally filtered by state, with the authoritative matching-row count. This is not a supplier ranking or total market size.

ParameterTypeDescription
hcpcs_code *string
limitnumber
offsetnumber
statestring
yearnumber

medicare_dme_service_trend

Show annual national Medicare fee-for-service DME supplier, beneficiary, claim, service, and average-payment metrics for one HCPCS code. It excludes Medicare Advantage and is not total market demand or company revenue.

ParameterTypeDescription
hcpcs_code *string
from_yearnumber
to_yearnumber

medicare_post_acute_provider_market

Return a bounded API-order sample of Medicare post-acute provider rows for home health, hospice, or skilled nursing in one year and optional state, with the authoritative matching-row count. Payments are not provider revenue or margin.

ParameterTypeDescription
service_type *string
limitnumber
offsetnumber
statestring
yearnumber

medicare_post_acute_trend

Show annual national Medicare fee-for-service beneficiaries, stays, service days, and payments for home health, hospice, or skilled nursing. Program definitions and year basis differ by service and the figures are not provider revenue.

ParameterTypeDescription
service_type *string
from_yearnumber
to_yearnumber

medicare_enrollment_trend

Show annual Medicare enrollment and Medicare Advantage/other, Original Medicare, Part D PDP, Part D MA-PD, and dual-eligible counts nationally or for one state. Enrollment counts are program participation, not utilization or revenue.

ParameterTypeDescription
from_yearnumber
statestringOptional two-letter state abbreviation; omit for national.
to_yearnumber