Skip to main content
Paper Nº 16 22 min read

Private LLM Architecture for Mid-Market Healthcare on AWS Bedrock

Published 2026-05-05 Updated 2026-11-12

A reference architecture for deploying production AI inside HIPAA-regulated workflows, drawn from our work building healthcare AI infrastructure on AWS Bedrock and SageMaker.

Joseph W. Elstner·Founder & Principal Architect·AWS Bedrock · SageMaker · HIPAA

What is private LLM architecture for healthcare?

A private LLM architecture for mid-market healthcare runs every model inference through Bedrock or SageMaker from the practice's own AWS account, with no traffic to public AI APIs and no PHI ever entering a third-party training corpus. The isolation boundary is the account: the application tier reaches Bedrock over a private VPC endpoint, and the models themselves run in AWS-operated infrastructure under the BAA. Bedrock provides foundation-model inference under the AWS Business Associate Addendum, with a data-retention mode that can be pinned to zero where the model permits it, and IAM-scoped access. SageMaker handles vision workloads where custom models outperform foundation models on clinical pixels.

Update — 2026-11-07. This revision corrects the compliance and cost passages after a reader's technical review.

The data-retention section now describes Bedrock's retention modes as AWS documents them; the BAA section states the per-account and organization-wide paths and iSimplifyMe's own business-associate role; the SOC 2 and HITRUST sections state what we do and do not hold; the California residency claim is withdrawn; the price table gives way to a tiering statement and a link to current rates; model assignments now match Section 4; and three operating figures that had no published source are removed.

The architecture is unchanged.

Update — 2026-11-08. Section 4 now describes the dental platform as built: NexV is in alpha and not yet in clinical use, so its production-tense claims are restated as capabilities of the system we built, with matching changes in the Abstract, Section 2.3, the Evidence section, and the Conclusion; Section 4's model versions now match the build (Opus 5, Sonnet 5.5).

Update — 2026-11-11. Two short answers in this page's FAQ markup, on the scope of the AWS BAA and on the X-ray latency budget, still carried the wording from before the 2026-11-07 correction. They now match the answers in the paper's own FAQ below. Later the same day two statements were corrected after a further review.

Section 5.3 had called seven years the upper bound of state record-retention rules; it is the minimum several states set for adult records, and some rules run longer. The comparison with Epic and Google in the FAQ no longer credits this pattern with multi-cloud optionality, which a deployment on Bedrock does not provide. The contact line no longer offers a review at no cost.

Update — 2026-11-12. A further review, of the network boundary this time. The Abstract said that no data leaves the VPC. That was an overstatement. The paper now draws the boundary the way AWS documents it: the account is the isolation boundary, a VPC endpoint is private connectivity to a managed service, and the foundation models run in AWS-operated infrastructure under the BAA (Section 2.1 and the FAQ).

Section 2.3 and the FAQ now carry the limits of SageMaker Serverless Inference, which supports neither VPC configuration nor network isolation and has no GPUs. Sections 2.3 and 4 and the Evidence section put the dental alpha's three imaging endpoints in the past tense: we removed them on 2026-11-07, and no SageMaker endpoint is deployed today. Section 4 also says that the alpha has run as one deployment, without the per-client account and VPC tier.

A reference architecture for deploying production AI inside HIPAA-regulated workflows, drawn from our work building healthcare AI infrastructure on AWS Bedrock and SageMaker.

Abstract

A private LLM architecture for mid-market healthcare runs every model inference through Bedrock or SageMaker from the practice's own AWS account, with no traffic to public AI APIs and no PHI ever entering a third-party training corpus. The isolation boundary is the account: the application tier reaches Bedrock over a private VPC endpoint, and the models themselves run in AWS-operated infrastructure under the BAA. Bedrock provides foundation-model inference under the AWS Business Associate Addendum, with a data-retention mode that can be pinned to zero where the model permits it, and IAM-scoped access. SageMaker handles vision workloads (X-ray segmentation, intra-oral photo analysis) where custom models outperform foundation models on clinical pixels. The pattern works because every component — inference, storage, audit logging, identity — is an AWS service that already operates under HIPAA-eligible terms, removing the BAA-stitching problem that breaks public-API deployments.

This paper describes the architecture we deploy for healthcare workloads, the engineering tradeoffs that shape model selection and isolation, and the implementation roadmap from kickoff to production. Section 4 grounds the abstract pattern in the dental platform we built on it — including imaging pipelines, OSCC (oral squamous cell carcinoma) screening, SOAP note generation, voice dictation, and AI-driven phone agents built on Bedrock Opus 5 and Sonnet 5.5, with imaging models that ran on SageMaker Serverless endpoints during the alpha.

Section 7 is a 12-week deployment template engineering teams can lift directly into a planning doc.

The intended reader is technical: CTO, VP Engineering, CIO, CISO, Director of Clinical Informatics, or the architect tasked with putting AI into a regulated workflow without earning a compliance finding.


1. Why public LLM APIs fail healthcare

Public LLM APIs fail healthcare deployments on four axes when they are used at consumer or default tiers. BAA exposure: consumer tiers do not sign a Business Associate Agreement; the enterprise tiers of OpenAI, Anthropic, and Google do, with zero-retention terms available, and a deployment must be on one of those tiers before PHI touches the API. Retention terms: default consumer terms permit retention and model improvement on submitted content. Data residency: the practice does not choose where inference runs. Audit-trail gaps: request and response bodies land in the practice's own logging infrastructure only if the application writes them there. Sending PHI to an API with no BAA in place is an impermissible disclosure however careful the prompt engineering; the architecture in this paper removes the question by keeping inference inside the practice's own AWS account.

We see four failure modes consistently in practices that tried public APIs first:
  1. The BAA-stitching problem. OpenAI, Anthropic, and Google offer BAA-eligible enterprise tiers; getting onto one is a procurement exercise with its own agreement and review cycle, and region choice and zero retention arrive as vendor approvals rather than controls the practice holds; the canonical log stays with the vendor. Mid-market practices (10–200 providers) rarely have the procurement weight for that cycle. The default consumer tier — which is what most engineering teams reach for during prototyping — does not sign a BAA.
  2. The terms-of-service training-data clause. Default consumer ToS for public APIs reserve the right to use submitted content for model training, evaluation, and abuse-detection logging. Even where training is disabled, an abuse-detection retention window (commonly 30 days) can hold PHI in the provider's systems unless the agreement sets retention to zero. The terms decide, not the toggle.
  3. Data residency. HIPAA does not prescribe where PHI is processed, and California's Confidentiality of Medical Information Act (Civil Code §56) governs confidentiality and disclosure rather than storage location. What residency buys a practice is control: the ability to say which AWS Regions process PHI, to keep inference inside an account the practice owns, and to answer a payer's or partner's contractual location terms without negotiating with an API vendor. A public endpoint makes that choice for you.
  4. The audit-trail gap. HIPAA Security Rule §164.312(b) requires an audit control mechanism that records access to electronic PHI. Public APIs leave request and response logging to the application; nothing lands in the practice's own audit infrastructure unless the application writes it, and the provider's record is not the practice's. The practice cannot answer the question "what did our AI say to this patient on this date?" because the only canonical record sits inside the third party.
Private LLM architecture solves all four by keeping inference inside the practice's AWS account.

2. The reference architecture

The reference architecture has six layers: (1) an AWS account dedicated to the practice's AI workload, with a VPC for the application tier, (2) Bedrock for foundation-model inference with cross-region inference profile routing in us-east-1/us-east-2/us-west-2, (3) SageMaker endpoints for vision and custom-trained models, Serverless where its limits allow, (4) Lambda for application logic and tool dispatch, (5) DynamoDB for state and audit, and (6) KMS-encrypted S3 for raw imaging and document storage. IAM enforces least-privilege execution per function. CloudWatch captures every Bedrock and SageMaker invocation as a structured log event. Cognito handles staff and patient identity in separate user pools.

2.1 Account isolation

Each healthcare client gets a dedicated AWS account, not a shared multi-tenant deployment. Account-level isolation is the cleanest blast-radius boundary AWS offers, and it removes an entire class of cross-tenant data-leakage risks before architecture review begins. Cost: about $50–$200 per month in baseline overhead (CloudTrail, GuardDuty, Config). For a practice spending $5,000+ per month on inference, baseline overhead is rounding error.

Inside the account, the application tier runs in private subnets of a dedicated VPC and reaches Bedrock, S3, and the other AWS services through VPC endpoints, so that traffic stays on the AWS network instead of crossing the public internet.

That is private connectivity, not self-hosting, and a security review will ask which one is meant. AWS describes an interface endpoint as a way to reach Bedrock "as if it were in your VPC"; the foundation models themselves run in AWS-operated service infrastructure, under the BAA and the retention mode described in Section 5.2.

Stated exactly: PHI is stored in the practice's own AWS account, inference is an AWS service call made over AWS's network under the BAA, and nothing goes to a third-party AI API. A practice whose requirement is model execution inside its own network boundary needs a different design: a SageMaker real-time endpoint attached to its VPC, or a self-hosted model on EC2. That question is settled in discovery, before anything is built.

2.2 Bedrock with inference profiles

We deploy Bedrock with US-region inference profiles (the us.<model-id> form), not the global routing variant. Two reasons. First, data residency for regulated clients — keeping inference within us-east-1, us-east-2, and us-west-2 matches the geographic posture HIPAA-covered entities expect, and we have the audit trail to prove it. Second, a clean line for any partner or security review: "all inference within US AWS Regions" needs no footnotes.

Direct foundation-model invocation (without an inference profile) is rejected by Bedrock for newer Claude models with ValidationException. Inference profiles are not optional for Claude Sonnet 4.6 or newer; they are the way Bedrock routes capacity across regions while preserving the customer-region contract.

2.3 SageMaker for vision and custom models

Foundation models on Bedrock are excellent at language tasks. They are mediocre at clinical pixels. For X-ray segmentation, intra-oral photo analysis, and any task where a fine-tuned domain-specific model outperforms a general one, we deploy SageMaker Serverless endpoints. SageMaker Serverless billing is per-millisecond-of-inference, which fits the bursty traffic profile of clinical imaging — a busy practice runs hundreds of inferences during morning hours and close to zero overnight.

Serverless Inference has limits a regulated design must account for. AWS documents that it supports neither VPC configuration nor network isolation, and that it runs without GPUs. Calls to a Serverless endpoint can still travel privately, through a VPC interface endpoint for the SageMaker Runtime, but the model container itself cannot be placed in the practice's VPC.

A workload that needs the container inside the VPC, or needs a GPU, runs on a real-time endpoint instead, at an always-on instance cost.

Three SageMaker Serverless endpoints served the dental platform's alpha: tooth detection, smile inpainting, and tooth segmentation. We removed them on 2026-11-07, and no SageMaker endpoint is deployed today. The detection model is a YOLOv8m architecture across 32 dental classes at 0.695 mAP50 in the current release, with a retraining pipeline designed to ingest labeled images from each practice's own S3 bucket on a quarterly cadence and produce practice-specific fine-tuned variants for opt-in workflows.

2.4 Lambda for tool dispatch

Application logic — the layer that decides which Bedrock or SageMaker call to make, which knowledge base to retrieve from, and how to assemble the response — runs in Lambda. We use the AWS SDK's Bedrock Runtime client (specifically ConverseStreamCommand for streaming agentic patterns) and route tool calls back to handler functions in the same Lambda. Tool dispatch is in-process, not a separate microservice; it keeps the architecture simple and the latency low.

The Lambda layer also enforces per-request guardrails: an input classifier with regex patterns screens messages before they reach Bedrock, schema validators check tool-call arguments against expected types, and an injection-resistance prefix is prepended to every system prompt.

2.5 DynamoDB and S3

DynamoDB stores conversation state, audit records, and tenant configuration. A single table per practice with composite keys (pk = entity, sk = sort key) supports the access patterns without joins. S3 holds raw imaging, attachments, and any document the AI consumed during inference, with KMS encryption at rest and bucket policies that deny any cross-account access by default.

2.6 CloudWatch and audit logging

Every Bedrock invocation, every SageMaker inference, and every Lambda execution emits structured logs to CloudWatch. We retain Bedrock request bodies and response bodies for 30 days in CloudWatch Logs and ship them to S3 with a 7-year retention lifecycle for HIPAA Security Rule compliance. The audit log answers the question every CISO eventually asks: "what did our AI say to this patient, on this date, in response to this prompt, and which model produced the answer?"

2.7 Cognito for identity

Staff and patient identities live in separate Cognito user pools. The separation is not optional — it is the access control surface that prevents a misconfigured dental hygienist account from reading a patient's chart. Both pools support MFA. The patient pool supports passwordless email magic-link login for engagement workflows; the staff pool requires hardware MFA for clinical write operations.


3. Model selection: Opus, Sonnet, Haiku, Nova

Model selection in healthcare is workload-driven: Claude Opus (the top tier) for complex clinical reasoning that must be right (the OSCC vision pass, reasoning over the imaging pipeline's findings, SOAP note structuring, treatment planning); Claude Sonnet for high-volume conversational and structured-output tasks (clinical assistants, scheduling agents, intake forms); Claude Haiku for low-latency classification and routing (intent detection, message triage, tool dispatch); Amazon Nova Pro for patient-facing explanations where cost and latency matter more than the last increment of reasoning quality. We deploy multiple models per practice and route per workload — there is no single right model for healthcare.

The cost argument is a tiering argument, and Bedrock rates move often enough that a printed table would date this paper within a quarter. On the Bedrock price list an Opus-tier call costs a small multiple of a Sonnet-tier call and a large multiple of a Haiku-tier call, with Nova Pro below Haiku; take the figures from the Amazon Bedrock pricing page on the day you model a workload. The ratios decide the routing.

Cost dominates when a workload runs hundreds of thousands of times per month; accuracy dominates when one wrong answer is a clinical incident. The right discipline is to classify each surface — does this need Opus, or does this need Haiku? — and to deploy model assignments that match the criticality of the workload.

Our assignments for dental and small-practice healthcare workloads: Opus for reasoning over the imaging pipeline's findings alongside the chart, for structuring SOAP notes from the Transcribe Medical transcript, and for treatment-plan reasoning (any chart-altering output); the pixel work itself — tooth detection, segmentation, smile inpainting — ran on the SageMaker endpoints of Section 4.1, not on a foundation model. Sonnet for AI phone agents (Amazon Connect + Lex V2 wiring), clinical assistants, call analytics, and scheduling.

Nova Pro for patient-facing visit explanations where readability beats reasoning depth. Haiku for intent classification and tool routing inside larger agentic flows.


4. The dental platform, as built

The dental platform we built on this architecture — NexV, in alpha and not yet in clinical use — runs on AppSync GraphQL for the API surface, Cognito with separate staff and patient user pools, a single DynamoDB table with per-practice tenant scoping, and Bedrock Opus 5 plus Sonnet 5.5 routed by workload. Its imaging pipeline was built on three SageMaker Serverless endpoints, which we removed on 2026-11-07; none is deployed today. The alpha has run as one deployment, without the per-client account and VPC tier of Section 2.1: practices are scoped within one table, and its functions call Bedrock over AWS's regional service endpoints. The pattern integrates an OSCC (oral squamous cell carcinoma) screening workflow, FDI tooth notation throughout the clinical chart, and the full ADA item code set at the billing layer. Imaging models follow a YOLOv8m architecture across the dental class range (about 32 classes), packaged for SageMaker Serverless, with quarterly retraining on consented data designed in.

4.1 Imaging pipeline

The imaging pipeline ingests bitewing, panoramic, and intra-oral photos from chairside capture devices. In the alpha build, one SageMaker Serverless endpoint ran tooth detection (YOLOv8m, 32 classes, 0.695 mAP50 in the current release), a second ran tooth segmentation for treatment planning overlays, and a third ran smile inpainting for cosmetic simulation. Each inference was logged with the model version, input hash, and output payload.

Consented imaging is designed to aggregate across practices for retraining; non-consented data stays in each practice's own S3 bucket with no cross-practice training.

4.2 OSCC screening workflow

Oral squamous cell carcinoma screening runs as a secondary inference stage on intra-oral photos.

The flow: a Bedrock Opus 5 vision call inspects the image for lesion markers; if the model's self-reported confidence clears the configured threshold (a triage signal, not a validated sensitivity figure), a Sonnet 5.5 call assembles a structured screening note for clinician review; the note is added to the chart with a "pending review" status that requires explicit clinician acknowledgment before it appears on the patient-facing record. The workflow does not auto-diagnose.

It surfaces candidates for human review with structured evidence. The boundary matters beyond HIPAA. In the US, the FD&C Act's clinical-decision-support exclusion does not reach software that analyzes a medical image, whatever the clinician does afterward, so a US deployment of this stage is a device-classification question for regulatory counsel before it is an engineering one; the clinician's acknowledgment is a safety control, not a regulatory status.

4.3 SOAP note generation

Clinical encounter notes follow a SOAP structure (Subjective, Objective, Assessment, Plan). The dictation flow uses Amazon Transcribe Medical for streaming transcription (clinically tuned vocabulary, speaker diarization, punctuation), then a Bedrock Opus 5 call structures the transcript into the SOAP fields. The clinician sees a preview with a confidence score per field and confirms or edits before applying. We do not auto-commit AI-generated notes to the chart — the clinician's signature is the gate.

4.4 Voice dictation and chart commands

Beyond SOAP notes, the platform supports voice-driven chart commands ("tooth 14 distal occlusal, composite, two surfaces"). The parse-dictation API streams Transcribe Medical output to a Sonnet 5.5 call with a structured-output schema (tooth number, surface, condition, confidence). The model produces a typed payload that the chart preview rejects on confidence below a threshold.

FDI tooth notation displays throughout the UI (Australian standard, 11–48 permanent, 51–85 primary); internal storage stays in sequential 0–31 arrays to avoid data migration when notation conventions evolve.

4.5 The AI phone agent

The AI phone agent is built on Amazon Connect for telephony, Lex V2 for intent and slot capture, and Bedrock Sonnet 5.5 for conversational generation. It books appointments, answers basic clinical questions ("we don't take that insurance, here's who does"), routes complex calls to a human, and surfaces a transcript to the practice's CRM after every interaction. Every call is recorded, transcribed, and stored in the practice's own S3 bucket with a configurable retention window.

The pricing model treats the phone agent as an add-on rather than a core SKU.

4.6 ADA item codes and FDI notation

The platform ships with the full set of ADA item codes (363 codes, 13th Edition) and full FDI notation. The chart UI uses FDI by default. The billing UI uses ADA. The translation between them is a deterministic lookup, not a model call — clinical accuracy at the billing layer is non-negotiable, and a probabilistic translation would generate audit findings.

The platform this section describes was built for the Australian market, where that item-code schedule and FDI notation are the norm and the Privacy Act, not HIPAA, governs patient data. The HIPAA controls in Section 5 are the US configuration of the same architecture.


5. Compliance posture: the BAA, retention, and what we do not claim

A private LLM architecture on AWS Bedrock gives a practice the technical safeguards HIPAA's Security Rule asks for — encryption, access control, audit logging, transmission security — on HIPAA-eligible services under the AWS Business Associate Addendum, with the practice's own policies and risk analysis still required on top. It does not confer SOC 2 or HITRUST: those are attestations of an organization — a SOC 2 report issued by a licensed CPA firm, a HITRUST certification issued by HITRUST on an authorized assessor's validation — and iSimplifyMe does not hold or pursue them. What we provide instead is the control evidence itself — account perimeter, IAM scoping, retention mode, seven-year audit lifecycle — documented so a practice's security review or its own auditor can examine the deployment directly.

5.1 The AWS BAA

The AWS Business Associate Addendum is accepted in AWS Artifact, either per account or once for an entire organization through Artifact's organization agreements, where the management account accepts and every member account, present and future, is covered. We accept it on every account that handles PHI. The AWS BAA runs between AWS and the account holder; where iSimplifyMe operates the environment and can reach PHI, iSimplifyMe is the practice's business associate and signs its own BAA with the practice.

Where the practice holds the account, AWS is the practice's business associate under the AWS BAA; where iSimplifyMe holds it, AWS is iSimplifyMe's subcontractor under the same addendum. The BAA covers the HIPAA-eligible services we use (Bedrock, SageMaker, Lambda, DynamoDB, S3, KMS, CloudWatch, Cognito, AppSync, Transcribe Medical, Connect, Lex V2). It does not cover services that are not on AWS's HIPAA-eligible list — we do not deploy those for healthcare workloads, full stop.

5.2 Data retention at the model layer

Amazon Bedrock controls retention of prompts and outputs through a data-retention mode, set per Region through the Bedrock control-plane API: none is zero retention, writing nothing to durable storage at AWS and sharing nothing with the model provider; default lets AWS retain data for safety and abuse prevention; aws_review permits human review by AWS, inside the AWS boundary.

New accounts inherit each model's default, and some models require a mode above none as a condition of access, so eligibility is checked per model before a workload is assigned to it. We set none where the model permits it and pin the choice with a service control policy that denies any change to the retention mode, so no account in the organization can loosen it. A model that requires retention is simply unavailable in a pinned account, by design.

This is separate from model invocation logging, which is off by default and, when we enable it, writes request and response bodies only to the practice's own S3 bucket and CloudWatch log group (Section 2.6).

5.3 Audit log lifecycle

CloudWatch Logs holds Bedrock and SageMaker invocations for 30 days. A Logs subscription filter ships entries to S3 with a 7-year retention lifecycle managed by S3 Lifecycle policies. The 7-year window matches the minimum several states set for adult patient records (Texas requires at least seven years from the last treatment).

It is not an upper bound: Texas keeps a minor's record until at least age 21, and Massachusetts lets a hospital or clinic destroy a record only 20 years after discharge or final treatment, so each deployment sets the lifecycle to the rule that governs it. Audit records are encrypted with a per-account KMS key.

5.4 IAM least-privilege

Every Lambda function has a dedicated IAM role with the minimum permissions required for that function's job. Bedrock invocation permissions scope to specific foundation-model ARNs and inference-profile ARNs, not wildcards. SageMaker invocation permissions scope to the specific endpoint ARNs. The blast radius of a compromised function is the function's tools — not the entire AWS account.

5.5 SOC 2

iSimplifyMe does not hold a SOC 2 report and is not pursuing one. SOC 2 attests to a service organization's controls through a licensed CPA firm's examination, and it is the right instrument for a vendor that holds many customers' data on shared infrastructure.

In this architecture the practice holds its own data in its own AWS account, and the controls an examination would test — account perimeter, IAM scoping, encryption, logging, retention — are visible to the practice's own security review directly. The organizational controls an examination would also cover — who at iSimplifyMe can reach PHI, how that access is granted and revoked — are set out in the BAA we sign with the practice and are open to its security review.

A practice whose vendor policy requires an attestation should ask for exactly that.

5.6 HITRUST CSF

HITRUST is a healthcare-specific control framework that maps HIPAA, HITECH, NIST 800-53, ISO 27001, and several state requirements into a single attestation, and it is the signal mid-market healthcare buyers reach for when they want stronger assurance than SOC 2. iSimplifyMe does not hold HITRUST certification. A practice that requires it certifies its own environment; because the deployment lives in the practice's account, the assessment runs against infrastructure the practice controls, and we support it with the control evidence above.


6. The bootstrapped differentiator

Most AI infrastructure firms in the mid-market healthcare space are venture-funded and built around a sales motion that depends on platform lock-in. iSimplifyMe is bootstrapped — no VC, no growth-stage burn rate, no need to convert clients into per-seat ARR before the architecture is right. The compliance posture is deliberate and stated without inflation: the AWS BAA on every PHI account, retention pinned at the model layer, a seven-year audit lifecycle, and no claim to a certification we do not hold. Buyers comparing iSM to VC-funded peers should ask who controls the architecture decisions when the funding runway shortens.

We say this without apology because it is the architectural truth of the company. AI Wrappers — firms that thinly resell access to OpenAI or Anthropic with light branding — cannot deliver the architecture this paper describes. They do not own the AWS account. They do not control the BAA chain. They cannot produce an audit log that includes the request body. When the regulator asks the inevitable question, the answer comes back through three providers and two NDAs.

A bootstrapped firm with an active AWS BAA on its healthcare deployments and a compliance posture it states plainly is structurally better positioned to deliver regulated AI than a Series-B-funded competitor with the same architectural diagrams. The math runs on incentives, not slides.


7. The 12-week deployment template

A typical mid-market healthcare deployment runs 12 weeks from kickoff to production traffic. Weeks 1–2: AWS account setup, BAA signing, network design, IAM role provisioning. Weeks 3–4: Bedrock and SageMaker enablement, model selection per workload, baseline cost modeling. Weeks 5–6: data ingestion pipeline, Cognito user pools, audit log lifecycle. Weeks 7–8: first agentic workload (clinical assistant or scheduling agent), guardrail layer, schema validators. Weeks 9–10: vision pipeline if applicable (X-ray, intra-oral photo), SageMaker endpoint deployment, accuracy validation against held-out test set. Week 11: load testing, failure-mode review, cost ceiling configuration. Week 12: production cutover, observability dashboards, on-call rotation handoff.

This is a template, not a guarantee. Practices with existing PMS or EMR integrations add 2–4 weeks for the integration cycle. Multi-location practices add 1–2 weeks for the per-location data residency setup. Practices that need HITRUST attestation before launch run that assessment in parallel; it gates the public-launch announcement, not the technical deployment.

The pacing here matters because most enterprise AI deployments fail not on architecture but on integration friction. Twelve weeks is the realistic timeline for an engineering team that owns its data, has a single AWS account, and is willing to cut scope on the first deployment. Teams that try to ship every workload at once consistently slip to 24+ weeks and rebuild parts of the architecture en route.


Frequently Asked Questions

Can we bring our own model to this architecture?

Yes. SageMaker supports custom-trained models deployed as either real-time endpoints or Serverless endpoints. The most common pattern is to fine-tune an open-weights model (Llama, Mistral, or Qwen variants) on practice-specific data and deploy it alongside Bedrock foundation models. Routing logic in the Lambda layer chooses between the custom model and the foundation model per workload.

For highly regulated workloads, a custom model can be the only model the architecture invokes — Bedrock is not required if the practice prefers full control of the model weights.

What is the latency budget for X-ray inference?

For a clinician-facing X-ray analysis flow, the practical budget is 1.5 to 3 seconds end-to-end. SageMaker Serverless adds a cold-start penalty (typically 2–4 seconds for the first request after idle, sub-second for warm requests), so high-throughput practices use SageMaker Serverless provisioned concurrency to keep a small number of instances warm. The Bedrock vision call for OSCC screening adds roughly a second depending on image size and model choice.

The dental clinician's perceptual budget is closer to 5 seconds, so the design headroom is comfortable.

Does this require a dedicated VPC?

Yes, for a deployment that carries PHI: the reference architecture specifies a dedicated AWS account with a dedicated VPC, private subnets for Lambda, and VPC endpoints for S3 and Bedrock so that traffic stays on the AWS network. Two limits apply. A VPC endpoint is private connectivity, not self-hosting: AWS describes it as access to Bedrock "as if it were in your VPC", and the model itself runs in AWS-operated infrastructure.

And SageMaker Serverless Inference supports neither VPC configuration nor network isolation, so a model that must run inside the VPC goes on a real-time endpoint. A dedicated VPC is not strictly required by HIPAA; it is the cleanest architecture for the audit trail.

What are the BAA gotchas?

Three. First, the AWS BAA covers AWS-listed HIPAA-eligible services only — it does not cover third-party services you connect via PrivateLink or VPC peering.

Second, the BAA is accepted per account or, through AWS Artifact's organization agreements, once for every account in an AWS Organization; a multi-account deployment should use the organization path so no account is missed — and it covers AWS's role only, so an operator with access to PHI, iSimplifyMe included, signs its own BAA with the practice.

Third, the BAA does not relieve the practice of its own HIPAA Security Rule and Privacy Rule obligations — it covers AWS's role as a Business Associate, not the practice's role as a Covered Entity. The practice's own Security Rule risk analysis is still required.

How does this compare to Epic's Microsoft AI partnership or Google's Healthcare API?

Epic's Microsoft AI integration is a closed-stack deployment — the practice gets AI features through Epic's product surface, with Epic and Microsoft holding the architectural control. Google Healthcare API is a different shape: a managed FHIR store and inference layer that the customer accesses through Google Cloud, with Google's BAA covering the listed services. Both are valid choices for practices already standardized on those vendors.

The private-LLM-on-Bedrock pattern is the right choice when the practice wants architectural control and a model-agnostic deployment that can route to whichever foundation model produces the best result on a given workload.

What does this cost in production?

Baseline AWS overhead (account, VPC, CloudTrail, Config, GuardDuty) runs $50–$200 per month per account. Inference cost scales with workload. For a typical 50-provider practice running clinical assistant + AI phone agent + imaging pipeline, expect $2,000–$5,000 per month in AWS bills, including SageMaker Serverless inference, Bedrock token billing, Connect minutes, and storage.

The line item that dominates is usually Bedrock token spend on Opus for SOAP structuring and treatment-plan reasoning, which is why workload-aware model routing (Sonnet for high-volume conversational, Opus only for clinical-critical) matters.

How is this different from running a self-hosted LLM on EC2?

Self-hosted LLMs on EC2 work, but the operational cost is meaningful — GPU instance management, model versioning, autoscaling, observability — and it duplicates a lot of what SageMaker already offers. We deploy self-hosted only when the practice has a specific reason to control the model weights end-to-end (typically a legal or contractual requirement that prevents inference on a service even with a BAA). For most practices, Bedrock plus SageMaker meets their requirements with a fraction of the operational overhead.


Evidence

Update — 2026-11-07. This paper is a reference architecture, so the checkable material is the system it describes rather than a dataset. Three things can be verified without talking to us.

  • The model inventory is published. /ai-transparency names every foundation model in production, the platform each runs on, and the zero-retention posture on every model that handles client data, with the three exceptions named.
  • We built a clinical product on the architecture. NexV, a dental practice platform for the Australian market (in alpha, not yet in clinical use), was built so that every model call goes to Bedrock or SageMaker and none to an external AI API. SOAP-note structuring runs on Bedrock and the AI phone agent on Amazon Connect; the imaging models ran on SageMaker Serverless endpoints until 2026-11-07, as the dossier documents.
  • The isolation claims have a measured companion. The Same Model, Three Doors measured the same model through Bedrock and the first-party API under a pre-registered plan, with raw records in the public determinism-harness.

Conclusion

Private LLM architecture for healthcare is an engineering pattern for a real set of regulatory, residency, and audit-trail requirements a public API leaves to the vendor's terms. The pattern has six layers, runs on AWS services that operate under the AWS Business Associate Addendum, and ships in 12 weeks for a focused first deployment.

We have built the pattern end to end: an imaging pipeline with consented retraining designed in, OSCC screening integrated into the clinical flow, ADA codes and full FDI notation in the chart, three SageMaker endpoints, two Bedrock model tiers routed by workload, and a clean audit trail end-to-end.

If your practice or platform is evaluating AI for regulated clinical workflows, the architecture in this paper is the floor. The choices above the floor — model selection, retraining cadence, attestation roadmap, integration pacing — are practice-specific. We design those choices in partnership with the engineering team that will operate the system on day 91.


Notices

Not legal advice. This paper is for informational purposes only and does not constitute legal, regulatory, or compliance advice. Consult qualified counsel before relying on any architectural pattern in a regulated deployment. References to HIPAA, BAA terms, state-level health-data statutes (CMIA and analogous laws), SOC 2, HITRUST, and HHS guidance are summaries of our current operational understanding and are not authoritative interpretations.

Not medical advice. Clinical workflows described in this paper are reference patterns, not clinical recommendations. The architecture surfaces candidates for human review with structured evidence; final clinical decisions rest with the clinician. Inference output should not be used as a substitute for licensed clinical judgment.

Architecture and pricing change. This paper no longer prints model prices; take current rates from the Amazon Bedrock pricing page. Model availability, IAM action names, AWS service capabilities, and the AWS HIPAA-eligible services list evolve continuously; verify current state before implementation. Operational numbers (latency budgets, deployment timelines, cost ranges) describe typical engagements and are not guarantees.

Trademarks. AWS, Amazon Bedrock, SageMaker, Lambda, DynamoDB, S3, KMS, CloudWatch, Cognito, Connect, Lex, AppSync, and Transcribe Medical are trademarks of Amazon.com, Inc. or its affiliates. Claude is a trademark of Anthropic, PBC. Epic, Microsoft, and Google are trademarks of their respective owners. References are descriptive and do not imply endorsement.


About the author. Joseph W. Elstner is the founder and principal architect of iSimplifyMe, a Chicago-headquartered AI infrastructure firm operating since 2011 across North America and Asia-Pacific (Melbourne). iSimplifyMe is bootstrapped, accepts the AWS Business Associate Addendum on every account that handles PHI, and states its compliance posture without claiming certifications it does not hold.

Contact. ai@isimplifyme.com — questions from engineering teams evaluating private LLM architecture are welcome.

Cite this paper. Elstner, J. (2026). Private LLM Architecture for Mid-Market Healthcare on AWS Bedrock. iSimplifyMe Whitepaper. https://isimplifyme.com/whitepapers/private-llm-healthcare-aws-bedrock

Frequently asked

Apex Architecture

Every site we build runs on Apex — sub-500ms, AI-native, zero maintenance.

Explore Apex Architecture
⌘ K