Private AI for hospitals: keeping PHI inside the network
Private AI for hospitals: keep patient data (PHI) inside your network, why public AI APIs clash with it, and what to check before you start.
Updated
Private AI for hospitals means a model that runs inside the hospital’s network, or in a cloud account the hospital controls, so patient text does not go to a third party. That keeps protected health information (PHI) under the hospital’s own access and logging rules. A public AI API receives the text and may store it, so the hospital’s privacy office will want to review that path before approving it.
What counts as PHI in an AI request?
PHI is health information that can be tied to a person. In a hospital that covers far more than the chart. A discharge summary, a referral letter, a billing dispute, a scheduling note or a lab result pasted into a chat window can all carry PHI. Names, dates of birth, record numbers and room numbers count, and so does any mix of details that identifies someone when put together.
A prompt is a copy of the data. Once the text is in a prompt, it has been transmitted, and depending on the vendor’s terms it may be stored in logs, kept for abuse monitoring or pulled into a support ticket. Read the terms of the plan you use, and check the vendor’s current policy, because terms change. Stripping names before a prompt helps, but it has limits, as covered in PII redaction before an LLM.
Why do public AI APIs clash with patient data?
The problem with public AI APIs is the data path. Hospital text leaves the network, enters a system the hospital does not operate and comes back as output. Access rules, retention and breach response at each step are set by someone else.
There is also a contract gap. A hospital needs a signed agreement that covers how the vendor handles PHI, including subprocessors and deletion. Check whether the plan you are considering includes that agreement, and ask for the specific document, not a marketing page.
Finally there is the audit trail. When a model reads a chart and writes a summary, the hospital needs to know which model ran, what it saw and what it returned. A model you host gives you those logs. A remote model can change when the vendor updates it.
What changes when the model runs inside the hospital network?
A private model moves the risk boundary. The text stays on hospital infrastructure or in a cloud account the hospital owns. The people who control access are the people who already run the hospital’s network. The hospital decides who calls the model, what gets logged, how long logs are kept and how the system is patched.
That changes who holds the controls. It does not guarantee safety. A badly configured private server leaks data as easily as a public one. Securing a self-hosted model means access control, encryption, logging and a plan for protecting the weights. The setup itself is covered in running an LLM on-prem. A private deployment still needs a security review and privacy sign-off.
Owning the model also means it does not change without you. A fine-tuned open-weight model that you run yourself stays the same until you decide to update it. In clinical settings a changed output can alter a review workflow, so every update should be tested again on your own records before it goes live.
Can hospitals use ChatGPT with patient data?
Only when the hospital’s privacy and security teams have approved a specific use, a specific vendor and a specific contract. A consumer chat tool is not a route for PHI. An enterprise plan may fit some uses, but the vendor is still a third party handling the data. Check the current terms for that exact plan.
Many teams split the work. Text with no patient data can go to a public tool where policy allows. Anything containing PHI goes to a model the hospital controls. Enforce that line at the network level, not only with a memo.
Which hospital tasks suit a trained model on patient records?
Start with narrow, high-volume tasks that have a clear right answer. For the administrative side, see AI for healthcare administration. Examples include pulling diagnosis and procedure codes from a note, sorting incoming referrals by type, extracting insurance fields from scanned forms and flagging missing signatures. These tasks repeat every day, and each output can be checked against records a person has already reviewed.
Free-form clinical reasoning is a different job. A model that drafts a treatment plan is a clinical tool and needs clinical validation and regulatory review that a document-extraction model does not. Keep the model in the role of helping a trained reviewer. Its output is not medical advice, and nothing should enter a chart without a person checking it.
Before anything goes live, score the current process and the candidate on notes certified coders have already coded, and count missed codes and wrong codes separately, since each has a different cost in billing and audit. Keep that test set inside the hospital network like any other PHI. The full method is in how to build a test set.
When is a private model the wrong choice for a hospital?
A private model is not the right answer for every problem. In a hypothetical case with a few hundred requests a month, a hosted API under a signed agreement may cost less and need less operating work. If the task changes every few weeks, a fixed trained model will need frequent retraining. If no one on your team can run the servers, staffing may cost more than the savings.
The homepage explains how we run the work, and the free AI cost audit lists the AI calls in your code with their models and estimated cost. Pick the route after you have the real volume and the real cost per task.
If you want to see where your AI calls sit and what they cost, start with the free audit, or book a call and we will go through the results with you. The audit reads your code on your own machine, makes no network calls while it reads, and uploads nothing. It does not tell you which data is patient data, so that review stays with your privacy team.
Questions
What is an LLM for patient data?
It is a language model that reads clinical or administrative text, such as notes, referrals and forms, and returns structured output like codes, fields or flags. The question for a hospital is where it runs. A model in the hospital's own environment keeps that text under the hospital's own access and logging rules.
How do large language models handle PHI?
They process whatever text is in the prompt, and that text may be written to logs. Strip identifiers where the task allows it, limit who can call the model, and set log retention in writing. Redaction reduces exposure but does not remove it.
Can hospitals use ChatGPT with patient data?
Not on a consumer account. Even an enterprise plan sends the text to a third party, so the answer depends on a signed agreement that covers PHI and the exact plan in use. Ask the vendor for that document and read the current terms yourself.
What does a self-hosted LLM for healthcare need in place?
Access control on who can call the model, encrypted storage for logs and weights, a patch process and a named owner. You also need an approved use case and a test set built from your own records. Hosting is only one part of the work.
What should hospital AI data privacy cover?
Four things: which data reaches the model, who can call it, how long prompts and outputs are kept, and what happens to the data when a contract ends. Write each answer down before go-live and review it whenever the model or vendor changes.