OpenEMR patient access API and (g)(10) for third-party apps

How to publish OpenEMR's FHIR patient access API, register third-party apps and set patient scopes under 170.315(g)(10), with the information blocking risks of refusing access.

On this page

How OpenEMR's patient access API supports (g)(10) and what stays with your organization

A practice or health system that must let patients connect the apps they choose to their OpenEMR records needs a patient-facing API that works with those apps without custom plumbing for each one. OpenEMR's FHIR API implements FHIR R4 (4.0.1), US Core 8.0 and SMART on FHIR v2.2.0, with OAuth 2.0 and OpenID Connect, PKCE for public apps and granular scopes. Those pieces give a third-party app a standard way to request authorization, receive a token and read only the resource types the patient has allowed. Your team still has to publish the endpoint, decide which scopes and resources patients can grant, and test that a patient-authorized app sees the right data and nothing more.

Three things stay with your organization, and none of them transfers to a implementation partner. The certification itself belongs to the product's certification record and to the organization's use of it, so you must confirm which OpenEMR version and certification listing applies to your environment before you describe the (g)(10) capability to anyone. Registration with the OpenEMR Foundation, which the certified-use settings require, is a step your organization completes and maintains. Your policies on app vetting, patient identity proofing, consent wording, retention of app-side data and the handling of patient requests are yours, and they need legal and compliance review against the rules that apply to you.

DeployOpen prepares the configuration, the test evidence and the documentation that show how the API is set up, but it does not certify OpenEMR or your use of it, and it does not issue audit reports or attestations. Before work starts, ask who owns each decision in writing, confirm the OpenEMR version you run, and agree which controls you expect an independent assessor to review. Where information blocking questions arise from refusing or delaying access, the decision and its documented reasons should sit with your compliance lead, with the technical team supplying the logs and configuration that show what happened.

Mapping (g)(10) and information blocking duties to OpenEMR capabilities and configuration

This table maps each supplied regulatory requirement to the OpenEMR settings that support it and names what to confirm in your environment. Read each row as a starting point: a setting supports a requirement, but the practice still owns the policy, the evidence and the final determination. The main takeaway is that the API is only one control among identity, hosting and contract terms, and those often decide whether patient access is defensible.

RequirementWhat it asks forOpenEMR setting or item to confirmWhat to confirm in your environment
Unique user identification (164.312(a)(2)(i), required)Each user of ePHI systems has a unique identifier, so access can be traced to a personIndividual user accounts in OpenEMR, with LDAP or Active Directory login (version 6.0.0) or Google Sign-In (version 6.1.0) where usedConfirm no shared clinician or admin logins, and that directory accounts map to one OpenEMR user each
Automatic logoff (164.312(a)(2)(iii), addressable)Sessions end after a period of inactivitySession timeout settings in the OpenEMR Administration Globals, as documented on the wikiConfirm the timeout value you chose, document why, and test it on the patient portal and API token flows
Encryption of ePHI (164.312(a)(2)(iv) and 164.312(e)(2)(ii), addressable)Encrypt ePHI at rest where reasonable, and protect it in transitHTTPS only on the web server, with port 443 as the only exposed port, and the option to encrypt items stored on driveConfirm TLS configuration on the FHIR endpoint, certificate management, and whether disk or document encryption is enabled and documented
Authentication for the FHIR API (164.312(d), person or entity authentication)Verify that a person or app seeking access is who they claim to beOAuth 2.0 and OpenID Connect with PKCE for public apps, and SMART on FHIR v2.2.0 authorizationConfirm app registration approval steps, client secret storage, and whether MFA applies to clinician and admin logins
Minimum necessary access for patient-authorized appsAccess limited to what the patient authorized for each appGranular SMART scopes on the FHIR API, reviewed against the registered app listConfirm which scopes each app requests, that patient consent screens show them, and who reviews app grants
Password controls for workforce accounts (164.308(a)(5), password management)Strong passwords, reuse limits and expiry for accounts that reach ePHIPassword length, four-character-type rule, reuse prevention for up to 5 prior passwords, and Bcrypt, Argon or SHA512 hashing (version 6.0.0)Confirm the policy in the Administration Globals matches your written policy and that admin accounts follow it
Business associate terms (45 CFR 164.314(a)(2)(i))Contract requires Security Rule compliance, flow-down to subcontractors, and incident reportingNot a software setting. Hosting, support and app vendors that touch ePHI need these terms in writingConfirm each hosting provider, support vendor and third-party app has a business associate agreement before access is enabled
No HIPAA certification (HHS FAQ 2003)No standard requires certifying compliance, and private certifications do not bar later HHS findingsThe OpenEMR ONC certification covers the certified criteria only, not HIPAA complianceDo not describe the deployment as HIPAA certified. Ask your counsel and assessor to confirm how the evidence will be presented
Information blocking exposure from refusing accessRefusing or delaying access without a qualifying reason may be treated as information blockingThe FHIR API and bulk export are the technical paths to enable, with documented exception rules applied per requestConfirm your information blocking policy, who decides exceptions, and how each refusal is logged and reviewed

Evidence to keep for auditors and certification reviewers

A reviewer assessing patient access will want proof of what the API exposes, who can connect to it, and what was done with it. Each artifact below answers one of those questions, and each needs a named owner and a refresh trigger so it stays accurate after the next release or app change.

Published capability statement

The capability statement is the server's machine-readable description of supported resources, operations, search parameters and security services. Export it from the live FHIR endpoint, not from documentation, and store a dated copy with each release. Compare it against the FHIR R4, US Core and SMART on FHIR versions your certification relies on, and regenerate it after any upgrade, because a stale copy will not match what a reviewer tests.

OpenEMR FHIR README

Registered app list

Keep one register of every client application that holds credentials for the API, with the vendor, the business purpose, the data scopes granted, the owner inside your organization and the date of the last review. Remove any app whose owner cannot be named. Reconcile the register against the OAuth client records in OpenEMR each quarter and after every staff change.

Redirect and client settings

For each registered app, record the exact redirect URIs, whether it is a confidential or public client, and whether PKCE is enforced. Wildcard or loopback redirects that were loosened for testing are a common finding. Export the settings with the app register and keep a change log showing who approved each edit and why.

Scope configuration records

Document which SMART scopes are available to patients and which are available to clinician-launched apps, and why each is granted. Keep a dated record of scope changes, since granular scopes determine what a patient-facing app can read. Confirm with the Foundation or your certification consultant which scope settings your certified configuration must hold before you treat any list as final.

Access and audit log extracts

Keep periodic extracts showing token issuance, resource reads by patient-authorized apps and failed authorization attempts. Set a retention period in your records policy and confirm that the audit log encryption and retention settings in your certified environment cover these events. Test that you can retrieve one patient's access history on request, because that is the question a reviewer or patient is most likely to ask.

Release and patch records for 8.x

Record each OpenEMR 8.x version in production, the date it was applied, the release notes reviewed and any security fixes applied. The 8.3.0 and 8.4.0 releases fixed vulnerabilities in FHIR APIs, so a dated patch log showing those fixes applied is direct evidence for the API surface. Link each entry to the GitHub release page and keep the record with your change management system.

Latest release noted
8.4.1

Business associate contracts with app vendors

Where a third-party app receives ePHI on a patient's request, confirm with counsel whether a business associate contract is required, because the app may act for the patient rather than for you. Where one is required, 45 CFR 164.314 sets the minimum terms, including Security Rule compliance and incident reporting. Keep signed agreements in the same register as the app entry so the two records can be audited together.

45 CFR 164.314 text

Configuring the FHIR endpoint, app registration and patient scopes in sequence

This sequence takes an OpenEMR deployment from a confirmed release and hardened web tier to a tested patient access API, with each setting recorded so the configuration can be reviewed later.

  1. Confirm release line and platform requirements

    Before changing any API setting, the platform owner confirms which OpenEMR release line the practice runs, the PHP version (recent releases require PHP 8.3 or later) and the MySQL- or MariaDB-compatible database version. Check the release notes on the OpenEMR releases page for the version in use, including the security fixes in the 8.3.0 and 8.4.0 releases affecting FHIR APIs. Done means a written record of the version, PHP build, database version and the upgrade plan, approved by the person who owns the certification settings. If the instance is behind on security releases, patch first so the API is not configured on code with known FHIR vulnerabilities.

  2. Restrict the web tier to HTTPS on port 443

    The platform or infrastructure team limits the public entry point to HTTPS, consider opening only port 443 as the Securing OpenEMR guide advises, and removes setup.php and other admin scripts after installation. They also block direct web access to sites/*/documents. Verify from outside the network with a port scan and a request to the document path, confirming that only the expected endpoints respond. Done means a scan report and a blocked-request test saved with the change record. Patient API traffic carries protected health information, so no plain HTTP listener should remain reachable.

  3. Enable the FHIR API and SMART settings

    An administrator enables the FHIR API in the OpenEMR global settings and confirms the SMART on FHIR and OAuth 2.0 options, including the OpenID Connect configuration. Record the base FHIR URL that apps will call, and the authorization and token endpoints that OpenEMR publishes. Confirm against the OpenEMR FHIR README which FHIR R4, US Core and SMART versions the release implements before you tell any app developer what to target. Done means a test request to the capability statement returns the expected resources and the SMART configuration document lists the endpoints you recorded.

  4. Register apps with PKCE for public clients

    Each third-party application is registered before it can request data. Confidential server-side apps receive a client secret that is stored in the app owner's vault. Public apps, such as mobile or browser apps that cannot keep a secret, must use PKCE. Record the app name, owner, redirect URIs, requested scopes and the business reason for access. Reject redirect URIs that are not exact matches. Done means each registration has a documented owner and an approval record, and a test authorization request from a public client fails without a valid code challenge.

  5. Define granular patient scopes

    Set the patient-facing scopes each app may request, using the granular scopes OpenEMR supports rather than broad access. Limit resource types to what the app needs for its stated function, and confirm which scopes a patient can grant during the consent step. Staff-level scopes should be separated from patient-level scopes in the registration. Done means a scope matrix lists each app against each resource type, and a test token issued for one patient cannot read another patient's records. Keep the matrix with the change record so later reviews can see why each scope was approved.

  6. Enable MFA and password policy for patient and staff accounts

    Turn on multi-factor authentication for staff accounts and patient portal accounts where the deployment supports it, and apply the strong password rule, length limits, reuse prevention and expiration settings in the global configuration. The Securing OpenEMR guide recommends MFA and strong password policies. Confirm the hashing option is set to a supported algorithm. Done means a test staff login and a test patient login both require the second factor, and a password that breaks the policy is rejected. Record the exact settings so the policy can be shown to an assessor.

  7. Test with a sandbox patient end to end

    Create a sandbox patient with clearly fictitious data in a non-production instance, then run the full path: patient consent, token issue, resource read, scope rejection and token revocation. Check that audit logging records the access. Repeat the test against the production configuration with a test account only if the practice's procedures allow it. Done means a signed test script with expected and actual results, and any failures logged as defects with owners. Retest after every change to scopes, redirect URIs or release version.

  8. Document the decision trail

    Assemble the configuration record: release and requirements, web tier controls, FHIR and SMART settings, app registrations, the scope matrix, authentication settings and test results. Note who approved each decision and the date. Link the record to the practice's HIPAA risk assessment and the certification upkeep plan so reviewers can trace each control. Done means the record is stored where the compliance lead can retrieve it, and an assessor could follow the path from a control to the test that proves it. Review the record when the release changes or an app's scopes change.

How a patient app reaches OpenEMR records through the FHIR API

The flow starts when a patient signs in to a third-party app and the app redirects them to the OpenEMR authorization server, which uses OAuth 2.0 and OpenID Connect with SMART scopes. Once the patient grants access, the app sends FHIR R4 requests to the OpenEMR FHIR API, which checks the granted scopes before returning data. Each request should leave an entry in the audit log on your hosted instance. Check where the trust boundary sits: data leaves your environment when the app receives it, and the app's own storage and terms are outside your control.

Patient app access to OpenEMR records through OAuth 2.0, SMART scopes and the FHIR API.

Choosing between Docker, package installs and hosted environments for the API

Docker packages OpenEMR and its runtime into images that you start on hosts or an orchestrator you control. For the patient access API, the main effect is that the container usually sits behind a reverse proxy or load balancer that you configure, so the place where TLS ends and the way forwarded headers reach OpenEMR become design decisions rather than defaults. Upgrades are usually handled by replacing images, which makes it easier to test a new release in a staging stack before production.

  • TLS termination: Decide whether TLS ends at a proxy outside the container or inside it, and confirm how the OpenEMR base URL and redirect settings are set for the public FHIR endpoint.
  • Network exposure: Only the proxy port should face the internet, and the database and internal services should stay on a private network.
  • Upgrade testing: Image tags let you pin and roll back versions, but confirm the current Docker instructions for schema migration and volume handling before each release.
  • Secrets and configuration: Keep database credentials and OAuth settings in your secrets store, not in image layers.
  • Operational skill: Your team needs container, volume and network administration skills to run this model safely.

Check the current Docker documentation in the OpenEMR repository for supported image tags and upgrade steps.

Questions buyers ask before engaging outside help on the patient access API

What does outside help on the OpenEMR patient access API cost?

Cost follows from the written scope, and DeployOpen does not publish a price list. The main cost components are the time for the FHIR endpoint setup, app registration and scope design, testing of patient access flows, identity integration, and handover documentation. Ask for a quote that lists each of these as a separate line, and mark which items are one-time and which recur, such as ongoing support or upgrades under a retainer. Cost rises with the number of third-party apps, the complexity of your identity setup and how many environments need to be built and tested. Ask whether the quote covers testing against your own data and your own identity provider.

How long does a patient access API project take?

The timeline depends on what is already in place: a current OpenEMR 8.x installation, a working HTTPS endpoint, an identity provider your patients and staff already use, and a named owner for each app you plan to approve. A project that starts from an existing, upgraded system generally moves faster than one that first needs a version upgrade, a new host or identity work. DeployOpen agrees the timeline in writing as part of the fixed scope, so ask for the schedule to show each dependency, especially decisions your own team must make before build work can start.

What must our team provide before the engagement starts?

Plan to provide four things. First, staff who can answer questions about your clinical workflows and data, including who owns the patient record and the release decision. Second, access to your identity system, such as the directory or single sign-on service that patients and staff will use, along with the rules for how patient identity is verified. Third, access to the hosting environment where OpenEMR runs, including test and production systems, so the endpoint can be configured and verified. Fourth, named decision owners for scopes, approved apps and the handling of information blocking exceptions.

Can a practice set up the patient access API in-house?

A practice with an experienced system administrator and a developer familiar with FHIR, OAuth 2.0 and OpenID Connect can do much of the work in-house. OpenEMR's FHIR API implements FHIR R4, US Core 8.0 and SMART on FHIR v2.2.0 with OAuth 2.0, OpenID Connect and PKCE for public apps, so the building blocks are documented. The harder parts are usually testing that patients see only their own records, reviewing each app's requested scopes and keeping a written record for your compliance team. Confirm that you have time to test and document these areas before deciding on a build-only approach.

Does DeployOpen certify our OpenEMR system for (g)(10)?

No. DeployOpen plans, implements, tests and documents the system and prepares evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Certification of the software and the testing it required is handled through the certification process of the OpenEMR project and its testing body, and your own compliance obligations are assessed by your chosen independent reviewer or certifying body. Ask any partner to state clearly which artifacts they will deliver, such as configuration records, test results and runbooks, and which decisions remain with your reviewer.

What happens when a new OpenEMR release changes the FHIR API?

Each release can change endpoints, scopes, dependencies or security behavior, so treat every upgrade as a change that needs testing. OpenEMR 8.4.0 and 8.3.0 both fixed security vulnerabilities in FHIR APIs, which is a reason to apply security releases promptly. Ask a partner how they will check the release notes, rerun your app registration and scope tests in a non-production environment, and record the results before production. Confirm whether upgrades and continuous testing are covered by a retainer or by a separate fixed-scope engagement.

What risks come with refusing or delaying patient access?

Refusing or delaying access to electronic health information can create information blocking exposure, so decisions about access should be documented with the reason and the rule that applies. Ask counsel to review each exception and to set who can approve it. On the technical side, weak identity checks or broad app scopes create a different risk: patients or apps may see records they should not. The CNIL fined Hopital Prive de la Loire EUR 500,000 under GDPR Articles 32 and 34 on 3 September 2026 for external access without VPN or multi-factor authentication and for access control that ignored the care team's need to know, which shows why access design needs the same care as the endpoint itself.

How DeployOpen works on this

DeployOpen plans, implements, hardens, documents and supports self-hosted OpenEMR inside your own infrastructure, including the FHIR API, app registration and patient-facing access settings. We agree the scope in writing before work starts, so you know what is configured, tested and handed over before any third-party app connects to patient data.

How we scope

  • Written scope lists the OpenEMR version, hosting model, FHIR endpoint exposure and identity provider involved.
  • Scope names which third-party apps, patient scopes and SMART launch flows are in and out of the engagement.
  • Scope records who approves app registrations, who owns patient-facing access decisions and who runs ongoing support.

How we build

  • We configure the FHIR API, OAuth 2.0 and OpenID Connect settings in your environment and document each value.
  • We register and test client applications, including PKCE for public apps, against granular scopes you approve.
  • We confirm TLS, network exposure and the authorization server are hardened before any external app receives a token.

How we hand over

  • You receive configuration records, the registered app inventory, scope mappings and a test log for each connected app.
  • We document the procedure for revoking an app, rotating client credentials and handling a patient access request.
  • Handover covers an operator walkthrough so your staff can review access logs and explain the setup to auditors.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
  • We retest the FHIR endpoint and app registrations after each OpenEMR upgrade or security release.
  • Ask any partner, including DeployOpen, to confirm which steps they will perform and which remain with your team.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.