hcris-analyst

A Claude Code skill for looking up what U.S. nonprofit hospitals report on two public filings.

Nonprofit hospitals publish a financial-assistance figure on their IRS Form 990 (Schedule H, Part I, line 7a) and a charity-care figure on their Medicare cost report (form 2552-10, Worksheet S-10, line 23). CMS ships cost reports as long CSVs with one row per worksheet cell; the IRS ships returns as XML inside bulk ZIPs. Putting one hospital's two figures next to each other, for the same fiscal period, takes some work.

hcris-analyst is a Claude Code skill that queries the tables where that work is already done. It runs in your own Claude Code session, turns a question into DuckDB SQL against the published data files, and shows the two figures with the components from each filing that show what is in the difference.

Install

Install the trove plugin (version 1.3.0) from Anthropic's public community marketplace:

/plugin marketplace add anthropics/claude-plugins-community
/plugin install trove@claude-community

trove is listed in the community marketplace, not the separate official claude-plugins-official marketplace. The skill's source, and instructions for installing it without the plugin, are at github.com/cbetz/trove/tree/main/skills.

Example prompts

A worked example

The question, the query the skill's reference file gives for it, and the result from the current data files (run on 2026-11-19).

Question

"What did Yale New Haven Hospital report on Schedule H line 7a and on S-10 line 23, and what is in the difference?"

Query

SELECT hospital_name, city, state, ein, ccn_list AS ccn,
       sched_h_tax_period_end::DATE AS irs_period_end,
       hcris_fy_end_dt::DATE        AS cms_period_end,
       period_aligned,
       sched_h_financial_assistance_gross::BIGINT          AS irs_7a_c_total_expense,
       sched_h_financial_assistance_offset_revenue::BIGINT AS irs_7a_d_offsetting_revenue,
       sched_h_financial_assistance_at_cost::BIGINT        AS irs_7a_e_net,
       hcris_charity_care_cost_uninsured::BIGINT AS cms_line23_col1_uninsured,
       hcris_charity_care_cost_insured::BIGINT   AS cms_line23_col2_insured,
       hcris_charity_care_cost::BIGINT           AS cms_line23_col3,
       hcris_medicaid_dsh_supplemental::BIGINT   AS cms_line5,
       charity_gap::BIGINT                       AS cms_minus_irs_net
FROM read_parquet('https://troveproject.com/data/community_benefit_gap_2022.parquet')
WHERE ein = '060646652';

Result

              hospital_name = YALE NEW HAVEN HOSPITAL
                       city = New Haven
                      state = CT
                        ein = 060646652
                        ccn = 070022
             irs_period_end = 2023-09-30
             cms_period_end = 2023-09-30
             period_aligned = true
     irs_7a_c_total_expense = 257262512
irs_7a_d_offsetting_revenue = 144162000
               irs_7a_e_net = 113100512
  cms_line23_col1_uninsured = 30287094
    cms_line23_col2_insured = 5281586
            cms_line23_col3 = 35568680
                  cms_line5 = -71469000
          cms_minus_irs_net = -77531832

How the skill is told to read it

Both filings cover the fiscal year ending 2023-09-30. The return lists $257,262,512 of total expense and $144,162,000 of direct offsetting revenue on line 7a, for a net of $113,100,512. The cost report lists $35,568,680 on S-10 line 23 column 3 ($30,287,094 uninsured, $5,281,586 insured) and −$71,469,000 on S-10 line 5. The skill's reference file gives this wording for the difference:

Of the $77.5M difference, about $71.5M appears to be Connecticut's hospital provider tax net of the state supplemental payments it funds: the amount on S-10 line 5, which the cost report keeps separate from charity care. The worksheet behind the IRS line is not public, so this is a reconciliation from the hospital's own filings, not a figure the hospital has stated.

The same hospital, with links to both filings, is on the hospitals page.

A second query: a line with no value

SELECT hospital_name, state, ein, ccn_list AS ccn,
       sched_h_financial_assistance_at_cost::BIGINT AS irs_7a_e_net,
       hcris_charity_care_cost AS cms_line23_col3,
       hcris_s10_filed, charity_gap AS cms_minus_irs_net
FROM read_parquet('https://troveproject.com/data/community_benefit_gap_2022.parquet')
WHERE ein IN ('520591656', '620646012')
ORDER BY ein;
    hospital_name = THE JOHNS HOPKINS HOSPITAL
            state = MD
              ein = 520591656
              ccn = 210009
     irs_7a_e_net = 63958981
  cms_line23_col3 = NULL
  hcris_s10_filed = true
cms_minus_irs_net = NULL

    hospital_name = ST JUDE CHILDRENS RESEARCH HOSPITAL
            state = TN
              ein = 620646012
              ccn = 443302
     irs_7a_e_net = 112089959
  cms_line23_col3 = NULL
  hcris_s10_filed = false
cms_minus_irs_net = NULL

The skill reports these as "not reported on this line": The Johns Hopkins Hospital's cost report includes a Worksheet S-10 with no value on line 23, and St. Jude's cost report has no Worksheet S-10. Neither is shown as $0, and no difference is computed.

What this skill does

What this skill doesn't do

Coverage

2,099 nonprofit hospital systems matched at the EIN level, of which 1,904 have both figures and 1,797 of those cover the same fiscal period on both filings. The ranked index is the 493 single-hospital rows, in 48 states, where the two lines can be set side by side; 107 of them differ by more than 50% of the larger figure. Sources: CMS HCRIS Hospital 2552-10 files for fiscal years 2022 and 2023 (CMS extract generated 2026-10-02, posted 2026-10-05); IRS Form 990 Schedule H, tax year 2022, from e-file releases 2023–2026; CCN-to-EIN crosswalk from Community Benefit Insight (RTI International / RWJF), December 2024. Browse the same data at /hospitals/.

Source and license

MIT-licensed. Skill source: github.com/cbetz/trove/tree/main/skills/hcris-analyst. Parsers and build scripts: github.com/cbetz/trove. The data is U.S. government work, public domain: CMS HCRIS, IRS Form 990 e-file, and CDC/ATSDR SVI. The CCN-to-EIN crosswalk is from Community Benefit Insight: RTI Press DOI 10.3768/rtipress.2023.op.0080.2302.

Dataset explainers: What is HCRIS? · What is IRS Form 990 Schedule H?