HIPAA and generative AI: what the rules require for PHI
HIPAA has no separate rule for AI, so the existing ones apply. Here is how business associate agreements, minimum necessary, risk analysis and de-identification shape a generative AI feature.
· 6 min read · By the YLinkTech Team
FHIR API integration means connecting your application to an electronic health record (EHR), a payer or another health system through HL7’s FHIR standard, which exchanges health data as structured resources over a web API. Calling the endpoint is the easy part. Most of the effort goes into choosing the right version and implementation guide, getting authorization approved, mapping imperfect data and testing against each vendor’s server.
This article is general information, not legal or regulatory advice. Rules and adopted standard versions change, so confirm what applies to you with your own compliance and legal advisers.
HL7 describes FHIR (Fast Healthcare Interoperability Resources) as a standard for exchanging healthcare information electronically. Its specification overview explains that the basic building block is a resource, such as Patient or DiagnosticReport, and that all exchangeable content is defined as a resource with a common structure, common metadata and a human-readable part.
Two design choices matter for planning. First, the base resources cover the needs most implementations share, and a built-in extension mechanism covers the rest. Second, each server publishes a CapabilityStatement that describes the interfaces it exposes.
The practical result is that “supports FHIR” does not mean two servers behave the same way. Optional elements, extensions and search support differ between vendors and between sites running the same vendor. FHIR also does not replace everything that came before it. HL7 notes that it can be used alone or alongside older standards, and many hospitals still run HL7 v2 feeds next to their FHIR APIs.
HL7 lists Release 5 as the current published version of FHIR. That does not make it the version you will integrate with. The SMART App Launch guide is built on FHIR R4, and as of November 2026 the ONC test method for the standardized API criterion referenced US Core 6.1.0, SMART App Launch 2.0.0 and Bulk Data Access 1.0.0 as base standards, with newer versions approved as options. Build for what the servers you connect to expose today, and read their CapabilityStatement before you estimate.
| Layer | What it governs | Why it affects your plan |
|---|---|---|
| FHIR base specification | Resources, data types, the REST API, JSON and XML formats | Sets the version your client library and data model must match |
| US Core implementation guide | US profiles that narrow the base resources and mark required and must-support elements | Tells you which fields you can reasonably expect from a certified US system |
| SMART App Launch | Authorization, launch context and scopes, based on OAuth 2.0 | Decides how your app signs in and what it may read or write |
| Bulk Data Access | Export of data for groups of patients | Needed for population analytics, quality reporting and data platform loads |
Two US programs explain why FHIR endpoints exist where they do.
The ONC Health IT Certification Program includes a criterion, 45 CFR 170.315(g)(10), for a standardized API for patient and population services. Certified health IT that meets it must support single-patient and multiple-patient access, app registration, and authorization for patient, user and system scopes. Developers must also publish their API documentation at a public link. This is why most certified EHRs offer a FHIR endpoint and a developer portal.
On the payer side, the CMS Interoperability and Prior Authorization final rule (CMS-0057-F) requires impacted payers to implement and maintain FHIR APIs. The CMS fact sheet lists Medicare Advantage organizations, state Medicaid and CHIP fee-for-service programs, Medicaid managed care plans, CHIP managed care entities and Qualified Health Plan issuers on the Federally Facilitated Exchanges. It describes Patient Access, Provider Access, Payer-to-Payer and Prior Authorization APIs, with API compliance dates generally beginning January 1, 2027 and exact dates varying by payer type.
Whether either program applies to your organization depends on your role. Treat this as orientation and ask your advisers for a firm answer.
The SMART App Launch guide defines patterns based on OAuth 2.0 for apps to authorize, authenticate and integrate with FHIR systems. It covers two situations:
Access is expressed as scopes, and the scope syntax changed between SMART v1 and v2, so check which one each server accepts.
The code is rarely what delays a project. Registration with each EHR vendor or health system, security questionnaires and scope approval take calendar time that you do not control. Request only the scopes your use case needs, because narrow requests are easier to approve and safer to operate.
A valid FHIR response can still be hard to use. Plan time for these problems:
Build a mapping and validation layer between the FHIR client and your application, and log what it rejects. That log becomes your evidence when a site asks why a record is missing.
If you are weighing an integration platform against your own connectors, the build vs buy decision framework applies well to this choice.
We work with providers, payers and digital health companies on healthcare technology, from scoping to production support. Our Digital Product Engineering practice builds FHIR clients and servers, SMART on FHIR apps and the mapping layers behind them through our APIs and systems integration work. We can also supply engineers who have worked with EHR interfaces. If you are planning an integration, tell us about it and we will help you size the work.
Build against the version the systems you connect to expose. HL7 lists Release 5 as the current published version, but the SMART App Launch guide is based on R4 and US certification standards reference US Core guides. Read each server's CapabilityStatement before you commit, and plan for more than one version over time.
SMART App Launch is an HL7 implementation guide that defines how apps authorize and authenticate with FHIR servers using patterns based on OAuth 2.0. It covers user-facing apps launched inside or outside an EHR, and backend services with no user present. Access is granted through scopes that limit what an app can read or write.
It depends less on coding and more on steps you do not control: app registration, security review and scope approval with each vendor or health system, plus data mapping for each site. Start those steps at the beginning of the project, pilot with one site, and expect each new connection to need its own testing.
This article is general information, not professional advice. See our Disclaimer.
HIPAA has no separate rule for AI, so the existing ones apply. Here is how business associate agreements, minimum necessary, risk analysis and de-identification shape a generative AI feature.
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.