Composable EHR: when to buy, build, or assemble via APIs and middleware
ArchitectureEHRAPIs

Composable EHR: when to buy, build, or assemble via APIs and middleware

MMichael Trent
2026-05-31
21 min read

A CTO decision framework for composable EHR: buy, build, or assemble with APIs, middleware, and SMART on FHIR.

Composable EHR is the pragmatic answer to a very old healthcare technology problem: how do you modernize core clinical systems without betting the entire organization on a monolith? For CTOs, architects, and digital health leaders, the real question is not whether to “custom build” or “buy” an EHR in the abstract. It is whether you can reach time-to-value quickly while preserving optionality for future workflows, apps, and integrations. In practice, that means deciding which capabilities belong in a certified core, which should be assembled from modular services, and which are best delivered through API-first composition and middleware.

This guide is a decision framework, not a vendor pitch. We will use the same mindset you would apply to any complex platform program: define the minimum interoperable data model, identify the clinical and operational workflows that truly differentiate your organization, then choose the least risky path to production. Along the way, we will connect the architecture choices to interoperability standards like HL7 FHIR, app extensibility via SMART on FHIR, and the role of middleware in reducing integration drag. The goal is simple: avoid locking innovation behind a single vendor’s roadmap.

What this article covers: when to buy a certified core, when to build differentiated experiences, when to assemble services through APIs, and how to evaluate total cost of ownership, compliance, and ecosystem risk.

1. What a composable EHR actually means

Certified core vs composable layers

A composable EHR is not “no core” and it is not a promise that every feature should be microservices. It is a deliberate separation between the system of record and the systems of engagement, intelligence, and extension. In other words, the certified core handles regulated clinical data, identity, auditability, and baseline workflows, while modular services handle scheduling, patient engagement, document orchestration, analytics, and specialized clinical apps.

This distinction matters because healthcare systems are constrained by compliance and safety requirements that do not exist in many other enterprise domains. If the core is already certified, tested, and embedded in the organization’s care delivery model, replacing it can be far riskier than layering around it. That is why a hybrid strategy is often the winning move: buy the regulated core, then build or assemble the differentiating edge.

Why API-first matters more than UI-first

An API-first approach lets teams design around stable contracts rather than brittle screens. That reduces coupling between the clinical workflow and the software implementation, making it easier to swap modules, launch new patient experiences, or add AI services later. It also helps teams treat integrations as products, with versioning, SLAs, and backward compatibility expectations.

For healthcare, API-first is not a trendy preference. It is the only practical way to support cross-system workflows across labs, imaging, revenue cycle, patient portals, and external apps. If your architecture cannot expose and consume APIs cleanly, every new use case becomes a one-off integration project that increases maintenance cost and delivery risk.

Where middleware fits in the stack

Middleware is the connective tissue between heterogeneous systems, standards, and vendors. It can broker messages, transform data, orchestrate workflows, and enforce security controls without forcing every system to know every other system’s schema. In healthcare, this role is especially important because you are often connecting legacy systems, cloud services, data warehouses, and third-party clinical tools.

The market signal is clear: the healthcare middleware market is projected to grow strongly through 2032, reflecting the reality that integration has become a strategic layer, not just plumbing. That growth is a clue for architects: if middleware is becoming a category with dedicated investment, you should treat it as a core design decision rather than an afterthought.

2. The three architecture choices: buy, build, or assemble

Buy when regulation and commodity workflows dominate

Buy when the functionality is widely standardized, highly regulated, or costly to maintain in-house. Examples include core charting, e-prescribing, identity and access management, basic billing workflows, and certified interoperability functions. If the vendor has already absorbed the compliance burden and regulatory churn, buying reduces both implementation risk and operational overhead.

Buying also makes sense when your internal team would otherwise spend months rebuilding baseline features that are not a source of differentiation. The moment your roadmap turns into “build the same thing everyone else already has,” you are no longer creating strategic value. You are paying an innovation tax to reimplement commodity software.

Build when the workflow is your differentiator

Build when the workflow is unique to your organization, clinically important, and hard to buy without compromise. That might include specialty-specific decision support, care navigation, complex intake logic, configurable consent flows, or analytics surfaces tailored to a care model. If a workflow directly impacts operational throughput, patient outcomes, or market position, it may be worth owning the software.

This is where many organizations misjudge the problem. They assume “build” means writing everything from scratch, when in reality it often means building a thin but valuable layer on top of a purchased core. The best custom work in healthcare is usually focused, measurable, and tightly bound to a workflow that matters.

Assemble when speed and flexibility matter most

Assemble when you need time-to-value quickly and want to preserve future flexibility. This model uses APIs, middleware, workflow engines, and modular applications to compose a solution from certified and specialized components. It is especially strong when you need to connect a core EHR with patient engagement tools, scheduling, documentation helpers, prior auth automation, or analytics platforms.

Assembly gives teams the leverage of a vendor ecosystem without surrendering all control. It is the right middle path when the answer is “we cannot afford a 3-year custom build, but we also cannot accept a closed monolith.” The architecture principle is simple: standardize the contracts, not the entire application surface.

3. Decision criteria CTOs should use before choosing a path

Clinical workflow criticality

Start by classifying workflows by clinical risk and operational importance. A medication reconciliation workflow, for example, has far different safety implications than a marketing consent preference center. The higher the safety and regulatory risk, the more you should prefer proven, certified capabilities or heavily governed extensions.

Map the top 3–5 workflows end to end before selecting a vendor strategy. This advice aligns with the practical guidance from the source material: identify what must be integrated, what can change, and where the minimum interoperable dataset begins. If the organization cannot describe those workflows clearly, it is too early to make an architecture commitment.

Data ownership and portability

If your data is trapped behind proprietary schemas, your future innovation budget shrinks. Portability is not just a legal or contractual issue; it is a product strategy issue. A composable EHR should preserve the ability to export clinical data, transform it, and feed it into downstream systems without heroic reverse engineering.

Evaluate whether the vendor supports canonical healthcare data models, standards-based export, and event-driven integration. A platform that can only share information through custom point-to-point interfaces creates hidden switching costs. Those costs rarely show up in the initial proposal, but they dominate the long tail of ownership.

Integration surface area

The larger your ecosystem, the more valuable composability becomes. Hospitals and clinics rarely run one system; they run dozens. That includes labs, imaging, claims, identity providers, telehealth, document management, data warehouses, and third-party apps, all of which need clean exchange patterns.

If the vendor ecosystem is already large, your design should assume change rather than stability. The architecture should be built to absorb vendor swaps and new services with minimal disruption. That is one reason middleware remains essential: it reduces the blast radius when upstream and downstream systems evolve.

Time-to-value versus long-term optionality

This is the core tradeoff. Buying a certified core accelerates launch, but can constrain customization. Building gives you control, but usually delays value and increases delivery risk. Assembling with APIs and middleware often delivers the best balance, provided you have the internal discipline to manage interfaces and governance.

In board-level terms, the question is not “what is cheapest?” It is “what gets us safe value now without making future innovation expensive?” That framing is especially important in healthcare, where a rushed platform choice can create years of drag in compliance, onboarding, and integration work.

4. A practical buy vs build matrix for EHR programs

Use the following table to anchor executive discussions. It is intentionally simplified, but it captures the tradeoffs that most healthcare teams face when evaluating a composable EHR strategy.

Decision areaBuyBuildAssemble via APIs/middleware
Time to launchFastestSlowestFast to moderate
Clinical compliance burdenLower, if certifiedHighestShared across layers
Workflow differentiationLimitedHighestHigh at the edges
Integration flexibilityModerateHigh if well designedHighest
Vendor lock-in riskHigherLowerModerate
Total cost of ownershipPredictable, but can riseUnpredictableUsually best balance

The table should not be read as “buy is bad” or “build is good.” A strong organization often buys the foundational systems and builds the differentiators on top. The most successful programs think in layers, not binaries.

How to score each option

Create a weighted scorecard with criteria such as compliance readiness, interoperability, implementation speed, ownership cost, and strategic flexibility. Assign weights based on your organization’s priorities. A rural health network with limited IT staff may weight speed and certification far more heavily than a digital-first specialty group.

Then run scenario analysis. For example, ask what happens if the vendor changes pricing, if a new interoperability rule lands, or if your M&A strategy adds a new clinic group next year. The best choice is the one that survives realistic change, not the one that looks good in a static demo.

How to identify false economy

There are two common traps: underestimating the cost of integration and underestimating the cost of change. A cheap core that requires custom interfaces for everything else can become more expensive than a better platform with cleaner APIs. Likewise, a seemingly expensive modular stack may outperform a cheaper bundled suite because it reduces future rework.

To avoid false economy, calculate the cost of each integration, each vendor support ticket, and each release cycle delay. If those numbers are missing from the business case, the analysis is not complete.

5. API-first composition patterns that actually work in healthcare

SMART on FHIR for pluggable apps

SMART on FHIR is one of the clearest examples of composable healthcare design. It allows external apps to launch securely within an EHR context while using standardized authorization and data access patterns. That gives product teams a practical way to extend the core without forking it.

For CTOs, the value is architectural leverage. You can add specialty tools, decision support, or patient-facing modules without waiting for a vendor to rewrite the core. For developers, it means fewer bespoke integration contracts and a cleaner path to reuse.

Middleware for orchestration and translation

Middleware should not be viewed as a dumping ground for every integration problem. The right use case is orchestration, protocol transformation, message routing, and governance across systems that cannot speak natively. In healthcare, it often sits between FHIR APIs, HL7 v2 feeds, identity systems, and operational tooling.

When designed well, middleware reduces point-to-point complexity and creates a clearer support boundary. It also becomes a security enforcement point, which matters for audit, logging, and data minimization. If you want a broader market lens on this category, the growth of the healthcare middleware market shows that organizations are formalizing this layer instead of improvising it.

Event-driven architecture for state changes

Not every healthcare integration should be synchronous. Some workflows, such as notifications, document processing, data replication, and downstream analytics, are better handled by events. Event-driven design can lower coupling and improve resilience when implemented with strong observability and idempotent consumers.

The practical benefit is that systems can react to patient, encounter, or order changes without tightly binding every consumer to the source system. That makes it easier to add new use cases later. It also improves the survivability of integrations when one downstream service goes offline.

6. Vendor ecosystem strategy: how to avoid platform gravity

Choose vendors with open extension points

In healthcare, vendor ecosystems are not optional. The question is whether the ecosystem is open enough to let you add value on your terms. Look for documented APIs, sandbox environments, partner programs, versioned endpoints, and explicit support for standards-based interoperability.

A healthy ecosystem gives you choice. It lets you compare vendors for scheduling, patient engagement, analytics, AI note assistance, and workflow automation without rewriting the integration layer each time. This is the difference between a platform and a trap.

Beware of proprietary convenience

Proprietary convenience is tempting because it reduces short-term implementation work. But if every extension requires a vendor-specific SDK or custom contract, the organization becomes dependent on one roadmap. That dependency is especially risky when innovation cycles are faster than procurement cycles.

This is why architects should demand a clear extensibility model. Can you swap a module? Can you route data through middleware? Can you test changes in a lower environment before production? If the answer is no, the ecosystem is more closed than it appears.

Partnerships are part of the product plan

Modern healthcare software is built as much through partnerships as through code. The strongest vendor ecosystems bring together EHR platforms, integration providers, cloud infrastructure, and specialized apps. That ecosystem determines how quickly you can ship, how much technical debt you accumulate, and how much optionality you keep.

If you need a broader analogy, think of it like a supply chain. A good procurement strategy does not merely buy the cheapest component; it evaluates resilience, substitution risk, and vendor health. The same logic applies to healthcare platforms, as seen in how teams assess supplier risk during capital events and contract changes.

7. Security, compliance, and extensibility cannot be separated

Compliance is a design input

Healthcare programs fail when compliance is treated as a late-stage checklist. Security controls, audit logging, access management, and data minimization need to be designed from day one. That is especially true when you are composing multiple systems, because every boundary becomes a potential leakage point.

Use privacy and security as architecture requirements, not documentation deliverables. The same discipline that goes into a privacy notice for consumer apps, such as the principles discussed in data retention and privacy notices, should guide your internal data-sharing rules in healthcare. If data flow is unclear, compliance will be fragile.

Identity, authorization, and least privilege

Composable systems multiply the number of identities, tokens, and service accounts in play. That makes least privilege and centralized identity governance essential. You should know which app can read which resources, for how long, and under what consent conditions.

For external and patient-facing tools, be explicit about scopes, token lifetimes, revocation, and audit trails. The more modules you add, the more important it becomes to standardize identity patterns across the stack. Security inconsistency is one of the fastest ways for a composable program to become unmanageable.

Extensibility without exposing unnecessary risk

Extensibility is valuable only if it is governed. Every new app, plugin, or integration should pass a security review, data classification check, and change-management process. The same goes for middleware transformations that could inadvertently reshape sensitive clinical data or introduce integrity issues.

Good extensibility feels boring because it is predictable. That predictability is what lets teams scale safely. If extensibility becomes “anyone can connect anything,” the architecture will eventually collapse under its own flexibility.

8. Time-to-value: how composable EHR programs deliver faster without cutting corners

Start with a thin slice

The fastest way to prove a composable EHR strategy is to implement one meaningful workflow end to end. Choose a slice with real clinical value, such as referral intake, discharge follow-up, or specialty scheduling. Then wire together the core, middleware, and one extension layer using the actual security model and data contracts you intend to keep.

This approach surfaces the real integration work early. It also exposes whether your chosen vendors can support the practical realities of implementation. If a small, real workflow is hard to deliver, a large rollout will be even harder.

Use templates, not one-off heroics

One of the biggest gains from composability is repeatability. Once you have a reusable API pattern, a workflow template, or a standardized middleware route, you can replicate it across departments and sites. That is how time-to-value compounds over time.

Think of this like a strong software release process. Guidance on versioning and release workflows is useful here because composable healthcare teams need the same discipline: version contracts, publish changes safely, and avoid breaking consumers. That operational rigor is often what separates scalable platforms from chaotic integration sprawl.

Measure adoption, not just launch

A system is not valuable simply because it goes live. Measure clinician adoption, time saved per workflow, reduction in manual handoffs, support ticket volume, and downstream data quality. These metrics reveal whether composability is actually making the system easier to use.

For example, a beautiful API layer that still forces clinicians to click through six screens is not a win. Similarly, a fast integration that produces poor data quality will create downstream rework in reporting and analytics. Time-to-value should include both speed and sustained usability.

9. Reference architecture for a composable EHR

Layer 1: certified system of record

This layer contains patient identity, encounters, notes, orders, medications, and audit-sensitive records. It must be stable, secure, and compliant. In many organizations, this is the purchased core because the cost of failure here is too high to justify a bespoke build.

Its job is not to be everything. It is to be trustworthy, operationally supported, and standards-aware. A good core gives you a durable base without trying to own every adjacent workflow.

Layer 2: middleware and integration services

This layer handles translation, routing, orchestration, and event propagation. It connects the core to lab systems, billing, portals, analytics platforms, and external apps. It should be observable, versioned, and resilient under change.

If this layer is weak, every integration becomes fragile. If it is strong, the organization can evolve one service at a time. That is why middleware is often the most underappreciated part of a composable EHR architecture.

Layer 3: modular experience and innovation services

This is where you build what matters most to your users. Examples include specialty-specific worklists, patient engagement modules, AI documentation helpers, care gap alerts, and operational dashboards. These services should be replaceable without forcing a rebuild of the core.

To keep them replaceable, define contracts carefully and avoid leaking core assumptions into the UI or service logic. The more portable these modules are, the more your innovation budget is protected. That is the essence of composability.

Pro Tip: If a feature can be deleted or swapped in 12 months without rewriting the core, it belongs in the composable layer. If deleting it would break the clinical record, it belongs in the core.

10. A CTO’s checklist for choosing the right path

Questions to ask before you commit

Ask whether the target workflow is commodity or differentiating, whether the data model is stable enough for standards-based integration, and whether the vendor ecosystem is open enough for future change. Ask how the solution handles certification, auditability, identity, and rollback. Ask what happens when pricing, regulations, or partner availability changes.

Then ask the harder question: what is the minimum solution that gets the organization live safely? Many teams overbuild because they confuse control with value. In healthcare, the best architecture is usually the one that gives you the most strategic flexibility per unit of risk.

Red flags that point away from building everything

If your team lacks healthcare integration experience, if compliance is already stretched, or if you need production value within a year, a full custom build is usually the wrong answer. If the proposed architecture depends on manual workflows to compensate for poor integration, that is another warning sign. If the vendor cannot clearly explain how APIs, versioning, and sandboxing work, be cautious.

Remember that “build” is not a virtue by itself. The strategic goal is to own the right layers, not all layers. Over-owning the wrong layer slows delivery and increases risk.

Red flags that point away from pure SaaS lock-in

If the vendor cannot export data cleanly, charges heavily for access to APIs, or limits extension to proprietary channels, you are looking at future friction. If every workflow change requires a professional services engagement, innovation will be slow and expensive. If the platform cannot support external apps through standards like FHIR-based extensibility, that is a serious constraint.

This is where a composable strategy pays off. It gives you a way to buy trust where trust matters, while preserving engineering control where differentiation matters. That balance is the core value proposition of the approach.

11. Implementation roadmap: 90 days to a credible composable EHR plan

Days 0–30: map workflows and constraints

Document the top workflows, the data objects they touch, the systems involved, and the compliance boundaries. Identify which work is clinically critical, which is operationally painful, and which can be deferred. This produces a realistic scope that executives can understand and engineers can execute against.

Also build your minimum interoperability checklist. Define the FHIR resources, vocabularies, identity systems, and event types that must be supported. Without this step, vendor demos often produce false confidence.

Days 31–60: prototype the thin slice

Implement one end-to-end workflow using the chosen core, middleware, and one modular extension. Use real authentication, real test data, and real observability. The point is not polish; the point is to prove the composition model works in your environment.

During this stage, pay attention to developer experience. How fast can a new integration be built? How clear are logs and traces? How painful is debugging across vendor boundaries? These answers will tell you a lot about long-term scalability.

Days 61–90: decide and operationalize

By the end of the first 90 days, you should know whether the architecture is viable, where the integration bottlenecks are, and whether the vendor ecosystem can support your roadmap. From there, finalize the buy/build/assemble split and set governance rules for changes. That includes release management, security reviews, and standards for future extensions.

Do not wait until full rollout to define operating discipline. A composable EHR is only as effective as its governance model. Strong architecture without strong process will still drift into sprawl.

FAQ

What is the biggest advantage of a composable EHR?

The biggest advantage is flexibility without starting from scratch. You can buy a certified core for regulated functions, then add modular services and API-first extensions for the workflows that differentiate your organization. That reduces time-to-value while preserving your ability to innovate later.

When should a healthcare team buy instead of build?

Buy when the functionality is commodity, safety-critical, or heavily regulated. Core charting, identity, access control, and standard interoperability functions are usually better purchased than rebuilt. If the work does not meaningfully differentiate your organization, buying is typically the safer and faster path.

Why is middleware important in composable EHR architecture?

Middleware connects heterogeneous systems, translates data formats, and orchestrates workflows without forcing every system to integrate directly with every other system. In healthcare, that reduces complexity, improves resilience, and creates a cleaner security boundary. It is often the layer that makes composition practical at scale.

How does SMART on FHIR support extensibility?

SMART on FHIR enables external apps to launch in a secure, standards-based way within an EHR context. That gives teams a controlled method for adding functionality without modifying the core system. It is one of the best tools for creating a pluggable healthcare platform.

What is the most common mistake in composable EHR programs?

The most common mistake is treating integration as a one-time implementation task instead of an ongoing product and governance concern. Teams often underestimate versioning, support, security, and change management across the ecosystem. Without discipline, composability turns into sprawl.

How do you avoid vendor lock-in?

Use standards-based data models, insist on documented APIs, maintain ownership of your integration layer where possible, and keep critical workflows modular. Contractual protections matter too, but technical portability is what preserves long-term leverage. The more your architecture depends on one proprietary path, the harder it is to change later.

Conclusion: the best EHR strategy is layered, not binary

The right answer to buy vs build is almost never “all of one.” For most healthcare organizations, the winning approach is to buy a certified core, build the differentiating workflows, and assemble the rest through API-first composition and middleware. That is how you get time-to-value without sacrificing future innovation.

If you are a CTO or architect, your job is to protect the organization from two kinds of failure: overbuilding commodity capabilities and overcommitting to closed platforms. A composable EHR gives you a third path. It lets you move quickly today while keeping options open for tomorrow.

For teams modernizing their healthcare stack, that usually means treating interoperability as a strategy, not a checkbox. It also means choosing vendors and tools that support extensibility, standards, and clean operational ownership. If you want to extend this thinking to adjacent programs, compare it with broader platform planning in EHR software development, integration market dynamics in healthcare middleware, and ecosystem-driven implementations in healthcare API market analysis.

If you are building the next-generation EHR stack, the safest path is not the biggest one. It is the most composable one.

Related Topics

#Architecture#EHR#APIs
M

Michael Trent

Senior SEO Content Strategist

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.

2026-05-31T06:29:45.306Z