On-Premise AI for Healthcare: Use Cases, EHR and FDA Rules

9 min read

On-premise AI for healthcare means running language models on servers the hospital or health system controls, so clinical notes, messages and records are processed without leaving its network. The privacy case is the one everyone starts with, and our post on what a HIPAA compliant LLM setup needs covers the Privacy Rule, the Security Rule and business associate agreements in detail. This post picks up where that one stops.

Once the data question is settled, three others decide whether a project ships: which tasks are worth doing, how the model gets data in and out of the EHR, and whether a given feature turns the software into a regulated medical device. The short answers: start with documentation work a clinician signs, read from the EHR through its FHIR API, and keep the model away from images and from recommendations that a clinician cannot check in the time they have.

This post is general information, not legal or regulatory advice. Your compliance office, counsel and regulatory affairs team decide what applies to you.

Where on-premise AI for healthcare earns its place

The tasks that work share a shape: the input is text the organization already holds, the output is a draft, and a named person reviews it before it goes anywhere.

Task Input Output Who signs off
Note summarization Prior notes, problem list, recent labs as text A one-page summary before a visit or handoff The clinician seeing the patient
Discharge summary draft The inpatient stay's notes, medications, procedures A first draft in the hospital's template The discharging physician
Coding support The signed note Suggested codes, each with the sentence that supports it A certified coder
Patient message draft The patient's portal message, the chart context A reply in plain language The nurse or physician who sends it
Prior authorization packet Payer criteria, relevant chart sections A letter and a checklist of evidence with citations Utilization review staff
Imaging report support The radiologist's dictated findings Cleaned-up structure, a patient-friendly version The radiologist
Research on de-identified data De-identified notes Extracted variables, cohort counts The study team

Clinical documentation

Summaries and discharge drafts are the safest first project because the reviewer is already reading the chart. Ask for a fixed structure (active problems, changes since last visit, pending results, follow-up) rather than free prose, so the clinician can check each line against the source. Make the model quote or link the note it took each statement from.

Coding support follows the same rule. A suggested code is only useful with the exact sentence that justifies it, because that is what an auditor will ask for. The coder decides.

Patient messages and prior authorization

Portal inboxes are where clinician time disappears. A model can draft the reply, but a person sends it, and the draft should never introduce clinical advice that is not already in the chart. Keep drafts in the clinician's inbox, not in an auto-send queue.

Prior authorization is paperwork with deadlines. Under the CMS Interoperability and Prior Authorization Final Rule (CMS-0057-F), impacted payers such as Medicare Advantage organizations and Medicaid programs must send decisions within 72 hours for expedited requests and seven calendar days for standard ones from January 1, 2026, and must run an HL7 FHIR Prior Authorization API from January 1, 2027. On the provider side, the useful job for a model is assembling the packet: matching the payer's documentation requirements to the chart and drafting the letter, with every claim pointing to a source note.

Imaging reports and research

Text work around imaging is fine. Turning a radiologist's dictation into the department's structured template, or writing a plain-language version for the patient portal, works on words the radiologist already wrote. Analyzing the image itself is a different category, covered in the FDA section below.

For research, de-identified data takes most of the HIPAA questions off the table. HHS's de-identification guidance describes the two methods, Safe Harbor and Expert Determination. A local model is a practical way to extract variables from thousands of free-text notes, such as smoking status or reasons for readmission, and an IRB-approved study can check a sample by hand. Our guide to evaluating open source LLMs on your own data explains how to build that hand-checked sample into a test set.

Tasks to avoid, or to hold back for later

  • Anything that answers a patient without a person reviewing it first.
  • Triage, sepsis alerts or other time-critical recommendations.
  • Medication dosing or order suggestions that a clinician could accept with one click.
  • Reading pixels from images, waveforms or lab instrument signals.
  • Final codes submitted to a payer without a coder's review.

Most of these are not off limits forever. They need a validation program, and some need FDA clearance, which is a product decision, not an IT one.

When FDA software rules may apply

FDA regulates some software as a medical device. The 21st Century Cures Act excluded certain clinical decision support (CDS) software from that definition, and FDA's Clinical Decision Support Software guidance, issued January 29, 2026, explains how it reads the four criteria. Software must meet all four to fall outside the device definition:

  1. It is not intended to acquire, process or analyze a medical image, a signal from an in vitro diagnostic device, or a pattern or signal from a signal acquisition system.
  2. It is intended to display, analyze or print medical information about a patient or other medical information, such as clinical guidelines.
  3. It is intended to support or provide recommendations to a health care professional about prevention, diagnosis or treatment.
  4. It is intended to let that professional independently review the basis for the recommendations, so they do not rely primarily on the software.

Three points from the guidance matter most for LLM projects:

  • Image analysis fails criterion 1. The guidance lists functions that identify normal or abnormal structures or measure a suspected nodule as examples. A vision-language model asked to describe a chest X-ray is in device territory.
  • Software that gives recommendations to patients or caregivers, rather than to health care professionals, meets the device definition. A patient-facing symptom chatbot is a regulatory question before it is a technical one.
  • FDA does not consider software for a critical, time-sensitive task to meet criterion 4, because the clinician lacks time to review the basis of the recommendation. The guidance also names automation bias, the tendency to over-rely on an automated suggestion.

A drafting tool that restates what is already in the chart is generally further from these lines than one that suggests a diagnosis, but intended use decides it, including how the feature is described in training and internal documents. Bring regulatory affairs in when a feature starts to recommend rather than summarize.

Getting data in and out: FHIR and the EHR

HL7 FHIR (Fast Healthcare Interoperability Resources) is HL7's standard for health care data exchange. In the US, certified health IT must offer a standardized API for patient and population services built on FHIR R4, the US Core implementation guide, SMART App Launch for authorization, and Bulk Data for group exports. The certification test method states that this criterion covers "read" services and specifically excludes "write" capabilities.

That has two practical consequences for an LLM for EHR data:

  • Reading is standardized. A summarization service can authenticate with SMART, pull the Patient, Condition, MedicationRequest, Observation and DocumentReference resources it needs, and send only those sections to the model. That is the minimum necessary principle expressed as an API scope.
  • Writing back is not. Saving a draft note into the chart usually goes through the EHR vendor's own interfaces or a FHIR write your vendor supports. Plan for that conversation early; it is often the longest lead time in the project.

The pattern that works: an integration service inside the hospital network pulls FHIR resources, builds the prompt, calls the model over an OpenAI-compatible API, and places the draft where the clinician reviews it. If you need search across policies or old scanned letters, add a retrieval layer; RAG with a local LLM walks through building one on your own hardware.

Procurement and IT security review in a hospital

Expect these questions from the security team, and have the answers written down before the first meeting:

  1. Where does inference run, and does any request, log or telemetry leave the network?
  2. Which identity provider handles sign-in, and how are roles mapped?
  3. Which applications hold API tokens, and how are they rotated and revoked?
  4. What is logged, who can read the logs, and how long are prompts and outputs kept?
  5. How do the vendor's support staff get access, and how is PHI kept out of support tickets?
  6. Which model, at which version and quantization, is in production, and who approved it?
  7. Where does the clinical validation evidence live?

A self-hosted deployment gives clear answers to the first and last of these, because the model file does not change unless you replace it. It also means your team owns patching, hardening and monitoring. The self-hosted LLM security checklist covers that work item by item.

Hardware is usually less of an obstacle than expected. A 14B-parameter model at 4-bit quantization needs roughly 14 x 0.6 = 8.4 GB for weights, plus KV cache for the context window, which fits on a single data center GPU and handles summarization and drafting well. Keep larger models for the tasks where your test set shows the small one falling short.

Human review is the control that matters

Every row in the table above ends with a person. Make that real rather than nominal:

  • Show sources next to each generated statement so review takes minutes, not a rereading of the chart.
  • Record the draft and the final signed version, and track how often clinicians change the draft. A rising edit rate is your earliest quality signal.
  • Re-run your test set whenever the model, quantization or prompt changes.
  • Tell clinicians plainly which tasks the tool is approved for, and which it is not.

Where AI Refinery fits

AI Refinery, a self-hosted LLM platform, installs inside your own infrastructure: your cloud, your VPC, on-premise servers or a fully air-gapped network. Nothing phones home, so prompts and outputs stay in the environment you control. You choose open-source text, embedding and vision-language models from a curated catalog where every quantization variant is benchmarked for size on disk, GPU memory and tokens per second, with security scoring and license documentation for each model. Every deployed model exposes an OpenAI-compatible endpoint, and RBAC, SSO, approval workflows and a full audit log answer several of the security review questions above.

It does not make anything HIPAA compliant, it holds no certifications, and it does not sign BAAs. Compliance stays your organization's responsibility. It also has no built-in chat interface, RAG layer or EHR connector: your integration team builds the FHIR service and the review screen, and pairs the platform with the vector database you already use. If you have no GPU servers and no team to run them, a hosted service under a BAA may suit you better.

Questions about a clinical deployment can go to [email protected].