Reference architecture
One platform behind every app
Each application is a thin workflow on a shared platform. The platform owns the hard parts once: identity, PHI handling, retrieval, evaluation and observability.
A request arrives from a portal, the reviewer workbench, or as an X12 278 / FHIR PAS transaction.
Highlighted boxes are the controls that make AI output safe to act on in a health plan. Teal arrows carry requests, orange arrows carry results back, the dotted arrow is logging, and the numbers follow one request.
Request flow
One request, end to end
- A request arrives from a portal, the reviewer workbench, or as an X12 278 / FHIR PAS transaction.
- The gateway authenticates the caller (SSO) and applies rate limits.
- Identifiers are redacted and documents are screened for prompt injection before any model sees them.
- The use-case workflow pulls the policy, clinical records, claims data and tools it needs.
- The workflow calls Claude for reasoning over text, or a classic ML model for scoring.
- Model findings come back as structured output with verbatim quotes.
- Code verifies every quote against the source and applies the routing rules.
- The case lands in the human review queue; a nurse or physician makes the decision.
- Every step is written to the audit log and traced for quality, latency and cost.
Decisions
Trade-offs I made, and why
| Decision | Choice | Reasoning |
|---|---|---|
| Agent or workflow | Fixed workflows | Payer processes are well defined and audited. A fixed sequence is easier to test, explain to compliance and debug. |
| Who decides | Code routes, people decide | The model produces findings. Routing thresholds sit in code where they can be reviewed and versioned. |
| Trusting citations | Verbatim match check | A cheap deterministic check catches paraphrased or invented evidence before a reviewer sees it. |
| RAG vs. fine-tuning | Retrieval | Medical policies change every quarter. Retrieval picks up a new version the day it's published. |
| Hosting | AWS, Claude on Bedrock | Most large payers already run on AWS under a BAA, so no new vendor review is needed. |