Skip to content
HIPAA Compliant AppSecure healthcare engineering

Governed healthcare AI

HIPAA-Compliant AI Healthcare Application Development

HIPAA-compliant AI app development is the engineering of AI features, such as clinical note summarization, inbox drafting, intake triage, coding assistance and document extraction, so that protected health information only reaches model providers under a business associate agreement, training data is properly authorized or de-identified, and clinicians stay in control of decisions.

Our solution page on healthcare AI describes use cases. This service page is about the data governance and safety engineering underneath them: where PHI goes when a prompt is sent, what gets logged, what a model may be trained on, and which federal rules on decision support tools may apply.

Key takeaway

HIPAA-compliant AI development keeps PHI within BAA-covered model endpoints and governed pipelines, uses only authorized or properly de-identified data for training, controls prompt and output logging, and keeps a human accountable for clinical decisions. Decision support features may also raise HHS Section 1557, ONC and FDA considerations.

Last reviewed November 17, 2026

HIPAA-compliant AI app development: service overview

This service is for health systems adding AI to clinical and operational workflows, healthcare SaaS vendors adding generative features to existing products, and startups whose core product is an AI model applied to health data.

A model call is a disclosure of whatever is in the prompt. If a prompt contains a patient's history and is sent to a model API that is not covered by a BAA, that is the same problem as emailing the chart to an unvetted vendor. The first engineering decision is therefore which model endpoints may receive PHI, and the second is how to stop PHI reaching any other endpoint.

We build retrieval-augmented generation pipelines, extraction and classification services, evaluation harnesses and the review interfaces that let clinicians accept, edit or reject AI output. We also help you document intended use and limitations, which buyers and regulators increasingly ask for.

Healthcare business challenges with AI

PHI reaching non-covered model APIs

Developers experiment with consumer chat tools or default API tiers that are not covered by a BAA or that may retain data. Without technical controls, PHI ends up there.

Training on patient data

Using clinical data to fine-tune or train a model is a use of PHI. It needs a permissible purpose under HIPAA, an authorization, or properly de-identified data.

Prompt and output logs

LLM observability tools capture full prompts and responses by default. Those logs become a new, often poorly controlled, store of PHI.

Hallucination and automation bias

Generated summaries can be fluent and wrong. Busy clinicians may accept output without checking it unless the interface makes review easy and expected.

Bias and nondiscrimination

Decision support that performs differently across populations can create discrimination risk. Federal rules now address this for certain covered entities and certified health IT.

Regulatory status of the feature

Some AI functions may be device software functions regulated by FDA. Whether a feature falls under FDA's clinical decision support criteria depends on its inputs, outputs and intended user.

AI application development capabilities

BAA-covered model routing

A model gateway that only routes PHI-bearing requests to endpoints covered by your cloud or model provider BAA, with data retention and abuse-monitoring settings configured as the provider permits.

Retrieval-augmented generation

Patient-scoped retrieval that enforces the user's access rights at query time, so the model never sees records the user could not open directly.

De-identification pipelines

Safe Harbor removal of the 18 identifier categories or support for an Expert Determination engagement, with residual-risk review for free text, which is the hardest part.

PHI-aware prompt logging

Configurable logging that stores prompt metadata, token counts and evaluation scores, with full-text capture only where needed, encrypted, access-restricted and retained briefly.

Human review interfaces

Draft-and-approve workflows, source citations linking each generated statement to the underlying record, and edit tracking that shows what the clinician changed.

Evaluation and monitoring

Task-specific test sets, accuracy and omission checks, subgroup performance review and drift monitoring after release.

Guardrails

Input and output filters for prompt injection, scope limits on tool use by agents, and refusal handling for out-of-scope clinical questions.

Transparency documentation

Model cards, intended use statements, known limitations and source attribute information that customers and reviewers can examine.

HIPAA-related security considerations for AI

HIPAA has no AI-specific rule; existing standards apply to AI systems the same way they apply to any system handling ePHI. Several adjacent federal rules address decision support specifically, and their status has been changing, so we flag them for your counsel rather than treat them as settled.

HIPAA requirement

What the rules themselves require

  • A BAA with any model provider or cloud service that creates, receives, maintains or transmits ePHI (164.502(e), 164.504(e)).
  • Uses of PHI for training must be permitted under the Privacy Rule, authorized by the individual, or performed on data de-identified by Safe Harbor or Expert Determination (164.514(b)).
  • Access control, audit controls and authentication for AI services and their data stores (164.312(a), (b), (d)).
  • Including AI components, vendors and data flows in the risk analysis (164.308(a)(1)(ii)(A)).
  • Where applicable to the organization, HHS Section 1557 rules on patient care decision support tools (45 CFR 92.210) and ONC HTI-1 decision support intervention requirements for certified health IT; confirm current status and applicability with counsel.

Recommended practice

Widely accepted security practice

  • A model gateway that blocks PHI from reaching non-covered endpoints.
  • Minimal prompt context: send only the record sections the task needs.
  • Prompt and output logs treated as ePHI, with short retention.
  • Clinician review before AI output enters the chart or reaches patients.
  • Subgroup performance evaluation and documented limitations.
  • Defenses against prompt injection from documents and patient messages.

Architecture decision

Depends on your product and risk analysis

  • Self-hosted open-weight models inside your own cloud environment.
  • Fine-tuning versus retrieval, depending on task, data rights and cost.
  • Synthetic data for development and testing.
  • Confidence thresholds that suppress low-quality output.

Your organization's responsibility

Policies and operations software cannot do

  • AI governance: who approves new use cases, models and data uses.
  • Assessment of FDA status for clinical functions, with regulatory counsel.
  • Patient and clinician communication about where AI is used.
  • Workforce policy on use of public AI tools with PHI.
  • Monitoring and incident procedures for harmful or biased outputs.
FDA's Clinical Decision Support Software guidance describes when software intended for health care professionals may fall outside the device definition; FDA has revised its digital health guidances over time, so review the current version with regulatory counsel. The HHS Section 1557 rule (2024) requires covered entities to make reasonable efforts to identify and mitigate discrimination risks from patient care decision support tools, and ONC's HTI-1 rule set transparency requirements for decision support interventions in certified health IT; both have been subject to later review and proposed changes. No software, hosting provider or development partner can make an organization HIPAA compliant. Compliance depends on the covered entity or business associate operating a security program: risk analysis, policies, workforce training, BAAs and ongoing risk management. Our engineering is designed to support those requirements, not to replace them.

Technical architecture for healthcare AI

ComponentRolePHI controls
Model gatewaySingle egress point for all model callsAllowlist of BAA-covered endpoints, request redaction, per-use-case keys
Retrieval layerFetch relevant record sectionsEnforces user's access rights, patient-scoped indexes
Vector storeEmbeddings of clinical documentsTreated as ePHI, encrypted, tenant and patient partitioned
OrchestrationPrompts, tools, agent stepsVersioned prompts, restricted tool permissions, injection filters
Evaluation serviceOffline and online quality checksDe-identified or synthetic test sets where possible
Review UIClinician accepts, edits, rejectsCitations, edit audit trail, clear AI labeling
ObservabilityLatency, cost, quality metricsMetadata by default, full text only under restricted access

EHR and API integration options

  • SMART on FHIR apps that launch in the EHR, read patient context with user-level scopes and present AI drafts for review.
  • FHIR DocumentReference and Composition resources to read notes and write approved summaries, where the EHR supports write access.
  • CDS Hooks services that return suggestions at defined workflow points, with the clinician choosing whether to act.
  • Ambient documentation pipelines that capture audio with consent, transcribe through BAA-covered services and produce draft notes.
  • Inbox and message integrations that draft replies to patient messages for clinician approval.
  • FHIR Bulk Data exports into a governed analytics environment for de-identified model development.

Development methodology

  1. 1

    Use case and intended use definition

    Define the task, user, inputs, outputs and what the AI must not do. This drives regulatory assessment and evaluation design.

  2. 2

    Data rights and vendor review

    Confirm BAAs, provider data retention terms and the legal basis for any training or fine-tuning data.

  3. 3

    Evaluation-first prototyping

    Build a test set and success criteria before tuning prompts, including subgroup and failure-mode cases.

  4. 4

    Governed build

    Implement the gateway, retrieval access checks, logging controls and review interface alongside the model logic.

  5. 5

    Clinical validation

    Pilot with clinicians in a limited setting, measure accuracy and edit rates, and refine.

  6. 6

    Monitored release

    Release with drift and quality monitoring, an incident path for harmful output and periodic re-evaluation when models change.

Cost and timeline factors

Rough, scope-dependent planning ranges only; not quotes and not based on our project data. Model usage costs vary with volume and provider pricing and are separate from engineering effort.

Single generative feature in an existing app

For example, a visit summary draft with review: roughly 2 to 4 months including evaluation.

RAG platform across record types

Access-aware retrieval, multiple tasks and a review UI: roughly 4 to 8 months.

Training on clinical data

De-identification, data agreements and evaluation significantly extend timelines.

Regulated functionality

If a feature is assessed as a device software function, quality system and premarket work become major cost drivers.

This page is general information about software engineering for healthcare, not legal advice. HIPAA compliance depends on your organization's risk analysis, policies, workforce practices, vendor agreements and how PHI is actually handled. No software, hosting provider or development partner can make an organization compliant on its own, and there is no official HIPAA certification for applications.

Frequently Asked Questions

Can we send PHI to a large language model API?

Only if the provider signs a BAA that covers the specific service you use and you configure it according to their HIPAA guidance. Major cloud platforms offer some model services under their BAAs; check the current eligible-services list. Consumer chat products are generally not appropriate for PHI.

Can we train our model on patient records?

Training is a use of PHI. It may be permitted in limited circumstances, such as certain health care operations, but often requires individual authorization or properly de-identified data under Safe Harbor or Expert Determination. Free-text notes are hard to de-identify reliably, so plan for expert review.

Are prompt logs considered PHI?

If prompts or outputs contain identifiable health information handled by a covered entity or business associate, yes. Treat them as ePHI: restrict access, encrypt them, keep retention short and make sure any observability vendor is under a BAA or receives only metadata.

Does our AI feature need FDA clearance?

It depends on intended use. FDA's clinical decision support guidance describes criteria under which software for health care professionals may not be a device, such as allowing the professional to independently review the basis for recommendations. Assess each clinical feature with regulatory counsel.

What does Section 1557 have to do with AI?

HHS's 2024 Section 1557 final rule added a provision requiring covered entities to make reasonable efforts to identify and mitigate discrimination risks from patient care decision support tools, including AI. Applicability and enforcement posture have been evolving, so confirm the current position with counsel. Subgroup evaluation helps either way.

How do you keep clinicians in control of AI output?

AI output is presented as a draft with citations to source records. A clinician must review and approve before anything is filed or sent, edits are tracked, and the interface labels AI-generated content clearly.

How do you defend against prompt injection in clinical documents?

We treat retrieved documents and patient messages as untrusted input, separate them from instructions, restrict what tools the model can call and require human approval for actions with side effects.

Plan your HIPAA-compliant app with engineers who start from the data flow.

Tell us what you are building. We will respond with questions about scope, integrations and PHI handling, then a structured estimate. Please do not include patient information.