Cms Open Payments

v0.2.1
io.github.pipeworx-io/cms-open-payments Checked 2 days ago Published 1 month ago

CMS Open Payments, with annual dataset discovery through the official DKAN API.

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

open_payments_top_companies

Rank the drug and device manufacturers that paid US physicians and teaching hospitals the most in a program year — the "who spends the most on doctors" question. Returns each company with its total US dollars, payment count and how many distinct recipients it reached, ordered by spend. CMS publishes no aggregate and its live API cannot group over the 14-million-row payment table, so this reads a summary computed offline; the response states the program year and when the summary was refreshed. Payments are disclosures of transfers of value, not evidence of wrongdoing.

ParameterTypeDescription
companystringOptional: one company, to get its total rather than the ranking. Matched case-insensitively.
limitnumberCompanies to return, 1-200 (default 25).
program_yearnumberProgram year, e.g. 2025. Defaults to the most recent year loaded — the response always says which.

open_payments_physician

Find CMS Open Payments records for a physician/non-physician practitioner by exact NPI in one program year. Returns the authoritative total match count plus a bounded payment sample; reported relationships do not imply misconduct. If you have a name rather than an NPI, resolve it first against the NPPES registry (npi_individual in the clinicaltables pack), or use open_payments_search with recipient_last_name + recipient_first_name.

ParameterTypeDescription
npi *stringExact 10-digit NPI.
limitnumberPayment rows (1-100, default 50).
payment_typestring
yearnumberProgram year; default latest.

open_payments_company

Search payments reported by a manufacturer or GPO in one CMS Open Payments program year. Company matching is a case-insensitive substring and may combine similarly named legal entities.

ParameterTypeDescription
company *string
limitnumber
minimum_amountnumber
offsetnumber
payment_typestring
yearnumber

open_payments_product

Search general-payment records associated with a named drug, biologic, device, or medical supply across all five CMS product slots. Product association is reporting-entity supplied and does not prove the payment was exclusively for that product.

ParameterTypeDescription
product *string
companystring
limitnumber
offsetnumber
yearnumber

open_payments_research

Search CMS research-payment records by company, recipient NPI, study name, or state for one program year. Amounts may represent funding routed through an institution and should not automatically be attributed as personal compensation.

ParameterTypeDescription
companystring
limitnumber
minimum_amountnumber
offsetnumber
recipient_npistring
statestring
studystringCase-insensitive study-name substring.
yearnumber

open_payments_recipient_history

Build a cross-year CMS Open Payments history for an exact recipient NPI. Returns authoritative annual match counts plus bounded samples; sampled dollar totals are explicitly not full-dataset totals.

ParameterTypeDescription
npi *string
from_yearnumber
payment_typestring
sample_per_yearnumberRows per year (1-100, default 25).
to_yearnumber

open_payments_company_history

Build a cross-year CMS Open Payments history for a company-name substring. Annual counts are authoritative for that query; dollar figures cover only the returned bounded sample and company aliases may split or combine legal entities.

ParameterTypeDescription
company *string
from_yearnumber
payment_typestring
sample_per_yearnumber
to_yearnumber

open_payments_product_history

Build a cross-year general-payment history for a reported product-name substring across CMS product slots. Product association is reporter-supplied; sample dollar amounts are not complete annual totals.

ParameterTypeDescription
product *string
companystring
from_yearnumber
sample_per_yearnumber
to_yearnumber

open_payments_compare_companies

Compare 2–5 company-name queries across CMS Open Payments program years using authoritative match counts and clearly labeled bounded samples. This does not compare complete spend unless every matching row fits in the sample.

ParameterTypeDescription
companies *array
from_yearnumber
payment_typestring
sample_per_yearnumber
to_yearnumber

open_payments_nature_breakdown

Break down the bounded payment sample for one recipient, company, or product across years by reported nature of payment. Counts and dollars in the breakdown are sample statistics; annual total_matches remains the authoritative query count.

ParameterTypeDescription
companystring
from_yearnumber
npistring
productstring
sample_per_yearnumber
to_yearnumber