A warehouse, a lake and a lakeside glass house seen from above

    Healthcare Data Architecture

    Data warehouse vs data lake vs lakehouse: which healthcare data architecture fits?

    Healthcare teams choosing an analytics platform hear three answers: a data warehouse, a data lake or a lakehouse, with data mesh on top. The choice depends on your data types, how you separate identified and de-identified PHI, team size and the questions you ask.

    Data lake vs data warehouse vs lakehouse: which fits each healthcare workload?

    Quick answer

    A lakehouse is usually the safer default once notes, images or FHIR exports enter the picture, because it keeps raw files and governed tables in one store with clear PHI zones. A data warehouse still fits a small team running quality measures and claims reporting on structured data. Agnotic Technologies designs either around PHI zones from the start.

    CriterionWarehouseLakehouse
    Quality measures and regulatory reportingStrong fit: modelled tables and SQLFits once curated tables are built; a plain lake does not
    Claims analytics on 837 and 835 dataStrong fit after parsing and modellingFits, and keeps the raw files for reprocessing
    Operational dashboardsStrong fit for structured, refreshed dataFits through curated tables; check query speed
    Machine learning on notes and imagesPoor fit: text and images sit outside the modelStrong fit: raw files and tables in one store
    Research cohorts on de-identified dataFits in a separate de-identified schemaFits in a separate de-identified zone with its own access
    FHIR Bulk exportsNeeds flattening before loadLand the NDJSON files raw, then build tables
    Team size and skillsSmall SQL teamData engineering skills for storage, formats and jobs
    Schema changes from source systemsPlanned table changes before new data loadsRaw data lands first; table formats handle column changes

    What they are

    What is Warehouse

    A warehouse stores structured, modelled tables and checks data against a schema when it is written. It suits SQL reporting on claims, encounters and quality measures, and is the simplest pattern for a small team, but it handles notes, images and nested FHIR data poorly.

    What is Lakehouse

    A lakehouse is a data lake, raw files of any type in object storage, plus an open table format that adds governed tables with transactions and schema changes. A plain lake, which applies schema on read, is hard to govern for PHI.

    Key differences

    What do schema on write and schema on read mean for health data?

    Schema on write means a warehouse checks data at load, so bad records fail and reports stay consistent. Schema on read means a lake accepts anything, including notes and images, and each job applies structure. A lakehouse keeps both: raw files plus governed reporting tables.

    Is data mesh a fourth option?

    Data mesh is not a fourth option but an operating model: domain teams, such as claims, clinical or pharmacy, own and publish their data as products under shared rules. It runs on a warehouse or lakehouse and suits large organizations with several data teams.

    How should PHI zones be laid out?

    Use at least three PHI zones. A raw zone holds identified source data for pipelines only. A curated zone holds modelled identified data for named roles; 45 CFR 164.514(d)(2) requires identifying who needs which PHI. A de-identified zone, meeting 45 CFR 164.514(b), serves research.

    Which healthcare formats land where?

    FHIR Bulk exports arrive as NDJSON, which the Bulk Data Access guide requires servers to support, and land raw before flattening. HL7 v2 and X12 835 and 837 files land raw before parsing. DICOM images and notes stay as files, with metadata in tables.

    What does an open table format add to a data lake?

    An open table format adds transactions and safe schema changes. The Apache Iceberg specification describes serializable isolation, where readers see only committed snapshots, and schema evolution for adding, dropping, reordering and renaming columns. A failed job cannot leave half-written PHI in a curated table.

    When to use each

    When to use Data warehouse

    • Most of your data is structured: claims, encounters, labs and enrollment.
    • Your main outputs are quality measures, financial reports and dashboards.
    • A small analytics team works mainly in SQL.
    • You do not yet hold notes, images or large FHIR exports.

    When to use Lakehouse

    • You hold notes, images, device data or FHIR Bulk exports alongside claims.
    • Data science teams need raw data for machine learning on text or images.
    • You need to keep raw source files to rebuild tables later.
    • Several engines, such as SQL and notebooks, must read the same data.

    How do you move from a data warehouse to a lakehouse?

    1. Keep the warehouse running. Reports and quality measures continue unchanged while the lakehouse is built beside it.

    2. Land raw data first. Point source feeds at the raw zone as well as the warehouse, so new data is captured in both.

    3. Rebuild one domain at a time. Start with the domain that needs raw data most, often notes or FHIR exports, and build its curated tables.

    4. Reconcile before switching. Run the same measures on both platforms and investigate every difference.

    5. Move reports domain by domain, then retire warehouse tables once nothing reads them.

    6. Set zone access and audit logging before the first identified data lands, not after.

    Frequently Asked Questions

    A data warehouse stores structured, modelled tables and checks data against a schema when it is written. A data lake stores raw files of any type and applies structure when data is read. In healthcare, the lake holds notes, images and raw feeds, while the warehouse serves consistent reports.