
FHIR Resources Explained: Types, Structure and Examples
Learn FHIR resources step by step: what each resource type holds, how IDs, references and extensions work, and how to choose the right ones.
Security controls for AI systems in regulated healthcare environments.

AI systems in healthcare handle protected health information, connect to clinical systems and, with large language models, accept free text from users and documents. That creates security risks that traditional application controls do not fully cover. This guide sets out the security controls a regulated healthcare organization should put around AI systems, from data access to prompt injection and vendor contracts. For the wider risk process, see AI risk management framework for healthcare; for HIPAA specifics, see HIPAA-compliant AI.
| Area | Risk | Controls |
|---|---|---|
| Data access | The AI reads more PHI than it needs | Minimum necessary access, scoped service accounts, row- and field-level permissions |
| User access | Users see data through the AI they could not see directly | Enforce the user's own EHR permissions on every retrieval; single sign-on and MFA |
| Prompt injection | Text in documents or messages changes the model's behavior | Treat retrieved content as data, limit tool permissions, require confirmation for actions, test with attack cases |
| Data leakage | PHI appears in outputs, logs or vendor training data | Output filtering, no-training terms in contracts, controlled log retention |
| Logging and audit | No record of who asked what and what the AI returned | Log inputs, outputs, sources, user and model version; protect and review logs |
| Vendors | Unknown subprocessors and data locations | BAA, security review, subprocessor list, data residency and deletion terms |
| Model and supply chain | Tampered models, libraries or datasets | Approved sources, version pinning, integrity checks, dependency scanning |
| Availability | Clinical workflow stops when the AI fails | Fallback workflows, rate limits, monitoring and incident response |
The OWASP Top 10 for LLM Applications lists risks such as prompt injection, sensitive information disclosure, supply chain issues, excessive agency and improper output handling. In healthcare, the most important controls are keeping the model's permissions narrow, never letting it act on records without human confirmation, and checking outputs before they reach the chart or the patient. For agents that call tools, see building secure healthcare AI solutions.
Organizations deploying AI with PHI can see how we build secure systems on our AI implementation support page. For compliance more broadly, see healthcare AI compliance framework.
This article is part of our HealthTech Security and Compliance: A Complete Guide, which covers HIPAA, business associate agreements, safe data handling, and SOC 2 and HITRUST in one place.
In the EU, health software may also fall under the Cyber Resilience Act; MedQAIR explains what the CRA means for health software.
Securing AI in healthcare starts with the HIPAA Security Rule and business associate agreements, then adds controls for AI-specific risks: user-level access enforcement, prompt injection, data leakage, logging, vendor and supply chain review, and fallback plans. Build security into each stage of the lifecycle rather than adding it at the end.
For an overview of governance models, risk management and the rules that apply, see our complete guide to healthcare AI governance and compliance.
If you need a secure AI deployment in a regulated environment, talk to Ekipa's HealthTech engineers.
Yes, when an AI system creates, receives, stores or transmits electronic PHI for a covered entity or business associate, the Security Rule's safeguards apply.
Yes, if they handle PHI on your behalf. Also check their terms on data retention, model training and subprocessors.
An attack where text in a message or document changes how a language model behaves, for example making it reveal data or take an unintended action.
Enforce the user's own access permissions on every data retrieval, rather than giving the AI broad access.
Inputs, outputs, sources used, the user, the model version and any actions taken, with logs protected and reviewed.

Learn FHIR resources step by step: what each resource type holds, how IDs, references and extensions work, and how to choose the right ones.

Medical device software development explained: IEC 62304 lifecycle, ISO 14971 risk, FDA documentation, cybersecurity and AI change control.

Telemedicine software development guide covering features, HIPAA and BAA rules, state licensure, FHIR integration and a step-by-step build plan.
Connect with our team to explore how AI expertise can transform your business.