Source: https://quadevs.com/insights/clinical-data-aggregation/

Title: Clinical data aggregation platform architecture | quadevs

[Home](https://quadevs.com/)/ [Insights](https://quadevs.com/insights/)/ Clinical data aggregation: a hub architecture

# Clinical data aggregation: a hub architecture

Reading one clinical source is easy. Reading twelve, each with its own auth, schema and quirks, gets expensive when every consuming team pays that cost separately.

Published 2026-08-27 Updated 2026-11-16 7 min read

A **clinical data aggregation platform** is an API layer that gathers many clinical data sources under one read contract. Consuming teams use a single typed SDK, schema changes at the sources stop at the platform, and each request is budgeted and audited. Integration cost grows with every source and every team that connects to it, and the platform pays that cost once.

Most healthcare data organizations pass through the state before aggregation. Each internal team holds credentials for several clinical systems and has written its own pagination, retries and authentication for each. One source changes a payload and four services break in four different sprints. Rate limits trip on the combined load that nobody coordinates. Our [clinical data aggregation hub](https://quadevs.com/case/clinical-data-hub/) started from exactly that situation.

## The real problem: five disagreements

Aggregation looks like a data problem; in practice it is about contracts. Clinical sources disagree on identity (which patient identifier wins), shape (nested documents next to flat claim rows), meaning (what "active" means for a medication in each system), timing (live APIs next to nightly batch files) and failure (some systems error loudly, others return stale data with a 200).

A team that integrates a source directly has to settle all five again, and its answers will differ from the next team's. Two internal services that disagree on a patient's active medications are the normal result of duplicated integration logic. The platform's product is a single set of answers, written into one contract and kept in one place.

## The hub pattern

The design that has held up in production for us has three boundaries.

Adapters own the sources. Each source connects through an adapter that translates its authentication, schema and quirks into the hub's internal model, and nothing source-specific passes into the hub core. A new source means a new adapter; no consumer changes.

The contract owns the consumers. They see one API with one authentication surface and ideally build against a generated, typed SDK. Our hub ships a typed C# SDK to downstream services, so adding a source to a service is a package update.

Versions absorb change. Endpoints carry a schema version. A source change is handled in its adapter; a contract change ships as a new version next to the old one, and consumers move when it suits them.

Two operational pieces complete it. Request budgets keep one busy consumer from starving the rest or tripping a source's rate limit for everyone. Request-level audit records who asked for what and when, which answers compliance questions that would otherwise mean searching a dozen origin systems.

Source quirks end at the adapters; consumers get one contract, one SDK and one auth surface.

## Designing the read contract

Exposing the union of every field every source offers is tempting and wrong. The contract should follow what consumers read: flat where they think flat, joined where they always join, paginated to match real access patterns.

FHIR's place depends on the consumers. Teams downstream of [USCDI-shaped exchange](https://quadevs.com/insights/uscdi-and-fhir/) often think in FHIR resources, and a FHIR facade suits them. Product teams that need flat read models would find FHIR nesting gets in the way. Either way, the semantics are decided once: one definition of an active medication, one authoritative patient identity, held in the hub.

## Failure modes to design against

The hub can become a bottleneck, since central reads mean central failure. Replicas for heavy reads, caching with stated staleness limits and budgets that shed load fairly are required from the start.

Staleness can spread silently. A source that stops updating but keeps answering 200 will mislead every consumer at once, so freshness is monitored per source and the contract reports the age of the data it returns.

Adapters can leak. The first source quirk handled in the hub core "just this once" removes the boundary, and every later source inherits the complexity. Holding that line from the first day costs far less than restoring it.

Schema changes can spread. If a contract change forces consumers to release together, the hub has rebuilt point-to-point coupling. Versioned endpoints and deprecation windows prevent that.

## When you need a warehouse

The hub answers what is true now across sources. It cannot say what was true last quarter, and adding history to a live-read hub hurts both jobs. Longitudinal questions (measures over time, cohort analytics, regulatory reports) belong in a [clinical data warehouse](https://quadevs.com/insights/clinical-data-warehouse/) with normalized history, idempotent ETL and analyst replicas, like the one in our [warehouse case](https://quadevs.com/case/clinical-data-warehouse/).

The two fit together: the hub serves the present, the warehouse keeps history, and the hub's adapters often make the cleanest feed for the warehouse. Start with the hub when consumers keep re-integrating sources, and with the warehouse when analysts lack history.

1. [The real problem: five disagreements](https://quadevs.com/insights/clinical-data-aggregation/#the-actual-problem)
2. [The hub pattern](https://quadevs.com/insights/clinical-data-aggregation/#hub-pattern)
3. [Designing the read contract](https://quadevs.com/insights/clinical-data-aggregation/#contract-design)
4. [Failure modes to design against](https://quadevs.com/insights/clinical-data-aggregation/#failure-modes)
5. [When you need a warehouse](https://quadevs.com/insights/clinical-data-aggregation/#when-warehouse)

## Common questions

How does aggregation differ from a data warehouse?

An aggregation hub serves live reads behind one API; a warehouse stores normalized history for analytics. The hub answers what is true now across sources, the warehouse what happened over time. Platforms tend to grow both, usually starting with the hub.

   How do you handle schema changes across sources?

At the hub. Endpoints carry a schema version, adapters translate each source into the hub contract, and consumers keep using the SDK they have. A changed source payload becomes one adapter change on the hub side.

   Where does FHIR fit in an aggregation layer?

FHIR is often one of the sources and sometimes the contract itself. Consumers that think in FHIR resources get a FHIR facade; consumers that need flat read models get a typed REST contract over FHIR-sourced data.

   How is access controlled in an aggregation hub?

Per request: who asked, for what and within which budget. Budgets keep one consumer from starving the others, and a per-request audit log answers access questions from one place.

## We built this in production

[### Clinical data aggregation hub

Healthcare · API hub  .NET · ASP.NET Core · typed SDK View case](https://quadevs.com/case/clinical-data-hub/)   [### Clinical data warehouse

Healthcare · data systems  .NET · MSSQL · Windows services · ETL View case](https://quadevs.com/case/clinical-data-warehouse/)   [### FHIR · TEFCA · USCDI integration

Healthcare · interop  FHIR R4 · SMART v2.1 · TEFCA · USCDI v3 · Da Vinci · CARIN BB · US Core View case](https://quadevs.com/case/fhir-tefca-uscdi/)

## Keep reading

[### Clinical data warehouse design: notes from production

 Data · 7 min read Read](https://quadevs.com/insights/clinical-data-warehouse/)   [### USCDI and FHIR: data classes and the API that carries them

 Interop · 8 min read Read](https://quadevs.com/insights/uscdi-and-fhir/)

Service [Clinical data warehouses and data aggregation platforms](https://quadevs.com/healthcare/clinical-data-platforms/)

Practice [Healthcare software development](https://quadevs.com/healthcare/)

[Send a brief. Reply within 1 business day](https://quadevs.com/contact/)  [or email hello@quadevs.com](mailto:hello@quadevs.com)
