Skip to content
HealthTech.Development

Guide

HealthTech Software Architecture: Patterns for PHI, Interoperability and Scale

HealthTech software architecture is the structure of a health product's components and data flows, designed so that PHI is isolated and auditable, clinical data can be exchanged through standards such as FHIR and HL7 v2, and the system stays available and safe to change. Good designs separate sensitive data, centralize access control and make every integration observable.

Architecture in healthcare is shaped by things that rarely matter elsewhere: minimum-necessary access, audit trails that must survive an investigation, partner systems with unpredictable uptime, and customer security reviews that probe your design in detail. For some products it is also shaped by design controls under FDA's quality system requirements.

This guide covers the patterns we use most, with the trade-offs. It is general engineering guidance, not legal advice, and no pattern makes a system compliant on its own.

  • PHI isolation patterns
  • Integration gateways
  • Audit by design
  • Honest trade-offs
Discuss Your HealthTech Project Updated

01

What drives HealthTech software architecture decisions

Start with drivers, not diagrams. The same product idea leads to different architectures depending on four things.

  • Data sensitivity. Is the system a business associate handling PHI, a consumer app handling health data outside HIPAA, or a tool using only de-identified data?
  • Integration surface. Standalone SaaS, EHR-embedded SMART app, device-connected platform, or payer data exchange each imply different gateways and failure modes.
  • Clinical risk. Software that influences diagnosis or treatment may be a regulated device, which constrains change control, documentation and testing.
  • Customer mix. One health system with a private deployment is a different design problem from hundreds of clinics sharing a multi-tenant platform.

02

Core architecture patterns compared

The table compares patterns teams commonly consider. Most real systems combine two or three.

Architecture patterns for HealthTech products
PatternBest forStrengthsTrade-offs
Modular monolithMVPs and early-stage SaaSSimple deployment, easier audit, one security boundary to defendNeeds discipline to keep module boundaries clean; scaling is coarse
MicroservicesLarge teams with distinct domainsIndependent scaling and release; fault isolationMore surface to secure and log; distributed tracing and data consistency work
Event-driven with queuesDevice data, HL7 feeds, notificationsAbsorbs bursts, retries failed deliveries, decouples slow partnersEventual consistency; requires idempotent handlers and replay tooling
Integration gateway (hub-and-spoke)Many EHR and partner connectionsOne place for mapping, monitoring and credentialsCan become a bottleneck or single point of failure if not scaled and monitored
Single-tenant per customerLarge health systems with strict isolation demandsStrong isolation; customer-specific configuration and residencyHigher operational cost; harder to roll out updates uniformly
Multi-tenant shared platformSaaS for many clinics or programsEfficient operations; consistent releasesNeeds rigorous tenant isolation, noisy-neighbor controls and per-tenant keys where required

03

PHI isolation and data segmentation

The simplest way to reduce risk is to hold less PHI in fewer places. Treat identifiers and clinical content as a distinct data domain with its own store, access policy and logging, and let the rest of the system work with opaque IDs.

  • Identity vault pattern. Keep names, contact details and national identifiers in a separate service; product features reference a surrogate patient ID.
  • Field-level encryption for the most sensitive attributes, with keys in a managed KMS and per-tenant keys where the contract demands it.
  • Row-level security in Postgres for tenant isolation, tested with automated cross-tenant access attempts.
  • Segregated analytics. Move de-identified or limited data sets to the warehouse, using a documented de-identification method (HIPAA recognizes Safe Harbor and Expert Determination).
  • No PHI in logs, URLs, analytics events or error trackers. Use correlation IDs and structured logging with scrubbing tests.

04

Multi-tenancy, identity and access control

Access control is where architecture meets the HIPAA minimum necessary standard and the Security Rule's access control and audit control standards. Model roles around real clinical and administrative jobs, not generic admin and user.

Combine role-based access control with attribute checks, such as care-team membership or location, so that a nurse sees the patients on her unit and not the whole tenant. Add a break-glass flow for emergencies that grants wider access, requires a reason and raises an alert for review.

For enterprise customers, support SAML or OIDC single sign-on with the customer's identity provider, and just-in-time provisioning. For patient-facing products, plan identity proofing and account recovery carefully, because recovery flows are a frequent attack path. Apps launching inside an EHR need SMART on FHIR OAuth 2.0 scopes; see SMART on FHIR development.

05

Interoperability architecture: gateways, mapping and FHIR

Integrations fail in ways your own code does not: a hospital interface engine goes down for maintenance, a vendor changes a field, a message arrives twice. Architect for that.

Put partner connectivity behind an integration layer with a canonical internal model. Inbound HL7 v2 messages (ADT, ORU, SIU) land on a queue, are validated and mapped, then written to your domain model or a FHIR store. Outbound writes use idempotency keys and retry with backoff. Failures go to a dead-letter queue with a human-readable reason and a replay button for support staff.

  • Keep partner-specific logic in configuration and mapping files, not scattered through business code.
  • Store raw inbound messages for a defined retention period so you can reprocess after fixing a mapping bug.
  • Version your FHIR profiles and publish a capability statement; see FHIR integration services.
  • Monitor each interface with business metrics (messages per hour, lag, rejection rate), not just uptime.

06

Audit logging, resilience and disaster recovery

Audit logging is not application logging. An audit trail records who accessed or changed which record, when, from where and why, and it should be append-only and protected from the people it records. Write audit events in the same transaction as the data change where possible, then ship them to immutable storage.

For resilience, define recovery time and recovery point objectives per component with the business, not by default. The Security Rule's contingency plan standard requires data backup, disaster recovery and emergency mode operation planning, with testing and revision procedures treated as addressable. Practical designs use multi-AZ databases, tested restores, and graceful degradation: clinicians should still see the last known data when a downstream service fails.

07

Extra architecture considerations for regulated software

If part of your product may be a medical device, architecture should support traceability and change control. Isolating the device-function software from the rest of the product limits how much code falls under design controls and makes verification tractable. IEC 62304 uses the idea of software safety classes and encourages separating higher-risk items from lower-risk ones.

Whether a function is a device depends on intended use and FDA's policies, so confirm with regulatory counsel before relying on any isolation strategy. Our medical device software development team works with this pattern. For product teams still scoping, the FDA SaMD guide explains the boundaries.

08

Common HealthTech architecture mistakes

  • Building point-to-point integrations per customer instead of a mapped gateway.
  • Using one shared database role for all services, which defeats audit and least privilege.
  • Treating audit logs as debug logs, with PHI mixed into application traces.
  • Skipping idempotency in message handlers, causing duplicate orders or results when a partner retries.
  • Letting an AI or analytics pipeline copy identifiable data into untracked stores.
  • Assuming the cloud provider's compliance reports cover your application layer.

09

Turning the architecture into a plan

Capture decisions in lightweight architecture decision records, draw data-flow diagrams that mark every place PHI is stored or transmitted, and use that diagram as the input to your HIPAA risk analysis and your customers' security questionnaires. Our guide to the HealthTech technology stack pairs with this one.

We design and build these systems through HealthTech product development, modernize older ones through product modernization, and review existing designs via product consulting.

Frequently asked questions

Should a HealthTech MVP use microservices?

Rarely. A modular monolith with clear module boundaries is faster to build, simpler to secure and easier to audit. Extract a service when there is a concrete reason, such as an integration gateway with different failure behavior or an inference workload that scales independently.

How do I isolate PHI in a multi-tenant system?

Combine several controls: tenant IDs enforced through row-level security or separate schemas, per-tenant or per-environment encryption keys where needed, a separate identity vault, strict role and attribute-based access, and automated tests that attempt cross-tenant reads. No single control is enough.

Is event-driven architecture suitable for healthcare?

Yes, particularly for device data, HL7 feeds and notifications, where bursts and partner downtime are normal. Pair queues with idempotent handlers, dead-letter handling and replay. Be clear about where eventual consistency is acceptable and where clinicians need strongly consistent data.

What belongs in an audit log for HIPAA purposes?

The Security Rule requires mechanisms to record and examine activity in systems containing ePHI, but does not prescribe a format. Good practice logs user, action, record, timestamp, source and outcome, protects logs from tampering, and reviews them. Do not store PHI content in the log itself.

Does architecture affect FDA regulation?

Architecture does not change whether a function is a device, which depends on intended use. It can, however, make design controls, risk management and verification more manageable by isolating higher-risk software items. Confirm classification with regulatory counsel before designing around it.

Sources and further reading

This page is general information, not legal or regulatory advice. Requirements depend on your product, data and organization; consult qualified counsel for your situation.

Discuss Your HealthTech Project

Share where your product is today and where it needs to go. We'll respond with clarifying questions, a suggested approach and the next practical step.