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 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.

Clinical data sources feeding one aggregation hub through adapters, with consuming teams reading through one typed SDK
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 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 with normalized history, idempotent ETL and analyst replicas, like the one in our warehouse case.

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.