Updating MEPS with 2024 data

2024 MEPS data is out, which means it's time to update the MEPS demo database in VerbaGPT.

That means running a substantial pipeline:

  1. Study how the current MEPS data is loaded and pin down exactly which files are needed (household component, conditions, pharmacy, and so on)
  2. Go through the historic loads and winnow the columns down to what's actually needed
  3. Download the data. The files are so wide they don't fit in Excel OR SQL, so this part is text-editor surgery
  4. Load winnowed data into SQL
  5. Re-run the full custom risk scoring exercise plus the constrained regression modeling to update the coefficients. That workflow alone is enormous, I detailed it in a recent post
  6. Review, verify, and sanity-check the uploaded data

Phew. That's a lot of handoffs across a lot of programs: the AHRQ site, a text editor, SQL, Snowflake, and back again.

From six phases of manual work to one reusable expertise

So naturally, I'm putting MCP for X to work: encode the whole thing as a reusable expertise, invoke it from VerbaGPT, and see if I end up with an updated Snowflake database, another year of MEPS added, re-calibrated, risk scored, and checked.

Stay tuned for a follow up post. I'll also share the actual expertise that you can fork/make it your own.

← All posts
mepsmcpforxverbagptrisk-adjustmentdata-engineering