Skip to content
All posts

Public health: tech lead for a clinical advice platform

Leading a 15 to 20 person team building a regulated healthcare app that lets clinicians request specialist advice: secure sign-in, shared API contracts, serverless APIs and a template that cut new-team onboarding by about a month.

Matt Claffey · 2 min read

At a glance

  • Client: a UK public health sector organisation (delivered through Accenture)
  • Role: Tech Lead for a team of 15 to 20 people
  • Dates: May 2025 to July 2026
  • Stack: Next.js, React, TypeScript, NextAuth, AWS Cognito, Node.js, AWS Lambda, API Gateway, DynamoDB, Terraform, Terragrunt, Playwright, MSW

The challenge

The product lets clinicians request specialist advice. That puts it squarely in regulated territory: every clinician has to sign in securely, high-risk clinical features can't simply be switched on for everyone at once, and the frontend and backend teams have to agree on exactly what each API returns.

On top of that, the organisation wanted more teams to build on the same foundations, so whatever we built had to be repeatable, not a one-off.

What I did

I led frontend architecture and delivery, while staying hands-on in the serverless backend and AWS infrastructure.

  • Secure clinician sign-in. Integrated NextAuth with AWS Cognito so authentication works consistently across frontend and backend services.
  • Shared API contracts. Defined API contracts and shared TypeScript types with the backend engineers, which cut down the integration bugs that usually show up late.
  • Frontend architecture. Set the patterns for routing, data fetching, state management and testing in Next.js and React.
  • Serverless APIs. Designed and delivered Node.js Lambda functions behind API Gateway to support the core clinician workflows.
  • Feature flags for clinical risk. Put high-risk clinical features behind flags so they could roll out safely and incrementally.
  • Infrastructure as code. Contributed to the Terraform and Terragrunt setup for consistent multi-environment deployments.
  • Team leadership. Set coding standards, supported sprint planning, mentored engineers and explained technical decisions to senior stakeholders.

Turning the app into a template

The biggest multiplier was converting the application into a reusable template. New teams get preconfigured infrastructure, CI/CD, a Playwright and MSW testing strategy, GitHub workflows and developer tooling from a single npm install.

That took roughly a month off onboarding for each new team.

Outcome

  • Secure, scalable clinician features delivered in a regulated environment
  • Fewer frontend and backend integration issues thanks to shared contracts
  • Better frontend performance and API responsiveness through architectural changes
  • New teams onboarding about a month faster from the reusable template

What I'd take forward

In regulated work, the guard rails are the product as much as the features are. Typed contracts, feature flags and a template that makes the right thing the default all make it easier for every team to move quickly without cutting corners.