Healthcare Operations · Revenue Cycle · Tableau & DuckDB SQL

Turning $587.5K in margin leakage and a 23.9% readmission crisis into an executive action plan.

An end-to-end clinical, operational, and financial audit of 6,301 acute encounters across 941 Massachusetts patients—combining DuckDB SQL window modeling with a 4-view Tableau executive workbook.

DuckDB SQLTableau (.twbx)LEAD() Window Functions O/E Length of StayPayer Margin LeakageRisk Stratification Python SVGMITRE Synthea™ EHR
30-Day Readmission Rate
0%
439 / 1,838 stays (+8.88 pts vs 15% goal)
Uncovered Claim Cost
$0K
74.19% uncovered · 25.81% payer coverage
High-Risk Readmission Share
0%
429 of 439 readmissions (78.8% encounters)
Clean O/E Length of Stay
0×
1.09d clean avg LOS (vs. 18.04d raw; 5 outliers)
The Operational Problem

Three critical blind spots across clinical care and billing

Hospital leadership saw elevated inpatient readmissions, severe uncovered claim exposure, and an alarming 18-day raw length of stay—without knowing which patients, payers, or data defects drove them.

01 · READMISSIONS

Why is readmission 8.9 pts above our 15% goal?

Six oncology-related clinical drivers generate 430 of 439 readmissions (97.9%), with Stage 1 Small Cell Lung Cancer hitting a 96.8% inpatient readmission cycle.

02 · REVENUE LEAKAGE

Where is $587,546 in claim cost going uncovered?

Payers cover just 25.81% of $791,981 in total claims. Medicare ($180.1K) and Self-Pay / Uncompensated Care ($92.6K) alone generate 46.4% of total leakage.

03 · DATA QUALITY

Is inpatient length of stay really 18.04 days?

Just 5 unclosed outlier encounters (74 to 20,215 days) inflated raw inpatient LOS by 16.5×; isolating them reveals a healthy 1.09-day clean average (1.00 O/E).

Pillar 2 · Patient Risk Stratification

94.8% of readmissions cluster in two High-Risk adult tiers

Stratifying 1,838 inpatient stays across Clinical Risk Tier × Age Cohort isolates extreme concentration—plus a hidden Moderate-Risk Pediatric signal representing 100% of non-High-Risk readmissions.

Risk Tier × Age Cohort Readmission Matrix

Full scope (n = 1,838 inpatient stays · 439 readmissions)
Pediatric
Young Adult
Middle-Aged
Senior
High
Risk
0.0%
0 / 1 stay
$1.4K leak
4.6%
13 / 284
$33.8K leak
39.0%
203 / 520
$148.5K leak
25.8%
213 / 825
$288.3K leak
Moderate
Risk
20.4%
10 / 49
$9.9K leak
0.0%
0 / 71
$32.8K leak
0.0%
0 / 37
$18.8K leak
0.0%
0 / 30
$9.3K leak
Low
Risk
0.0%
0 / 2
$8.9K leak
0.0%
0 / 13
$28.1K leak
0.0%
0 / 6
$6.8K leak
—
0 stays
$0.9K leak
Moderate-Risk Pediatric (20.4%, 10/49 stays) accounts for 100% of all non-High-Risk readmissions, while Low-Risk has 0 readmissions.

Margin Leakage by Risk Tier × Age Cohort

Total uncovered claim cost ($K) across cohorts
High-Risk Senior ($288.3K) and High-Risk Middle-Aged ($148.5K) represent 74.3% of all system margin leakage.
Pillar 3 · Payer Mix & Financial Exposure

Medicare & Self-Pay drive 46.4% of uncovered claim leakage

Evaluating payer coverage rate alongside inpatient readmission rate exposes HRRP penalty risk on Medicare and uncompensated care gaps on Self-Pay.

Uncovered Claim Cost by Payer ($587.5K Total)

Margin leakage ranked across all 10 payers
Medicare ($180.1K, 32.4% readm) and Self-Pay ($92.6K, 0% cov) require immediate dual clinical-financial navigation.

Payer Performance & Exposure Table

Full Historical Scope (n = 6,301 encounters)
PayerEnc.Inpt. Readm.Cov.Leakage
The Deliverable

Four executive views from the Tableau workbook

Portable analytical views backed by DuckDB SQL ETL and verified against exact computed totals in data/analysis_summary.json.

How It Was Built

From synthetic Synthea EHR data to executive strategy

1

Ingest

6,301 acute encounters across 941 Synthea patients.

2

Window SQL

DuckDB LEAD() tracks 30-day inpatient readmissions.

3

Audit LOS

AVG() OVER() O/E benchmarks + is_los_outlier flags.

4

Star Schema

fact_encounters_v1 & dim_patients_v1 modeled cleanly.

5

Visualize

4-view Tableau .twbx workbook & interactive web report.

DuckDB SQL ETL

  • LEAD() 30d readmissions
  • AVG() OVER() O/E LOS
  • Outlier flagging
  • Star-schema exports

Tableau Workbook

  • 4 executive views
  • Calculated KPI parity
  • Scope filtering
  • Packaged .twbx

Revenue Cycle

  • Margin leakage audit
  • Payer coverage matrix
  • HRRP risk exposure
  • Self-Pay screening

Reproducibility

  • HIPAA-safe Synthea data
  • analysis_summary.json
  • Python SVG generator
  • GitHub Pages live app
Strategic Recommendations

Five quantified clinical, financial, and data-ops actions

1

Oncology Transitional Care & Outpatient Infusion

Deploy 72-hour post-discharge nurse navigation and shift cyclical SCLC/breast stays to outpatient infusion.

40–60% Cut430 oncology readmissions
2

Self-Pay Medicaid Presumptive Eligibility Screening

Screen uninsured admissions ($92.6K leakage, 0% coverage) at intake for Medicaid (38.3% coverage).

$30K–$35K+Annual margin recovered
3

Medicare HRRP Protection & BCBS Contract Audit

Pair High-Risk Senior care management with BCBS denial audits to lift coverage above 25.8%.

$256.5K43.7% of total leakage
4

Targeted Moderate-Risk Pediatric Discharge Audit

Review the 10 pediatric readmissions (20.4% rate) to close gaps in the sole non-High-Risk readmission tier.

100% SignalNon-High-Risk readmissions
5

Automated EHR 30-Day Open-Encounter Closure Checks

Flag unclosed encounter timestamps in ETL pipelines to eliminate 74–20,215 day LOS distortions.

16.5× Fix18.04d raw → 1.09d clean

Explore the SQL ETL & Tableau Workbook

The DuckDB SQL pipeline, computed JSON metrics, SVG chart generator, and packaged Tableau workbook are all open on GitHub.