ClinX open data: 340B and health centers

v0.3.3
org.clinx/clinx Checked 2 days ago Published 17 days ago

Read-only public data on the 340B drug program and federally funded health centers.

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

find_bills Find 340B bills

Search the bills in Congress and the state legislatures that name the federal 340B drug pricing program. Filter by state, stage, role (main: the bill is about 340B; part: a wider bill with a 340B provision; mention: names it in passing), kind, or words in the title, number or summary. Newest activity first.

ParameterTypeDescription
kindstringWhat the bill does about 340B.
limitintegerHow many to return (default 20).
rolestring
stagestringHow far the bill has gone. Did not pass means the bill ended without becoming law: it is finished and nothing is pending.
statestringTwo-letter state code such as RI or TX. Use US for Congress.
textstringWords to look for in the bill number, title and summary.

get_bill One 340B bill in full

Everything the table holds about one bill, by its bill_id from find_bills: sponsor, stage, latest step in the legislature's own words, the passage that names 340B, links to the official page and text, and its dated steps.

ParameterTypeDescription
bill_id *stringFor example ri-2025-h5634 or us-119-hr4581.

find_laws Find state 340B laws

Search the state laws on the books that name the 340B program (not bills: laws already passed). Filter by state, kind, or words in the citation, title and summary.

ParameterTypeDescription
kindstringWhat the law does, for example contract-pharmacy, payer-nondiscrimination or reporting. about_the_data lists the kinds.
limitintegerHow many to return (default 20).
statestringTwo-letter state code such as RI or TX. Use US for Congress.
textstringWords to look for in the citation, title and summary.

get_law One state 340B law in full

Everything the table holds about one state law, by its law_id from find_laws: citation, who it binds, what it limits, how it is enforced, dates, the passage that names 340B and the link to the official text.

ParameterTypeDescription
law_id *string

find_notices Find federal 340B rules and notices

Search the rules, proposed rules and notices that federal agencies have published in the Federal Register since January 2025 and that name the 340B program. Filter by type, role (main: the document is about 340B; part: a wider document with a part on 340B; mention: names it in passing), whether comments are still open, the day it was published, or words in the title, citation, agency, docket and summary. Newest first.

ParameterTypeDescription
fromstringPublished on or after this day, year-month-day.
limitintegerHow many to return (default 20).
open_for_commentbooleanTrue for documents whose last day for public comments has not passed.
rolestring
textstringWords to look for in the title, citation, document number, agency, docket and summary.
tostringPublished on or before this day, year-month-day.
typestringThe Federal Register's kind of document. Rule is a final rule.

get_notice One federal rule or notice in full

Everything the table holds about one federal rule or notice, by its notice_id from find_notices (its Federal Register citation, such as 91 FR 48883, also works): the kind of document, the agency that wrote it, what it does about 340B in a sentence, the Federal Register's own words about its dates, the days it sets, the passage that names 340B, and links to the official page and the printed PDF.

ParameterTypeDescription
notice_id *stringFor example fr-2026-15633.

calendar 340B calendar

Dated events for 340B bills and federal notices: each bill's steps (introduced, sent to committee, votes, signed, vetoed, became law), the days a state's 340B report is due (report due), hearings that name a listed bill, the days legislative sessions start and end, and for federal agencies (state FED) the day a rule or notice was published, the day its comments close, the day it takes effect and other days it sets. With no dates given it returns what is coming up from today, soonest first. Give from and to for a past stretch. Dates can move: check the official page before planning around one.

ParameterTypeDescription
bill_idstringOnly this bill's dates.
fromstringFirst day, year-month-day. Default: today.
kindstring
limitintegerHow many to return (default 20).
notice_idstringOnly this federal rule's or notice's dates, for example fr-2026-15633.
statestringTwo-letter state code such as RI or TX, US for Congress, or FED for federal agencies (rules and notices in the Federal Register).
tostringLast day, year-month-day.

reporting_states States with a 340B reporting law

The states whose law requires 340B reports, grouped by what the public can see: each filer's own report is posted; one state report gives a figure for each named entity; one state report gives totals only; or reports are required and none is public yet. For each state it gives what is public, where it stands, whether ClinX holds its figures, the page of figures on ClinX, and the official sources. Filter by state or by group.

ParameterTypeDescription
groupstringOne group of states: own-reports, named-in-state-report, state-totals or not-posted-yet.
statestringTwo-letter state code such as RI or TX. Use US for Congress.

find_filings Find filed 340B reports

Search the reports that covered entities and states have filed about 340B, which the Scorecard holds. Filter by state, year, entity name or 340B ID, entity type, kind of record (an entity's own filing, a row a state printed about an entity, a state's totals) or form. Returns short rows: the entity, state, year, form, kind of record, the ClinX page and the official source. Use get_filing for one report in full. Figures are exactly as filed and ClinX ranks no one.

ParameterTypeDescription
entitystringWords in the entity's name as filed or in HRSA's name for it (Ohio's workbooks print an ID and no name), or its city, or a 340B ID such as DSH410009.
entity_typestringFor example hospital, health_center or state_total. about_the_data lists the types held.
formstringThe form's id, as listed by about_the_data.
limitintegerHow many to return (default 20).
record_kindstringFor example filing (an entity's own report), state_report_row (a row a state printed about an entity) or state_report_totals. about_the_data lists the kinds held.
statestringTwo-letter state code such as RI or TX. Use US for Congress.
yearintegerThe reporting year, such as 2025.

get_filing One filed 340B report in full

One filed report by its filing_id from find_filings: every line as filed with its label, unit and amount; which claim counts are withheld and why (counts of 1 to 5 are never given); how each figure was checked; any discrepancies recorded between figures the report prints; the official file's address, size and SHA-256; and the ClinX page. For a workbook, the cell each figure was read from. One answer holds 100 lines, or up to 150 with limit, and fewer where the lines are long. A longer report is given in parts: the answer says how many lines are left and how to ask for the next part with offset…

ParameterTypeDescription
filing_id *stringFor example ri-2025-east-bay-cap.
limitintegerHow many lines to return (default 100, at most 150).
offsetintegerHow many lines to skip, for the next part of a long report (default 0). The answer names the offset of the next part.
schedulestringOnly the lines of this schedule, as the line list names it (for example G). The answer lists the schedules the report has.

state_overview 340B in one place

A short picture of 340B law and legislation in one state (or US for Congress): how many laws are on the books and of what kind, how many bills name 340B and how far they have gone, which group of reporting states it is in (what the public can see of its 340B reports) and how many filed reports ClinX holds for it, and the next dates on the calendar, with links to the pages that hold the detail. With FED it gives the federal agencies instead: how many rules and notices name 340B, which are open for comment, and the next federal dates.

ParameterTypeDescription
state *stringTwo-letter state code such as RI or TX, US for Congress, or FED for federal agencies (rules and notices in the Federal Register).

find_health_centers Find health centers

Search the federally funded health centers (community health centers that hold a Health Center Program grant from HRSA) whose yearly reports to HRSA are held by ClinX. Filter by state, by words in the name, city, key or grant number, or by a year the health center reported. Returns short rows: key, grant number, name as HRSA prints it, city, state, the years held, kinds of funding, urban or rural, the number of sites listed, and the ClinX page. The rows are in the order of the names. Use get_health_center_report for what one health center reported. The answer says which states are held so far.

ParameterTypeDescription
limitintegerHow many to return (default 20).
statestringTwo-letter state code such as RI or MA.
textstringWords to look for in the name (this year's or an earlier one), the city, the key or the grant number.
yearintegerOnly health centers with a report for this year, such as 2025.

get_health_center_report One health center's report to HRSA

What one health center reported to HRSA in the Uniform Data System for one year, by its key or grant number from find_health_centers. With no table it gives the health center's name and place, the tables of the report with how many lines and cells each has and how many cells carry a mark, and where the full page is. With table (for example Table 3A, patients by age) it gives that table's lines: the line, HRSA's title for it, and for each column the value exactly as HRSA published it. A cell HRSA marked is given as the mark with its meaning (no entry, withheld small count, withheld confidential…

ParameterTypeDescription
health_center *stringThe health center's key (for example 010120) or its grant number (for example H80CS00001).
limitintegerHow many lines to return (default 40).
linestringOnly this line of the table, as the table lists it (for example L10 or 21a).
offsetintegerHow many lines to skip, for the next part of a long table (default 0).
tablestringOne table of the report, as the answer without a table lists them: for example Table 3A, Table 5, Table 7, Table 9D, Table HIT, ODE or WFC.
textstringOnly the lines whose title holds these words.
yearintegerThe reporting year. Default: the latest year held for the health center.

find_funding_opportunities Find HRSA funding opportunities for health centers

Search the funding opportunities HRSA (the federal agency that funds health centers) lists on Grants.gov, both forecasts and posted notices. Filter by words in the title, number or description, to the Health Center Program's own opportunities, by status, or to those open for applications on a day. Returns short rows with the application due date as published (and whether it is HRSA's estimate), amounts as published, the Grants.gov page and the ClinX page, soonest due date first. Give opportunity (a number such as HRSA-27-006) for one in full, with its description, who can apply and every date.

ParameterTypeDescription
health_center_programbooleanTrue for only the opportunities HRSA files under the Health Center Program itself.
limitintegerHow many to return (default 20).
open_onstringOnly notices posted on or before this day whose applications are due on or after it, year-month-day. A forecast is not open.
opportunitystringOne opportunity in full, by its number (for example HRSA-27-006) or its Grants.gov id (for example 363419).
statusstringforecasted: HRSA plans to publish it, dates are estimates. posted: the notice is published.
textstringWords to look for in the title, the opportunity number and the description.

health_center_calendar Health center funding dates

Dated lines for health center funding: for each HRSA funding opportunity on Grants.gov the day its notice is expected, the day applications are due and the day awards are expected, and for Federal Register documents that name the Health Center Program the day comments close and the day it takes effect. With no dates given it returns what is coming up from today, soonest first. Give from and to for another stretch. Each line says whether the date is HRSA's estimate. This is a separate calendar from the 340B one (the calendar tool).

ParameterTypeDescription
fromstringFirst day, year-month-day. Default: today.
kindstring
limitintegerHow many to return (default 20).
sourcestringgrants.gov for funding opportunities, federal register for rules and notices.
textstringWords to look for in the title.
tostringLast day, year-month-day.

shortage_area_changes Shortage areas and health center sites in a state

HRSA's shortage designations (primary care, dental health and mental health professional shortage areas, and medically underserved areas and populations) and its list of health center sites, for one state or territory. By default it gives the state's counts: designations by kind and status, what was designated, withdrawn or updated in the last 365 days, and sites. With show it lists rows: recent (designations with an event in the last 365 days), proposed (designations HRSA proposes to withdraw), or sites (health center sites added to scope in the last 365 days, and sites that are not active).…

ParameterTypeDescription
eventstringFor recent, one kind of event. updated means only that HRSA's last update date falls in the 365 days.
kindstringFor recent and proposed, one kind of designation: hpsa-pc primary care, hpsa-dh dental health, hpsa-mh mental health, mua medically underserved areas and populations.
limitintegerHow many to return (default 20).
showstringcounts (default), or one list of rows: recent, proposed or sites.
statestringTwo-letter code of a state or territory, such as RI, DC or PR.
textstringFor a list, words to look for in the name, county, city or id.

medicare_health_center_rate Medicare's per-visit rate for health centers

Medicare's national per-visit rate for federally qualified health centers (the FQHC PPS base rate) each year from 2020, with the change from the year before and the sentence from CMS that states the rate, the document, its date and its address. With state (RI or MA), it also gives each area's factor (the FQHC geographic adjustment factor) where CMS's factor files for that year are held, and the rate times the factor, labelled as ClinX's arithmetic and not rounded. For 2026 and 2027 it also gives the physician fee schedule's conversion factor, quoted from the same rule.

ParameterTypeDescription
statestringRI or MA, for the area factors.
yearintegerOne calendar year, such as 2027. Default: every year held.

get_health_center_cost_report A health center's Medicare cost reports

The Medicare cost reports (Form CMS-224-14) of one Rhode Island or Massachusetts health center, newest fiscal year first, by its key or grant number from find_health_centers, or by a Medicare number (CCN). Each report gives its CCN, fiscal year, report status, how it is tied to the health center (exact_grant: the report's grant field holds the exact grant number; hand_checked: a written check with its reason) and each kept figure exactly as filed, keyed by a code that figures_mean explains with the form's own words and its worksheet, line and column: costs, Medicare's payments, revenue by paye…

ParameterTypeDescription
ccnstringA Medicare number (CCN) of six digits, such as 411801. A report found by CCN alone may not be tied to a health center.
groupstringOnly one group of figures: cost (Worksheet A), medicare (Worksheet E), revenue (Worksheet F-1) or visits (Worksheet S-3).
health_centerstringThe health center's key (for example 010580) or its grant number (for example H80CS00001).
limitintegerHow many reports to return (default 10).
yearintegerOnly reports whose fiscal year ends in this year.

state_medicaid_health_center_payment How a state's Medicaid pays health centers

A state's Medicaid payment to federally qualified health centers, field by field: the method, how the base rate was set, the yearly update, scope changes, the managed care wrap-around, what counts as a visit, and where rates are published. A field is given with its value only when confirmed: its verbatim quote was matched against a saved copy of the state's own document and an independent checker agreed. Then it carries the document, state plan number, page, effective day, the day last verified and the day next due. A field not confirmed gives no value, only why. A state not yet read says so.…

ParameterTypeDescription
state *stringA two-letter state code, such as RI.

about_the_data About the data

What ClinX's open data holds (the 340B tables and the health center sets), where each part comes from, when each was last brought up to date or read, what the marks in a health center report mean, the licence, and where to download the files whole.