Skip to content

Building HIPAA-Ready Clinical Software: A Practical Architecture Guide

reading time
2 min
published
6 Jul 2026
industry
Healthcare

How to design clinical software that passes security review — PHI boundaries, FHIR integrations, audit trails, and the mistakes that cost startups months.

Healthcare software has a reputation for being slow to build, and most of that reputation is earned in the last mile: the point where a working prototype meets a hospital security review. Teams that treat compliance as a feature to bolt on late routinely lose three to six months re-architecting. Teams that draw the right boundaries on day one barely notice the review.

This guide covers the architectural decisions that matter most when you are building patient-facing or clinician-facing software that touches protected health information (PHI).

Draw the PHI boundary first

The single highest-leverage decision is deciding exactly which services are allowed to see PHI. Keep that surface as small as possible — ideally one service that owns identity-linked clinical data, with every other service operating on de-identified or pseudonymous records.

A small PHI boundary shrinks everything downstream: fewer services need encryption-at-rest guarantees, fewer logs need scrubbing, fewer engineers need access, and your BAA conversations with vendors get dramatically shorter.

Integrate through FHIR, even internally

If you exchange data with EHRs, FHIR is the lingua franca — but it also pays off as an internal canonical model. Mapping each partner integration (Epic, Cerner, Athena) into FHIR resources at the edge means your core product logic is written once against one schema.

A reference deployment on AWS keeps the gateway serverless — API Gateway and Lambda normalize inbound feeds, encrypted RDS holds identified data inside the boundary, and only de-identified events flow out to the analytics warehouse.

flowchart LR
  EHR["EHR Systems<br/>Epic · Cerner · Athena"] --> GW["FHIR Gateway<br/>AWS Lambda + API Gateway"]
  GW --> RAW[("Raw Payloads<br/>S3, versioned")]
  GW --> PHI[("PHI Boundary<br/>Encrypted RDS")]
  PHI --> AUDIT[("Audit Log<br/>append-only")]
  PHI --> DEID["De-identification Service"]
  DEID --> BQ[("Analytics<br/>BigQuery")]

PHI stays inside one small boundary; analytics only ever sees de-identified events.

  • Normalize inbound HL7v2 feeds into FHIR resources at an integration gateway.
  • Version your FHIR profiles — partners upgrade on their schedule, not yours.
  • Store raw payloads separately from normalized data for replay and audit.

Audit trails are a product feature

HIPAA requires knowing who accessed what and when. Retrofitting this is painful; designing it in is nearly free. Route every read of identified data through a layer that emits an immutable audit event — user, patient, purpose, timestamp. Append-only storage with a retention policy satisfies most auditors and, as a bonus, gives your support team a debugging superpower.

The mistakes we see most

None of these are exotic. They are all cheap to prevent and expensive to remediate, which is the defining economics of compliance work.

  • PHI in application logs — the most common finding in first security reviews.
  • Shared staging environments seeded with production data.
  • Background jobs and analytics pipelines that quietly copy identified data outside the boundary.
  • Assuming a cloud provider BAA covers your whole stack — it covers their services, not your architecture.

Ship it

Clinical software does not have to move slowly. With a small PHI boundary, FHIR at the edges, and audit logging built into the data layer, you can iterate on product as fast as any consumer startup — and walk into security reviews with answers instead of action items.

Next stop: a 30-minute call.

Tell us what you are building. A senior lead will tell you honestly what it takes to ship it and take it to market.