Medicaid Drug Rebate

v0.1.0
io.github.pipeworx-io/medicaid-drug-rebate Checked 22 hours ago Published 23 hours ago

Medicaid Drug Rebate Program (MDRP) reference data from CMS's Medicaid open data catalog: the…

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

mdrp_product_lookup

Look up a drug product in the Medicaid Drug Rebate Program covered-product file (CMS, "Drug Products in the Medicaid Drug Rebate Program") by 11-digit NDC, product name, or labeler name. Returns the latest quarterly listing: labeler, FDA product name, drug category (single source / innovator / non-innovator), market and FDA approval dates, termination date, unit type, therapeutic-equivalence code, clotting-factor and pediatric flags. An NDC with no current listing returns the last period it appeared in. NDCs are strings.

ParameterTypeDescription
active_onlybooleanDrop products that carry a termination date. Default false.
labelerstringPart of the labeler (manufacturer) name, e.g. "NOVO NORDISK".
limitnumberRows to return (1-100, default 25).
namestringPart of the FDA product name, e.g. "OZEMPIC". Case-insensitive.
ndcstring11-digit NDC without dashes (00002120001) or dashed form (00002-1200-01).
offsetnumberRows to skip, for paging.

mdrp_newly_reported_drugs

Products newly reported to the Medicaid Drug Rebate Program by manufacturers, from CMS's weekly "Product Data for Newly Reported Drugs" releases. With no dates it returns the most recent week; give week_start (any date inside the week) or from/to (up to 8 weeks) for history. Filter by labeler, product name, or NDC. Returns labeler, FDA name, drug category, approval/market dates, date reported to CMS, coverage effective date. When a requested week has no release, the response lists the weeks that do exist.

ParameterTypeDescription
fromstringRange start (YYYY-MM-DD). Releases overlapping from..to are read, at most 8.
labelerstringPart of the labeler name.
limitnumberMax rows (1-100, default 25).
namestringPart of the FDA product name.
ndcstringNDC, 11 digits or dashed.
tostringRange end (YYYY-MM-DD). Defaults to today.
week_startstringAny date (YYYY-MM-DD) inside the week wanted; the release covering it is used.

aca_federal_upper_limit

ACA Federal Upper Limit (FUL) for multiple-source generic drugs from CMS, "ACA Federal Upper Limits": the FUL per unit, the weighted average of AMPs it derives from, product group, strength, dosage form, route, package size, A-rated flag. Search by ingredient or NDC. Defaults to the latest monthly file; pass year and month for an earlier one. NDCs here are dashed 5-4-2 in the source; either form is accepted.

ParameterTypeDescription
ingredientstringPart of the ingredient name, e.g. "METFORMIN".
limitnumberRows (1-100, default 25).
monthnumberMonth 1-12 of the monthly file. Default: latest.
ndcstringNDC, 11 digits or dashed.
offsetnumberRows to skip.
strengthstringPart of the strength text, e.g. "500MG".
yearnumberFour-digit year of the monthly file. Default: latest.

amp_reporting_status

Whether a manufacturer reported the required Average Manufacturer Price (AMP) for a drug under the Medicaid Drug Rebate Program, from CMS "Drug AMP Reporting" (monthly and quarterly files). By NDC: the status (R = reported, NR = not reported) for the last 12 periods. By labeler: counts of reported vs not-reported products in the latest period plus the not-reported products. Status values are R and NR.

ParameterTypeDescription
frequencystringWhich file. Default monthly.
labelerstringPart of the labeler name, e.g. "PFIZER".
limitnumberRows of detail (1-100, default 25).
ndcstringNDC, 11 digits or dashed.

mdrp_drug_designations

Products CMS designates as clotting factor (minimum rebate 17.1% of AMP) or exclusive pediatric under the Medicaid Drug Rebate Program, from the CMS "Clotting Factor Drug Report" and "Exclusive Pediatric Drugs" lists. Returns labeler, product name, effective quarter and termination date; NDCs are returned joined and dashed. Filter by name, labeler or NDC.

ParameterTypeDescription
list *stringWhich designation list.
labelerstringPart of the labeler name.
limitnumberRows (1-100, default 25).
namestringPart of the product name.
ndcstringNDC, 11 digits or dashed.

first_time_nadac_rates

Drug products that received their FIRST National Average Drug Acquisition Cost (NADAC) rate, from CMS "First Time NADAC Rates": product, brief indication, drug class (Legend/OTC), package size, billing unit, the initial NADAC rate per unit, the date, the reason code, and brand vs generic classification. For ongoing price history of a product use nadac_history (drug-prices pack). Filter by product text or minimum as-of date. Newest first.

ParameterTypeDescription
limitnumberRows (1-100, default 25).
namestringPart of the drug product text, e.g. "DAYVIGO".
sincestringOnly rates as of this date or later (YYYY-MM-DD).