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
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.
How it fits together
Clinician dashboard — Clinicians upload notes and review AI drafts.
- 01
Clinician dashboard · React · CloudFront
Clinicians upload notes and review AI drafts.
- 02
API Gateway · HTTP API v2
42 REST endpoints, org-scoped auth.
- 03
Lambda · workflow orchestrator
Orchestrates document reads, model calls and review state.
- 04
Bedrock · Nova Pro + Guardrails
Multi-document synthesis with confidence scoring and red-flag detection; Textract handles OCR first.
- 05
Human review · Approve · Edit · Reject
Nothing is final until a clinician acts on it.
- 06
DynamoDB · audit trail
Single-table design plus an append-only log of every action.
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.
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.
What I'd do next, or differently
- Measure reviewer edit rates per output type and feed them back into prompts and confidence thresholds.