Skip to content
Edgemirai · home

← All work

HIPAA portals for patients, providers and staff

A specialty pharmacy was building patient, provider and staff portals under HIPAA with a small engineering team. Before the build started, we set the architecture: one application on Postgres with durable workflows, sized for a small team, in place of the microservices it had planned.

Result
The platform went from proof of concept to MVP to its first client, on one application sized for a small team, in place of the microservices it had planned.
Sector
Healthcare · specialty pharmacy
Engagement
Architecture and technical lead, alongside the client’s engineers
fig. 1Illustrative, with synthetic data.

The situation

A specialty pharmacy was building patient, provider and staff portals under HIPAA with a small engineering team. Every portal handles protected health information, and payments run through the same system. The team had planned microservices.

What we did

We guided the client’s engineers through the plan and specs, designed the patient-chart identity model, and set the HIPAA schema baseline with row-level security and tenant isolation.

As the build grew and the code began to drift, we wrote architecture tests that fail the build if code crosses layer boundaries or lets patient data into workflow storage. We also took out infrastructure that had crept in, such as a Redis rate limiter and app-level cron jobs, and moved that work back onto Postgres and durable workflows.

We wrote the decision records, C4 architecture and flow docs, and advised the infrastructure, CI/CD and security teams on direction.

  • The patient-chart identity model, designed and built
  • HIPAA schema baseline with row-level security
  • Idempotent payments
  • Searchable encrypted identifiers
  • MFA enforcement
  • Cognito identity flows
  • The durable-workflow runtime: Postgres-backed scheduling and recovery, with no Redis or separate schedulers
  • Field encryption and audit log
  • Architecture tests (ArchUnit) and integration tests as guardrails
  • The application’s requirements for AWS, and a review of the deployment against them

Where it stands

The platform went from proof of concept to MVP to its first client. One application on Postgres with durable workflows, and architecture tests that fail the build when code drifts from the design. The decision records, C4 docs and specs live in the client’s repositories.

Scope and role

We set the architecture and technical direction, wrote the specs the client’s engineers built from, and did much of the backend build. The client’s team wrote most of the frontend and owns the AWS infrastructure code and the security program. HIPAA names the rules the system was built under. The controls listed support the client’s compliance program and are not a certification. The client is not named.

The problem01 / 04

In your own words. A paragraph is enough.

We use your answers only to reply and to prepare for the call. How we handle your data → (opens in a new tab)