FHIR API integration: what healthcare teams should plan for
Connecting to an EHR or payer through FHIR is mostly planning: which version and guides to target, how authorization gets approved, and how to handle uneven data. Here is what…
· 6 min read · By the YLinkTech Team
HIPAA and generative AI can work together, but HIPAA has no separate rule for AI. If a covered entity or business associate sends protected health information (PHI) to a model, the existing rules apply: the use has to be permitted, each vendor that handles the PHI generally needs a business associate agreement, only the minimum necessary data should be shared, and the Security Rule’s risk analysis and safeguards must cover the new system.
This article is general information, not legal advice. HIPAA questions turn on your facts, and state laws may add to them, so confirm your position with your own compliance and legal advisers before PHI goes near a model.
The closest official analogy is cloud computing. In its guidance on HIPAA and cloud computing, HHS says that when a covered entity engages a cloud service provider to create, receive, maintain or transmit electronic PHI on its behalf, that provider is a business associate. HHS adds that this holds even when the provider stores only encrypted data and has no key.
A hosted model that processes prompts containing PHI is doing a comparable job. That guidance was written about cloud services, not AI, so ask your counsel how it applies to each tool you plan to use.
One more point from the same guidance: the HHS Office for Civil Rights does not endorse, certify or recommend specific technology or products. A vendor’s “HIPAA compliant” label is a marketing statement about its controls. It is not a government approval, and it does not make your use of the tool compliant.
The Privacy Rule decides whether a use or disclosure is allowed at all. That is a question for your privacy officer, and it comes before any architecture work. A feature that drafts a visit summary for the treating clinician and a feature that mines records for marketing are very different cases.
HHS states that a covered entity may disclose PHI to a business associate only after obtaining satisfactory assurances, in the form of a business associate agreement (BAA), that the information will be safeguarded. According to the HHS business associate FAQs, the agreement must describe the permitted and required uses of PHI and bar other uses. Subcontractors that handle PHI for a business associate need their own agreements.
For a generative AI feature, trace the whole path, not only the model:
Check that the agreement covers the exact product and features you will use, and get a written answer on whether your data can be used to train or improve the vendor’s models.
The Privacy Rule generally requires reasonable steps to limit uses, disclosures and requests of PHI to the minimum necessary for the purpose. HHS lists exceptions, including disclosures to a health care provider for treatment. For prompt design this argues for selecting the fields a task needs instead of passing a whole chart, and for retrieval that returns relevant passages, not full documents.
The cloud guidance says covered entities and business associates must conduct risk analyses that identify threats and vulnerabilities to all electronic PHI they create, receive, maintain or transmit. A new AI feature creates new places where PHI lives: prompts, model outputs, embeddings, caches and test sets. Add them to the analysis before launch.
The HHS summary of the Security Rule describes administrative, physical and technical safeguards. The technical ones translate directly into design requirements.
| Safeguard | What the rule asks for | What it means for a generative AI feature |
|---|---|---|
| Access control | Only authorized persons can access electronic PHI | Retrieval respects each user’s existing record permissions, and the assistant cannot reach data the user could not open |
| Audit controls | Mechanisms to record and examine activity in systems that hold PHI | Log who asked what, which records were retrieved and what was returned, and protect those logs as PHI |
| Integrity | PHI is not improperly altered or destroyed | A person reviews AI output before it is written to the record, and the source of each entry is traceable |
| Authentication | Verify that a person seeking access is who they claim to be | Single sign-on and individual accounts, with no shared logins for the AI tool |
| Transmission security | Guard against unauthorized access to PHI sent over a network | Encrypted connections to model endpoints, with private network routes where the platform offers them |
Teams often plan to remove identifiers so that HIPAA no longer applies. The HHS de-identification guidance describes two methods under the Privacy Rule:
HHS states that data de-identified by either method is no longer PHI. The bar is higher than deleting names. The Safe Harbor list includes all elements of dates other than the year, geographic units smaller than a state with a limited ZIP code exception, device identifiers and any other unique identifying code.
Clinical notes are the hard case, because identifiers sit inside free text. If you rely on automated scrubbing, measure how often it misses, and have an expert or your counsel confirm that the method meets the standard.
If your AI feature reads from an EHR, the data access side has its own planning work, covered in the FHIR API integration guide. For the wider preparation, see the AI readiness assessment checklist.
We build AI features for healthcare and life sciences organizations with privacy and security designed in from the first sprint. Our AI and Data practice maps where PHI flows, designs retrieval that respects existing permissions, and sets up logging and evaluation. Our responsible AI and governance work gives your compliance team the documentation it needs. We are engineers, not lawyers, so we work alongside your advisers. Talk to us about your use case.
No. HHS guidance states that the Office for Civil Rights does not endorse, certify or recommend specific technology or products. A vendor can offer controls and a business associate agreement that support your compliance, but your organization remains responsible for how it uses the tool. Confirm the details with your compliance and legal advisers.
In general, a vendor that creates, receives, maintains or transmits PHI on your behalf is a business associate, and HHS says PHI may be disclosed to one only with a business associate agreement in place. Check every vendor in the data path, including logging and storage tools, and ask your counsel to review each agreement.
HHS states that data de-identified under the Privacy Rule, by Expert Determination or Safe Harbor, is no longer PHI. The standard is demanding, especially for free-text notes, and other laws or contracts may still restrict the data. Validate your method and get confirmation from an expert or your legal advisers before relying on it.
This article is general information, not professional advice. See our Disclaimer.
Connecting to an EHR or payer through FHIR is mostly planning: which version and guides to target, how authorization gets approved, and how to handle uneven data. Here is what…
Workflow automation follows steps you define. An AI agent chooses its own steps. Here is how the two differ on cost, predictability and risk, and how to decide for a…
US regulators replaced SR 11-7 with revised model risk guidance in April 2026. Here is what it says about AI, what model risk teams expect to see, and how to…
A 30-minute call is usually enough to know whether we are the right fit. We reply within one business day.