← All insights
Perspective

PHI on the Line — and How The Clinician Platform Makes Choice & Compliance Possible

The choice isn't which way of running an LLM against patient data wins. It's which one fits the task, the data, and the team you actually have, and whether your platform lets you make that call safely, per task, with one audit trail.

Executive Scope:
  • Part One: A vendor-neutral framework for healthcare technology leaders evaluating general-purpose LLMs against PHI.
  • Part Two: How The Clinician Platform (TCP) turns that framework into an operational capability.
Note: Model providers (OpenAI, Google Gemini, Google Vertex AI, etc.) are named where relevant; internal components and tooling are described by function.

Framing the Problem

Every healthcare AI conversation eventually collapses into the same false binary: cloud or on-premise, buy or build. That framing skips the part that actually determines whether a deployment succeeds — what the model is being asked to do, and what happens to the patient data on the way there.

A model that drafts a clinician-facing summary from a full longitudinal chart has a different risk profile than one extracting a medication list from a single note. A health system with a mature cloud compliance program is in a different starting position than a service with an in-country data-residency mandate or an air-gap requirement.

This document lays out three real architectures for running an LLM against patient data, then shows how TCP lets you adopt all three — chosen per task — behind a single governed control point.


The PHI / PII Issue, Stated Plainly

Large language models are extraordinary at clinical text — and clinical text is dense with protected health information: names, identifiers, contact points, dates, free-text history. The moment a prompt is assembled, PHI/PII is in motion. Three failure modes follow:

The conclusion the rest of this document builds on: the deciding factor is a technical control layer that (1) keeps PHI off the wrong surface, (2) removes or minimises PHI before any external hop where it isn’t needed, and (3) routes each request to the model that fits the task — with one consistent audit trail no matter where inference runs.


Option One: Frontier general-purpose models, accessed by API under a BAA

What it is: A frontier foundation model — OpenAI, Google Gemini, or a managed hyperscaler tier (AWS Bedrock, Google Vertex AI, Azure OpenAI) — consumed through a hosted API, with PHI in scope only where a BAA actually covers that specific product and configuration.

⚠️ A critical compliance pitfall: The compliant path is usually a specific API tier, a specific enterprise configuration with HIPAA explicitly enabled, or routing through a hyperscaler’s BAA rather than the model provider directly — not whatever surface is easiest to reach.

✅ Pros
  • Highest reasoning ceiling: Delivers the best performance on ambiguous, contradictory, or long-context clinical narratives.
  • No infrastructure to own: Eliminates GPU procurement, inference-stack patching, and capacity planning.
  • Continuous improvement: Model provider upgrades arrive seamlessly with no redeployment required.
  • Mature security: Leverages robust audit and security tooling around the managed surface.
❌ Cons
  • Data egress: PHI leaves your network boundary unless explicitly contracted and configured otherwise.
  • Narrow BAA coverage: "Enterprise" does not automatically equal "HIPAA compliant."
  • Usage-based cost: Can scale unfavourably at population-health volumes.
  • Provider dependency: Relies on external roadmaps, pricing, and deprecation timing; access can be throttled.
Best fit: Clinician copilots, prior auth / claims appeals, multi-document chart reasoning.

Option One B: Frontier models via provider-native regional endpoints

What it is: The same frontier models as Option One — OpenAI GPT-4-class, Anthropic Claude, Google Gemini — but accessed through provider-native regional API endpoints that pin inference and data storage to a specific geography. This is an emerging but rapidly maturing tier, rolled out explicitly to address data sovereignty requirements and to reduce inference latency for users outside North America.

As of 2025–2026, all three major frontier providers and their hyperscaler wrappers have launched or expanded regional endpoint programmes:

Why this matters for healthcare: Regional endpoints close the gap between the reasoning quality of Option One and the data-boundary guarantees of Option Two — without requiring on-premise hardware. For health systems operating under GDPR, the Australian Privacy Act, or similar frameworks, a contractually pinned in-region frontier endpoint can satisfy institutional data-residency policy while retaining access to the highest-capability models. Latency improvements are a secondary but real benefit: routing AU or EU clinical workloads to a local inference region rather than US-East typically reduces round-trip times by 60–150 ms, which is meaningful in interactive copilot workflows.

⚠️ Critical caveats that apply equally here: Regional endpoint availability is per-model and per-feature — not every model variant ships to every region, preview features often carry weaker residency guarantees than GA features, and auxiliary surfaces (prompt caching, evaluation, observability telemetry) may still route globally unless explicitly pinned. A residency review must audit all six data surfaces, not just the inference endpoint [7]. BAA scope remains the same as Option One: confirm the specific regional configuration is covered before processing PHI.

✅ Pros
  • Frontier reasoning quality: Full model capability — no quality compromise compared to Option One.
  • Data sovereignty without hardware: Inference and storage pinned to a contractually committed region; satisfies most institutional and regulatory residency policies.
  • Latency improvement: In-region inference meaningfully reduces round-trip times for non-US deployments — relevant for interactive clinical workflows.
  • No infrastructure to own: All the operational advantages of Option One are retained.
  • Granular policy control: Per-request or per-workspace geo enforcement, auditable at the platform layer.
❌ Cons
  • Uneven model availability: Newer or larger model variants often reach US regions first; regional availability lags by weeks to months.
  • Feature gaps: Some provider features (prompt caching, fine-tuning, evaluation) may not be covered by the regional residency commitment.
  • Premium pricing: Regional or US-pinned inference typically carries a 10–20% price premium over global routing.
  • Eligibility requirements: Some providers restrict regional endpoints to enterprise tiers or require explicit enablement — not available on all account types.
  • Partial coverage risk: Residency applies to inference; telemetry, abuse monitoring, and support data may still be handled globally under the provider’s DPA.
Best fit: Health systems with GDPR, Australian Privacy Act, or equivalent residency obligations that need frontier reasoning quality; interactive copilot workflows where latency to non-US users is a clinical UX concern.

Option Two: General-purpose open-weight models, self-hosted on local hardware

What it is: Compact local AI accelerators with unified CPU/GPU memory — enough to load genuinely large open-weight models, sitting inside your own walls.

🔍 What the spec sheet doesn’t tell you: The headline compute number describes capacity, not speed. The real governor is memory bandwidth, which on this class sits well below a high-end discrete GPU — creating a real, measurable token-generation gap on larger models [5].

✅ Pros
  • Data remains internal: Patient data never leaves the building, sidestepping BAA negotiation and third-party breach exposure.
  • No per-token cost: High-volume batch processing can undercut API spend once amortised.
  • Full control: Total ownership over model versioning — nothing changes underneath you.
  • Small footprint: Deployable in standard server racks without extreme cooling.
❌ Cons
  • Quality gap vs. frontier: Persists on the hardest clinical narratives (the gap is narrowed, not closed).
  • MLOps burden: You own the full lifecycle — evaluation, drift monitoring, and patching.
  • Single point of failure: A single unit requires redundant hardware for production readiness.
  • Compliance ownership: 100% of the HIPAA technical-safeguard burden sits with your team.
Best fit: Air-gapped or residency-constrained organisations; moderate volume with an in-house ML team.

Option Three: Distilled or quantized models, on the same local hardware

What it is: The same hardware class, but a model deliberately chosen for speed — a distilled 7B–14B model, or an aggressively quantized version of a larger one — sized to fit comfortably inside a modest memory bandwidth budget.

✅ Pros
  • Interactive latency: Genuinely usable speeds, sized to the hardware’s real ceiling.
  • Broadens viable hardware: Also runs on cheaper devices for smaller sites.
  • Excellent for narrow tasks: Highly effective for extraction, structured fields, and PHI redaction.
  • Concurrent execution: Multiple small models can run simultaneously (e.g., one for redaction, another for summarisation).
❌ Cons
  • Quality drop-off: Sharpest where clinical text is hardest (negation, temporal reasoning, abbreviation ambiguity).
  • Requires fine-tuning: Prompting alone is rarely enough for acceptable accuracy.
  • Aggressive quantization degrades numerical reasoning: Reducing model precision can quietly impair the model's ability to process numbers accurately, introducing severe risks when handling medication dosages or laboratory values [6].
  • Demands serious evaluation: Requires a clinician-reviewed framework before it can be trusted.
Best fit: De-identification / redaction pipelines, structured-field extraction, intake triage and routing.

Architecture Comparison: A Decision-Maker’s Summary

DimensionFrontier API (BAA)Frontier API — Regional Endpoint (1B)Open-weight, localDistilled / quantized, local
Data leaves networkYes (unless contracted otherwise)Stays in contracted region; does not cross jurisdictional boundaryNoNo
Data residency assuranceNone by default — global routingContractual in-region commitment (inference + storage)Physical — data never leaves your hardwarePhysical — data never leaves your hardware
Clinical reasoning qualityHighest availableIdentical to Option One — same modelsGood, behind frontierBehind; needs fine-tuning
Latency / throughputStrong when available; access can be throttledImproved for non-US users (60–150 ms reduction typical)Bandwidth-limited on large modelsGood — sized to the hardware
Model availabilityFull — all tiers and featuresPartial — newer variants and preview features may lag US availabilityOpen-weight onlyOpen-weight, distilled or quantized
Ongoing ops burdenLow — provider-managedLow — provider-managedHigh — eval, monitoring, patchingHigh, plus fine-tuning
Upfront capital costNone — usage-basedNone — usage-based (10–20% regional premium)Hardware + redundancySame hardware, or cheaper devices
Compliance ownershipShared — BAA + your control layerShared — BAA + regional config + your control layerEntirely yoursEntirely yours
Strongest use caseComplex reasoning, copilots (US-centric)Frontier reasoning under GDPR / APA / equivalent residency rules; non-US interactive copilotsAir-gapped general-purposeNarrow extraction, redaction, triage

Other Architectures Worth a Serious Look

General-purpose architectures that don’t fit neatly into the three buckets above — and the two TCP implements natively.

Hybrid cascade. (TCP implements this.) A redaction step strips PHI/PII first; only de-identified text reaches a frontier model for the hard reasoning step. Critically, TCP re-constitutes the original PHI/PII in the model response before it is returned to the calling service — so the clinician’s experience is seamless and contextually complete, while no protected information ever left the boundary. This sidesteps most of the BAA question on the external hop — provided the redaction step is itself rigorously validated to meet the HIPAA Safe Harbor de-identification standard [9], because missed PHI defeats the premise.
Orchestration layer with routing. (TCP implements this.) A governed layer that routes each request to a local model or a BAA-covered API based on sensitivity and task, keeping one consistent audit trail regardless of where inference runs.
Provider-native regional endpoints. (TCP implements this — Option 1B.) Frontier models accessed through a provider’s own regional API, with inference and storage contractually pinned to a specific geography. Closes the gap between Option One’s reasoning quality and Option Two’s data-boundary guarantees — without on-premise hardware. TCP routes residency-constrained requests to the appropriate regional endpoint automatically, based on data class and policy.
Single-tenant rented GPU. Open-weight models on a dedicated, isolated cloud GPU under a BAA with the infrastructure provider — offering open-weight flexibility and elastic scale without owning hardware lifecycle, at the cost of trusting that provider’s isolation. Not currently implemented natively by TCP, but compatible as a custom self-hosted backend.

💡 Worth comparing: Evaluate several general-purpose models side-by-side rather than assuming one provider is the automatic pick — pricing, regional availability, and BAA terms shift often enough that last year’s comparison is probably stale.


Don’t Pick One Architecture. Segment by Task.

The strongest deployments don’t bet the organisation on one posture — they make the local-vs-cloud call per task, based on what the task actually needs.

Segmenting by task is the right answer — but only if something can enforce the segmentation and prove it after the fact. That something is the platform.


How The Clinician Platform Makes Choice & Compliance Possible

TCP places a single governed gateway between every platform service and every model. No clinician and no service talks to a model directly. Each request is authenticated, attributed, optionally de-identified, then routed — by policy — to the model that fits the task, wherever that model is hosted. Where de-identification is applied, TCP re-constitutes the original PHI/PII in the response before it is returned to the calling service, so the clinician’s experience is seamless and contextually complete — while no protected information left the boundary. Every call lands in one audit trail.

This is precisely the “hybrid cascade” and “orchestration layer with routing” the framework above calls for, made native: choice (any of the three architectures, per task) and compliance (de-identification, residency control, and auditability) are properties of the gateway, not of each calling service.

The Clinician Platform — Governed LLM Gateway Architecture Platform services enter through a single governed gateway. The gateway authenticates and attributes each request, de-identifies PHI/PII before any external hop, then routes by policy to one of three model backends: a managed frontier API under BAA, a sovereign in-region endpoint, or a self-hosted model. PHI/PII is re-constituted in the response before it is returned to the calling service, preserving a seamless clinician experience. Every call is recorded in one unified audit trail. PLATFORM SERVICES GOVERNED GATEWAY MODEL BACKENDS Decision Support Scheduling Summarisation Extraction Triage & Routing Prior Auth De-identification ONE DOOR 1 Authenticate & Attribute Per-service identity verified → request tagged for audit trail Access granted per service, not blanket 2 PHI / PII De-identification DLP scrub before any external hop Hybrid cascade — HIPAA Safe Harbor Only de-identified text leaves the boundary ↩ PHI/PII re-constituted in response — seamless UX 3 Policy-Driven Model Router Task type + data class + residency rules → selects model & endpoint by policy Secrets & config resolved centrally ROUTES TO Managed Frontier API Under BAA OpenAI Anthropic Google Gemini AWS Bedrock Azure OpenAI Vertex AI Grok (xAI) Highest reasoning ceiling · de-identified input where possible Sovereign Endpoint Data Residency Frontier model pinned to in-country / in-tenant region — meets GDPR & local law Data never crosses jurisdictional boundary Self-Hosted Model Air-Gap / In-VPC Open-weight or distilled — data never leaves your boundary High-volume extraction · redaction · triage · no per-token cost In-VPC or air-gapped deployment One Unified Audit Trail Every call recorded regardless of where inference ran Model Tokens Latency Calling Service Data Class Timestamp PHI Flag Cross-cutting — local, sovereign, and cloud calls all land here

Each platform service enters through a single governed gateway. After authentication and attribution, PHI/PII is de-identified before any external hop — only anonymised text reaches a managed API. TCP re-constitutes the original PHI/PII in the model response before returning it to the calling service, preserving a seamless clinician experience while ensuring no protected information crossed the boundary. The policy-driven router selects the appropriate model backend based on task type, data class, and residency requirements. Every call — regardless of destination — is recorded in one unified audit trail.

Choice — the same request, any of the four architectures

The router selects a model by policy, keyed to the task and the data class. The calling service doesn't need to know which model is handling the request, nor manage API keys, nor handle fallback logic.

Task profileRoutes toWhy
Complex reasoning, copilots — US-based or global dataManaged frontier API (BAA) — OpenAI / Anthropic / Google Gemini / Vertex AI / AWS Bedrock / Grok (xAI)Highest reasoning ceiling; de-identified input where possible
Complex reasoning, copilots — residency-constrained data (GDPR, APA, etc.)Sovereign endpoint — provider-native regional API (Option 1B)Same frontier reasoning quality; inference and storage pinned to a contractually committed region without owning hardware
Air-gapped, strict residency, or data that must never leave the buildingSelf-hosted modelPhysical data boundary; no external network hop of any kind
High-volume extraction, redaction, triageSelf-hosted model — distilled or quantizedData never leaves the boundary; cost-efficient at scale; concurrent execution

Compliance — how the controls map to the PHI framework

Framework principle (Part one)TCP capability (Part two)
Stop PHI reaching the wrong surfaceA single governed gateway is the only path to any model — there is no direct, ungoverned route to paste a chart into.
Minimise PHI before an external hop (hybrid cascade)Automated PHI/PII detection & redaction runs in-line before managed-API calls, so only de-identified text leaves the boundary. TCP then re-constitutes the original PHI/PII in the model response before returning it to the calling service — preserving a seamless clinician experience while ensuring no protected information crossed the external boundary.
Respect BAA scope & data residencyPolicy pins residency-constrained data to a sovereign in-region endpoint or a self-hosted model; managed-API routes are limited to BAA-covered configurations.
Segment by taskThe policy-driven router chooses the model class per request — frontier, sovereign, or self-hosted — without changing the calling service.
Attribution & accountabilityEvery request is authenticated to a known platform service and tagged; access is granted per service, not blanket.
One consistent audit trail regardless of where inference runsModel, token usage, latency, calling service, and data class are written to a single audit store for every call — local, sovereign, or cloud.
Avoid provider lock-in / access riskAdding or swapping a backend is a policy change behind the gateway; callers are unaffected, so a throttled or deprecated provider can be re-routed centrally.
The one thing that matters regardless of architecture:
A BAA or an air gap is necessary, never sufficient. The control that actually prevents PHI from reaching the wrong surface — and proves where every byte went — has to live in the platform. The Clinician Platform is that control layer. It turns the local-vs-cloud question from a one-time bet into a per-task decision that is enforced, de-identified where it should be, residency-aware, and fully audited.

References & Fact-Checking Citations:
  1. Definite. "Is ChatGPT HIPAA Compliant? (And Claude, Gemini, and Copilot)." June 7, 2026. Link
  2. Protecto. "OpenAI HIPAA BAA: What It Actually Covers (And What Leaves PHI Exposed)." May 21, 2026. Link
  3. The HIPAA Journal. "Healthcare Data Breach Statistics." June 4, 2026. Link
  4. KnowBe4. "Stanford Research: 88% Of Data Breaches Are Caused By Human Error." Link
  5. Medium. "Why LLM Inference Is Memory-Bound (Not Compute-Bound)." Feb 17, 2026.
  6. ResearchGate. "Exploring LLM Low-Bit Quantization Degradation for Mathematical Reasoning." Dec 11, 2025.
  7. Aptible. "Data residency for healthcare AI: what the regulations actually require." June 12, 2026. Link
  8. HIPAA Times. "Data residency and data localization in healthcare." March 26, 2025. Link
  9. HHS.gov. "Guidance Regarding Methods for De-identification of Protected Health Information in Accordance with the Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule."
  10. OpenAI. "Introducing data residency in Europe." February 5, 2025 (updated January 16, 2026). Link
  11. Anthropic. "Data residency — Claude API Docs." Link
  12. Microsoft Azure. "Enterprise trust in Azure OpenAI Service strengthened with Data Zones." September 24, 2024. Link
  13. Google Cloud. "Multi-region endpoints for Claude available on Vertex AI." April 15, 2026. Link