All works
Case study · Healthcare SaaS · Serverless

ClinFocus AI

A serverless clinical decision-support platform where AI drafts handovers and reads prescriptions, and a human approves every output before it counts.

My role: Designed and built the full stack on AWS: React dashboard, Lambda API, Bedrock integration, WhatsApp pipeline and CDK infrastructure.

  • Node.js
  • React.js
  • AWS Lambda
  • API Gateway
  • DynamoDB
  • Bedrock
  • Textract
  • Twilio
  • AWS CDK
01 · Context

The problem

Clinical handovers are written in a hurry from scattered notes, and appointment coordination eats front-desk time. AI can help with both, but in healthcare an unreviewed AI output is a liability.

02 · Architecture

How it fits together

AI handover with a human gate
Clinician dashboardReact · CloudFrontAPI GatewayHTTP API v2Lambdaworkflow orchestratorBedrockNova Pro + GuardrailsHuman reviewApprove · Edit · RejectDynamoDBaudit trailWhatsAppTwilio · SNS

Clinician dashboard — Clinicians upload notes and review AI drafts.

03 · Decisions

Key decisions

Human-in-the-loop as a hard gate

Every AI output enters a review queue with a confidence score and red flags, and nothing is finalised without an explicit Approve, Edit or Reject from a clinician.

Serverless, defined in code

42 REST endpoints run on Lambda behind API Gateway, with the whole stack (CloudFront, S3, DynamoDB, SNS, EventBridge) defined in AWS CDK v2, so environments are reproducible and idle cost is near zero.

Append-only audit trail

A DynamoDB single-table design holds org-scoped data, and an append-only log records every human and system action, so you can always answer who approved what, and when.

Guardrails around the model

Bedrock Guardrails filter inputs and outputs, Textract does OCR before the model reads a prescription image, and the model only pre-fills forms for a human to confirm.

Trade-offs

What I traded, and why

  • Single-table DynamoDB needs access patterns decided up front; in return reads stay fast and predictable at any scale.
  • The review gate adds a step for clinicians. It is deliberate: speed comes from the draft, safety from the approval.
Next

What I'd do next, or differently

  • Measure reviewer edit rates per output type and feed them back into prompts and confidence thresholds.