DEV Community

Cover image for Bronze, Silver, Gold: Medallion Architecture for Healthcare
Nirmitee.io
Nirmitee.io

Posted on Originally published at nirmitee.io

Bronze, Silver, Gold: Medallion Architecture for Healthcare

The three layers are the easy part. Identity, code mapping, corrected data and metric owners decide whether your numbers can be trusted.

Originally published on Nirmitee.io: Medallion Architecture for Healthcare: How to Build Bronze, Silver and Gold

Medallion architecture has become the default way to organize a healthcare data lakehouse. Clinical, claims and operational data move through three layers: Bronze keeps what each source sent, Silver holds checked and versioned records, and Gold holds the tables people and models use.

The source's main point is that the layers are the easy part. Whether your numbers can be trusted depends on four things the pattern does not give you: patient identity, code and unit mapping, a rule for late and corrected data, and one governed definition for each metric.

The position in six sentences

The source sums up its view in six sentences, paraphrased here:

  1. Medallion is a way to name quality levels. It is not a data strategy.
  2. Treat identity, code mappings and metric definitions as products with owners, beside the three layers.
  3. Bronze is your most sensitive store, so very few people should read it.
  4. Never overwrite a corrected result. Keep every version, so each published number can be reproduced.
  5. Do not use FHIR as your analytics model, even if FHIR is your best feed.
  6. Build no dashboard until someone has named the decision it serves and who acts on it.

What each layer holds

Medallion Bronze, Silver and Gold layer model for healthcare with identity, reference maps and a semantic layer beside the layers

The three layers, with identity, mappings and metrics beside them. Source: Nirmitee.io

  • Bronze stores what each source sent, unchanged: a whole HL7 message, a FHIR record, a payment file. It holds full patient information, so access is the tightest and every read is logged.
  • Silver turns raw data into typed, checked records, keeps every version, and maps codes and units. Direct identifiers are kept apart and access is by role. The source calls Silver the place where most of the engineering and nearly all of the arguments happen.
  • Gold holds what the business uses: reporting tables, measures, cohorts and model features. Data is masked, aggregated or de-identified where possible.

Why healthcare needs this

Healthcare data is harder than most. Results get corrected after they are final, claims get replaced and payments reversed, patients get merged, and code sets differ by site. A layered design helps you:

  • Reprocess when a mapping or measure changes, without asking sources to resend years of data.
  • Explain any number by walking from Gold back to the original message.
  • Combine mixed sources such as FHIR, HL7 v2, claims files and Epic Clarity extracts.
  • Build models that hold up, by rebuilding what was known on a past date.

Build Gold from decisions

Every Gold table should start from a question with an owner. If nobody can name the question, the table waits. Fix the grain first, meaning one row per what: patient-week, encounter or claim line. The source notes most disputes are grain disputes. And store a snapshot each time you publish, so last month's number can be replayed.

What goes wrong

Healthcare data sources refresh at different frequencies, each with its own watermark and data-through date

Each source refreshes on its own schedule. Source: Nirmitee.io

The source's list of production problems, with the fix for each:

  • Different refresh speeds. Admissions data by the minute, Clarity by the day and payments by the week make ratios look wrong for no clinical reason. Give each source its own "data through" date, and only compare periods both sides cover.
  • Late and corrected data. Last week's number changes and trust drops. Keep versions in Silver, snapshots in Gold, and a written rule for restating numbers.
  • Deletes. Withdrawn or wrong-patient results stay in reports unless deletes flow through to Gold.
  • Schema changes. A new field or upgrade breaks parsing. Keep raw text in Bronze and test contracts in Silver.
  • Patient data spreading. Copies appear in development and notebooks. Set a policy per layer and use synthetic data in development.
  • Cost. Reprocessing and always-on compute grow unnoticed. Name a cost owner per pipeline.

The real issues are ownership

The issues that rarely appear on the project plan are about ownership and meaning, and tools do not fix them. Finance, quality and operations may each define "readmission" or "denial rate" differently, and all three can be defensible. The platform makes the disagreement visible; only an owner settles it.

The original guide shows how to build each layer for FHIR, HL7 v2, claims and Clarity, with example queries. It also covers the governance model and who owns what.


Nirmitee.io builds healthcare lakehouses and warehouses where every number can be traced and trusted, for reporting, analytics and AI. For layer-by-layer build steps, read the original: Medallion Architecture for Healthcare on Nirmitee.io.

Dinesh Thorat is Healthtech Growth Partner at Nirmitee.io.

Originally published at nirmitee.io.

Top comments (0)