Practice the SQL patterns hospital RCM analysts run at HCA / CommonSpirit / Epic shops / Athena: denial rate by CPT, days-in-AR by payer, first-pass yield, contractual underpayment detection, claim-to-remit lag, AR aging buckets, and provider productivity vs collections matrices. Per-charge / per-claim / per-remit grain on 24 months of provider-side billing data with planted denial cohorts and underpayment traps. The patterns billing analysts, denials specialists, and CFOs actually run.
25 missions (10 free · 15 Pro incl. 5 Master) · 7 tables · charge → claim → remit star schema
Read the briefing
A Slack message from your manager
Explore the schema
5 tables in a star schema
Write your query
Full SQL editor with autocomplete
Get expert feedback
Graduated hints, not just pass/fail
Per-charge / per-claim / per-remit grain mirroring how Epic Resolute, Athenahealth, and Cerner billing systems shape data. Patient and payer dims with primary/secondary insurance attribution, provider dim with department + credentialing flag, CPT charge-master with RVU, claim status transitions (submitted → paid / denied / appealed / closed), and remit-level allowed/paid/adjustment splits with denial codes.
Planted denial cohorts (timely-filing, prior-auth, medical-necessity, coordination-of-benefits) drive the denials-management missions. Contractual underpayment plants test the M14 expected-vs-paid detection. AR aging follows realistic 0-30 / 31-60 / 61-90 / 90+ bucket distributions across payer mix.
Clean Claim Rate (first-pass yield), Days in AR, denial rate by CPT and payer, contractual yield, write-off rate, and the provider productivity views that surface the difference between high-volume billers and high-collections billers.
Multi-CTE RCM scorecards across every payer + every KPI, provider effectiveness paired pivots ranked within department, payer concentration HHI per service line, edit-attribution analyses (which front-end fixes prevent denials), and patient revenue segmentation capstones with multi-metric ranks. The SQL hospital RCM teams interview on.
Each mission is a real request from someone at the company. Difficulty increases as you go.
Hospital RCM dataset modeled on Epic Resolute / Athenahealth / Cerner billing-system shapes. 24-month window covering ~12K charges → ~10K claims → ~9.5K remits across 200 patients, 30 providers in 5 departments (Cardiology, Orthopedics, Internal Medicine, Surgery, ED), 50 CPT codes spanning E&M + procedures, and 10 payers with mixed plan types and contract terms. Planted denial cohorts (timely-filing, prior-auth, medical-necessity, COB), planted underpayments (paid < contracted), and intentional data-quality gaps (orphan claim_ids, NULL remit fields) drive the audit and reconciliation missions. Schema fully isolated from payer-claims (which models the same workflow from the insurer's POV).
●dimension tables ● fact tables
The patterns billing analysts, denials specialists, and CFOs actually run — on a real-shape charge / claim / remit dataset.
Looking for something different?