170.315(g)(10) Standardized API for patient and population services

The 170.315(g)(10) criterion requires a FHIR-based API for patient and population data, with app registration, authorization, token handling and revocation. This page covers what assessors test and what evidence passes.

On this page

What the 170.315(g)(10) standardized API requires and why it is hard

Criterion 170.315(g)(10) requires a certified API that answers single-patient and multiple-patient data requests using FHIR and the US Core standards, and that lets patient-authorized apps connect securely, obtain authorization and have that access revoked. For a developer or health IT team, the risk is plain: an app that keeps working after a patient has withdrawn consent, or a token that a server cannot validate, means unauthorized access to patient data. The work is hard because three things must succeed together. The identity layer must handle app registration and sign-in, the token lifecycle must issue, refresh, introspect and revoke credentials on the required timelines, and the FHIR resources must return data in the US Core profiles that the certified data set in 170.213 expects. A failure in any one of them breaks the others, and assessors test them together.

The token requirements carry the most operational weight. The authorization server must issue a refresh token valid for no less than three months to confidential apps and to native apps able to secure one, and it must revoke an app's access at a patient's direction within 1 hour of the request. It must also support token introspection so it can receive and validate the tokens it issued. Teams should confirm, before build starts, which identity product will act as the authorization server, how its revocation propagates to every resource server and cache, and how it logs each grant and revocation. Retrofitting these after the FHIR endpoints are live is one of the more expensive ways to find a gap.

The 2026 deregulatory final rule kept (g)(10) and removed the other API criteria, so (g)(10) is now the only API reference left in the certified API technology definition. That makes it the single point where an API certification must hold. Under the Conditions and Maintenance of Certification framework, (g)(10) is certified alongside other criteria, so the API cannot be scoped in isolation. Confirm the current pairings in the ASTP/ONC privacy and security certification companion guide v4.0 and in the eCFR text of 45 CFR 170.315 before scoping work, because the outcome depends on which criteria the product is certified against.

Which systems, data and teams fall under the (g)(10) API scope

The (g)(10) API touches more than the certified module itself. Scope is set by which Health IT Module carries the certification, which data and resources it exposes, and which identity, app and hosting components sit in the request path. Each card below is a decision that changes the evidence and effort, and each should be settled in writing before build work starts.

The Health IT Module carrying the certification

The certification attaches to a specific Health IT Module, not to a hospital's whole stack or to a hosting platform. Start by naming the module, its version and the customers who will run it. A self-hosted deployment inside a client's network may still be a deployment of a certified module, so confirm with the developer whether the module, the version and the configuration you run are the ones covered by the certificate. Any change to the module's API code or configuration can change what the certification covers.

170.315 text

FHIR resources and US Core data in 170.213

(g)(10) requires responses to single-patient and multiple-patient requests using FHIR and US Core standards for the data classes in 170.213. Map each data class to the resources your module serves, then check which ones your data model stores in a different shape. Gaps in coded data, such as problems, medications or allergies, often appear here first and can require mapping work or data quality remediation before testing begins.

Authorization server and identity provider

The authorization server issues tokens, handles refresh, revokes app access and supports token introspection under (g)(10)(v) through (vii). Decide whether it is a module component or an external identity provider. Open-source options such as authentik can supply OAuth2 and OpenID Connect, but the certified module must still support the required token behaviors. Confirm which system holds signing keys, where session and token state lives and who can change client registrations.

authentik providers docs

Third-party app developers and registration

Third-party apps are outside your control but inside the API's data flow. Decide who may register apps, what review happens before a client ID is issued, and how confidential and public apps are told apart. Native apps must be able to secure a refresh token before they receive one. Document the registration workflow, the patient consent screens and the process for disabling an app, since the revocation requirement depends on it.

Hosting environments and certificate handling

Each environment that terminates TLS, runs the API or stores tokens is in scope for secure connection and key management checks. Inventory the clusters, load balancers, identity services and secret stores in dev, test and production. Automated certificate tooling such as cert-manager on Kubernetes or OpenShift, or a PKI secrets engine such as OpenBao, can reduce manual steps, but the team still needs to show which issuer signs each certificate and how renewals are logged.

Paired certification criteria and their owners

Under 170.550(h)(3)(vii) in the CCG v4.0, (g)(10) is certified with (d)(1), (d)(9), (d)(12), (d)(13) and either the (d)(2) parts or (d)(10). Those privacy and security criteria bring their own evidence, so the API team and the security team must share one scope document. Confirm this pairing with your ONC-ACB before planning, since the required combination depends on how the module is presented for certification.

CCG v4.0 PDF

How an app reaches patient data through the (g)(10) API

The flow starts when a third-party app registers with the authorization server and asks a patient to grant access. The authorization server then issues an access token and, for confidential apps and native apps able to secure one, a refresh token. The app presents its token to the FHIR API, which returns single-patient or multiple-patient data, and the API validates tokens through introspection. The trust boundaries sit between the app, the authorization server and the FHIR data store, and each one is where a reader should check who holds credentials and who can revoke access at the patient's direction.

Flow from app registration through token issuance, API access, introspection and patient-directed revocation.

How an assessor tests each part of the API criterion

An assessor starts by confirming that the API answers single-patient and multiple-patient requests using FHIR and the US Core standards adopted in 170.215, for the data classes named in 170.213. The test is scripted. The assessor sends defined requests for known test patients and a test population, then checks the resource types, search parameters and response structure against the criterion. Returned values are compared with the source record, so a correct format carrying wrong data still fails.

  • Scripted patient requests: Single-patient reads and searches run against seeded test records whose contents are known in advance.
  • Population queries: Multiple-patient requests run against a test population, and the assessor compares returned results with the expected records.
  • Search parameters: Each parameter listed in the server's capability statement is tested, and unsupported parameters are checked for a clear error.
  • Capability statement accuracy: The published capability statement must match actual behavior, since assessors test what the server claims to support.
  • Evidence requested: Test scripts, raw request and response logs with credentials redacted, a capability statement export and a field-level mapping from source systems to FHIR resources.

Before the assessment, run the same scripts yourself and confirm that every documented search parameter returns what the documentation promises, and that no supported resource type comes back empty for a test patient who has that data.

Implementing the (g)(10) API in sequence

This sequence takes an organization from confirmed data scope to a tested FHIR API with app registration, token handling, revocation and introspection, and ends with evidence ready for an ONC-ACB review. Each step names the output that closes it, so the team knows when to move on.

  1. Confirm data scope and US Core profiles

    Start by mapping the data classes in 170.213 and the US Core profiles adopted in 170.215 against the EHR data the API must return. The organization's health IT lead and a clinical informatics owner should agree which resources are in scope and which source fields populate each one. The step closes with a signed data scope matrix that lists each resource, its US Core profile and the system of record behind it. Confirm the exact versions of the standards with the ONC Health IT Certification Program and the eCFR text before you lock the matrix.

  2. Build single and multiple patient endpoints

    Build or configure the FHIR endpoints that answer single-patient requests and multiple-patient requests for the in-scope resources. The development team should test that responses conform to the adopted FHIR and US Core specifications and that search parameters return the expected results for both request types. The step closes with a conformance test report per resource and a list of any gaps that the team has documented and scheduled for correction. Engineers should keep the test inputs and outputs, since assessors ask to see them.

  3. Set up the authorization server and identity provider

    Deploy the authorization server and connect it to the identity provider that will authenticate patients, clinicians and app users. Open-source options such as authentik can act as the identity provider through OAuth2 and OpenID Connect, so applications delegate sign-in rather than storing credentials. The security team should record the signing keys, token lifetimes and certificate sources, and use an automated certificate tool where the platform supports it. The step closes with a configuration baseline that shows the authorization flows enabled and the key management approach documented.

  4. Register apps and configure secure connections

    Create the app registration process so each third-party application is registered with its client type, redirect URIs and requested scopes before it can connect. Confirm that the connection between apps and the API uses TLS with certificates that renew automatically, and that confidential and native app types are handled distinctly. The step closes with a registry export showing every registered app, its client type and its approval record, plus a test log showing that an unregistered app is refused.

  5. Issue refresh tokens for qualifying apps

    Configure the authorization server to issue refresh tokens to confidential apps and to native apps able to secure one, with a validity period of no less than three months as set in 170.315(g)(10)(v). The team should confirm the token lifetime in configuration, test that a refresh token is issued and accepted after the access token expires, and document how native apps are judged able to secure a token. The step closes with a configuration record showing the refresh token lifetime and a test run that proves the behavior. Ask the ONC-ACB which evidence format it wants for this check.

  6. Implement revocation and token introspection

    Implement revocation so that the authorization server removes an app's access within 1 hour of a patient's direction, as set in 170.315(g)(10)(vi). Add token introspection so the server can receive and validate the tokens it issued, as set in 170.315(g)(10)(vii). Test both with timed revocation requests and introspection calls, and record the times from request to effective block. The step closes with a revocation test log showing results against the 1-hour requirement and an introspection test log showing valid and invalid tokens were handled correctly.

  7. Test end to end and assemble ONC-ACB evidence

    Run end-to-end tests that cover the full path from app registration through authorization, data request, token refresh, revocation and introspection. Compare the results against the relevant certification criteria and the (g)(10) conditions in the CCG v4.0 testing framework, including the pairing with the other criteria listed in 170.550(h)(3)(vii). The team should then assemble the evidence package: configuration records, test logs, data scope matrix and a gap register with dates for each correction. The step closes when the package is complete and reviewed by someone outside the build team. Final certification decisions rest with the ONC-ACB, not with the implementation partner or the developer.

Where self-hosted identity components fit the API

Self-hosted identity components can support the evidence behind (g)(10), but none of them satisfies the criterion on its own. The certified API is the developer's product, and the authorization server, token handling, revocation path and endpoint certificates must be tested together in the configuration the ONC-ACB reviews. Start by mapping each component to the (g)(10) subparagraph it touches, then ask the ONC-ACB and the team's own architecture owners to confirm that mapping before anyone builds on it.

authentik can act as the identity provider for the API's applications. Its documentation describes OAuth2 and OpenID Connect providers, so client applications delegate sign-in to authentik rather than handling credentials themselves. The decisions that matter for (g)(10) are which provider type issues the refresh tokens described in (g)(10)(v), how token introspection under (g)(10)(vii) is exposed to the resource server, and how a patient-directed revocation under (g)(10)(vi) propagates to active sessions within the one-hour window. Confirm each of these against the running version and keep the configuration exports as evidence.

FreeIPA provides single sign-on for Linux and UNIX environments through an MIT Kerberos KDC. It is a fit for administrator and service-account access to the hosts that run the API, not for patient-facing app authorization, so it should not be presented as the OAuth2 layer. OpenBao PKI issues dynamic X.509 certificates, and cert-manager requests, stores and renews TLS certificates for workloads in Kubernetes or OpenShift from configured issuers. Together they support the secure connection expected of the API endpoints. Confirm the issuer chain, renewal behavior and key storage with the ONC-ACB, and record renewal events so an assessor can see certificates were not allowed to lapse.

Evidence that passes a (g)(10) review and how to keep it current

A (g)(10) review looks for proof that the API behaves as the criterion describes, not just that it was configured once. The six artifacts below map to the criterion's data response, token, revocation and introspection requirements, and each needs a refresh plan tied to software changes.

FHIR conformance test results

Test output showing that single-patient and multiple-patient requests return FHIR resources using US Core profiles for the data classes in 170.213. Keep the exact test suite version, the US Core version it targets, and the raw pass or fail output for each resource. Re-run the suite after any change to the FHIR server, mapping layer or terminology content, because a resource that passed last quarter can fail after a schema or profile update.

Criterion text

Authorization and token issuance logs

Logs from the authorization server recording authorization grants, token issuance and denials for registered apps, with timestamps and client identifiers. Reviewers use them to confirm that tokens are issued only to registered apps and that patient authorization is recorded. Confirm log retention with your compliance team, set alerts for unusual issuance patterns, and check that logs can be exported for an assessor without exposing other patients' data.

Refresh token configuration records

Configuration exports showing the refresh token lifetime set on the authorization server for confidential apps and for native apps able to secure one. The criterion sets a minimum validity period of three months, so the record should show the configured value, the change history and the approver for each change. Export the configuration after every upgrade, since defaults can change between releases.

Minimum refresh token validity
3 months

Timed revocation test records

Recorded tests showing that revoking an app's access at a patient's direction takes effect within the one-hour limit in 170.315(g)(10)(vi). Each record should capture the request time, the moment the revoked token is rejected, and the test environment version. Repeat the test after changes to caching, session stores or load balancers, since cached tokens are the most common reason revocation runs past the limit.

Revocation time limit
1 hour

Token introspection test output

Output from tests showing that the authorization server receives and validates the tokens it issued, as required by 170.315(g)(10)(vii). Keep requests and responses for valid, expired, revoked and tampered tokens, so an assessor can see each outcome. Run these tests against every deployed authorization server version, including any identity provider used for the API.

ONC-ACB test report

The test results and certification documentation produced by the ONC-Authorized Certification Body (ONC-ACB) for the certified Health IT Module. This is the artifact that establishes certification, so it is only current for the module version and configuration tested. Any change that falls outside the certified scope needs a review with your ACB to decide whether re-testing is required before the update reaches customers.

What meeting the (g)(10) API criterion costs

This table compares each cost component of meeting the (g)(10) API criterion, who is paid for it, whether it is one-time or recurring, and what drives it up or down. Use it to build a request for quote and to separate license spend from engineering effort. The main takeaway is that open-source components can remove license spend, but the FHIR, US Core and authorization engineering work, along with testing and evidence upkeep, remains.

Cost componentWho is paidOne-time or recurring, and main drivers
FHIR and US Core engineeringInternal engineers or implementation partnerOne-time build, then recurring upkeep. Drivers: number of data resources in scope, search parameters and US Core profile versions
Identity and authorization setupInternal identity team or implementation partnerOne-time configuration of OAuth2 and OpenID Connect, plus recurring changes. Drivers: existing identity stack, number of registered apps, consent and revocation flows
Open-source licensesUsually no license fee for the open-source componentsComponents such as authentik, FreeIPA, OpenBao and cert-manager carry their own licenses. Confirm terms with each project. Removing license spend does not remove engineering effort
ONC-ACB testing feesAuthorized certification body (ACB) and testing laboratoryConfirm current fee structure with the ACB. Drivers: number of criteria certified alongside (g)(10), developer-prepared test data and retesting after failures
Evidence upkeepInternal compliance team or partnerRecurring. Drivers: release frequency, updates to the certified version and the need to keep test results and change records current
External security reviewIndependent security firm or assessorPeriodic or pre-release. Drivers: API surface, number of third-party apps, and whether testing covers token introspection and revocation paths
Revocation and token lifecycle operationsInternal operations teamRecurring. Drivers: patient revocation volume, refresh token management and monitoring of the one-hour revocation requirement

Who owns the (g)(10) work and what to outsource

The health IT developer owns the certification itself. It decides which Health IT Module is submitted, which version of the FHIR and US Core standards the API supports, and how patient data access, app registration and revocation policies are set for its customers. The organization also signs off on the data scope and the app policy that governs which third-party applications may connect.

  • Certification decision: choosing the Health IT Module, the (g)(10) criteria it is certified to, and the related privacy and security criteria that the Certification Companion Guide pairs with it.
  • Data and app policy: defining which data classes are exposed, how patients are told about third-party apps, and who approves app registrations.
  • Revocation process: owning the operational procedure that revokes an app's access at a patient's direction within the 1 hour required by (g)(10)(vi).
  • Customer updates: delivering the updated module to customers by the dates the regulation sets for revised criteria.
  • Evidence ownership: keeping the records that the developer must produce during testing and surveillance.

Before any outside work starts, confirm that a named executive owns the certification decision and the app policy in writing.

Gaps that stall (g)(10) certification and how to close them

Most delays in 170.315(g)(10) testing come from a small set of gaps in the authorization server, the FHIR resource layer and the documentation a developer hands to its customers. Each gap below is concrete enough to check before a test event, and each has a fix that the developer can verify in its own environment.

US Core profile mismatches

The (g)(10) API must return single-patient and multiple-patient data using FHIR and the US Core standards adopted in 170.215, for the data classes in 170.213. A mismatch usually appears as a resource that carries a required element under a different code system, a missing must-support element, or a profile version the test tool does not expect. Validate every response against the US Core profile version named in the criterion, and keep a record of the validator version used. Confirm the exact profile versions with the test body before building.

170.315 text

Refresh tokens below the three-month minimum

Under 170.315(g)(10)(v), the authorization server must issue a refresh token valid for no less than three months to confidential apps and to native apps able to secure one. Teams often inherit a default lifetime of a few days or a single session value from their identity provider. Set the refresh token lifetime explicitly in the provider configuration, then test a token issued today to confirm its expiry timestamp. Document which app types receive the long-lived token and how the developer decides whether a native app can secure one.

Minimum refresh token validity
3 months
authentik providers docs

Revocation that misses the one-hour window

Under 170.315(g)(10)(vi), the authorization server must revoke an app's access at a patient's direction within 1 hour of the request. Gaps appear when revocation only marks a grant as inactive while cached access tokens, downstream sessions or resource server caches keep working. Trace the path from the patient's revocation request to the first rejected API call, and time it in a test environment that mirrors production caching. Keep the timed results as evidence, since the test body will ask how the 1-hour limit is met.

Token introspection not wired to resource servers

Under 170.315(g)(10)(vii), the authorization server must support token introspection so it can receive and validate the tokens it issued. A common gap is an identity provider that issues tokens correctly but exposes no introspection endpoint, or a resource server that validates tokens locally and never calls the endpoint under test. Enable the introspection endpoint, register the resource server as a client that may call it, and run a request with a valid token, an expired token and a revoked token. Keep the three responses as evidence.

Undocumented app registration policy

The (g)(10) API depends on how third-party apps register with the authorization server, including who may register, what client types are allowed and how the developer confirms an app's identity. When that policy lives only in the team's memory, assessors cannot test it and customers cannot plan integrations. Write the registration policy as a controlled document, configure the provider to enforce it (for example, restricting client types and requiring approval), and publish the steps that a developer must follow to register an app. Confirm the required content with the test body and the ASTP/ONC companion guide.

Companion guide v4.0

Test evidence that predates software changes

Test results describe the software as it was on the test date, so any change to the FHIR server, the identity provider, the mapping layer or the container images can invalidate them. Teams often run a clean test, then upgrade a library or change a token setting before the final submission. Tie each test report to a specific build, configuration export and image digest, and rerun the affected criteria after every change to those components. Ask the test body how it treats changes made between testing and certification.

Questions buyers ask about the (g)(10) API

What does it cost to get a (g)(10) API certified?

No price for this work is published in the sources we rely on, so treat any figure you see as a quote to verify. Costs fall into three groups: the developer's internal engineering time, the independent testing body's certification fees, and the implementation partner's fixed-scope work on identity, token handling, revocation and logging. Most of the one-time cost sits in building the FHIR and US Core data responses and the authorization flow, while recurring cost comes from keeping the module updated as criteria and standards change. Ask any partner for a written scope listing the (g)(10) elements covered, the environments included and the retest terms, then compare that against your internal estimate for each element.

How long does the (g)(10) API work take?

No duration is supplied for this work, so plan around the variables rather than a number. The main drivers are how many data classes your module already serves through FHIR, whether your authorization server and app registration flow exist yet, how mature your identity and secrets tooling is, and how many certified modules must be updated together. Certification testing and the independent body's scheduling add time you do not control. Ask a partner for milestones tied to specific (g)(10) subsections and for a list of dependencies you must provide, such as test accounts and environment access.

Can our in-house team implement the (g)(10) API without an outside partner?

Yes, if your team already has FHIR server experience, OAuth2 and OpenID Connect knowledge, and the operational capacity to test revocation and token behavior. The (g)(10) requirements are technical, and an experienced internal team can build them. The questions to answer honestly are whether your team has done this before, whether it can cover the (g)(10) dependencies (the paired (d) criteria and their conditions) at the same time, and who will maintain the work after release. An outside partner is useful when internal capacity or experience is the constraint, not as a substitute for ownership.

What must our team supply for a (g)(10) implementation?

Your organization must own the product, the certification relationship and the evidence. Specifically, supply the FHIR data sources and the mapping to the required data classes, a working identity provider and authorization server, a process for patient-directed revocation, test patients and test apps, access to build and staging systems, and named owners for the criteria that pair with (g)(10). An implementation partner can prepare configuration, code changes, documentation and test records, but the developer decides what is certified and submits it. Ask a partner to list each input they need in writing before work starts.

Does the (g)(10) requirement still apply after the 2026 deregulatory rule?

Yes. The 2026 deregulatory final rule removes (g)(7) through (g)(9), which leaves (g)(10) as the only reference in the certified API technology definition. Developers that certify to the API must still meet (g)(10), including its data response, search, refresh token, revocation and token introspection requirements. Confirm the current text in the eCFR and the final rule before you finalize scope, because the rule changes the surrounding criteria and some certification bundles. Your certification body or ONC-authorized testing body can confirm how the rule applies to your product version.

What can an implementation partner not do for the (g)(10) certification?

An implementation partner cannot issue the certification, attest to conformance or act as the testing body. Only the ONC-authorized certification body and testing bodies can certify a Health IT Module, and the developer remains responsible for its certified product, its descriptions and its customers' update obligations. A partner also cannot decide your product scope, sign your declarations or guarantee a test result. What a partner can do is build and harden the authorization server, configure identity and secrets, prepare test data and evidence, document the implementation and retest after fixes, so the certification body has a clear record to review.

Which parts of the (g)(10) work are usually outsourced?

Teams usually outsource the parts that need specialist depth or a fixed deliverable: identity and authorization configuration, certificate and secrets management, security testing of the API and token flows, and evidence preparation. The product logic for FHIR data responses and the decisions about product scope usually stay in-house because they depend on your data model and roadmap. A practical split is to keep ownership of data mapping, release decisions and customer communication internally, and to contract out fixed-scope implementation, hardening and retesting. Get the boundary written into the scope document.

Which open-source tools can support the (g)(10) authorization and certificate work?

Open-source tools can cover parts of the surrounding infrastructure, though they do not replace the certified module. authentik, which is MIT licensed, can act as an identity provider through OAuth2 and OpenID Connect, so applications delegate sign-in to it. FreeIPA, under GPL-3.0-or-later, provides single sign-on for Linux and UNIX environments through an MIT Kerberos KDC. For certificates, cert-manager (Apache-2.0) issues and renews TLS certificates for Kubernetes or OpenShift workloads, and OpenBao (MPL-2.0) has a PKI secrets engine that issues dynamic X.509 certificates. Confirm that each tool meets your token, revocation and introspection requirements in your own environment before relying on it for evidence.

How DeployOpen prepares (g)(10) systems and evidence

DeployOpen's part in a (g)(10) project is to prepare the systems and evidence that an independent assessor will examine. The health IT developer owns its certification and its Health IT Module. DeployOpen plans, implements, hardens and documents the self-hosted platforms behind the API inside the client's own cloud accounts, data centers or air-gapped networks, including the identity provider, the authorization server, the FHIR resource layer and the certificate lifecycle. DeployOpen also runs security testing of the API and its authorization flows, covering app registration, token issuance, refresh tokens, revocation and introspection. DeployOpen does not issue certifications, attestations or reports. Only the ONC-Authorized Certification Body and the assessors it works with decide whether a module meets the criterion, so the client should confirm the certification path with its certification body before scoping work.

Most of the (g)(10) evidence comes from the authorization layer. For example, authentik can act as the identity provider and authorization server through its OAuth2 and OpenID Connect provider, so the client should document which provider settings issue refresh tokens to confidential apps and to native apps that can secure one, how long those tokens are valid, and how an app's access is revoked within the one-hour window in (g)(10)(vi). Certificates for the TLS endpoints can be issued and renewed by OpenBao's PKI secrets engine or, in Kubernetes or OpenShift, by cert-manager, and the configuration files and logs from those tools become test evidence. Where identity sits in a Linux estate, FreeIPA can provide the single sign-on layer, which the client should confirm against its own directory design.

Before work starts, the scope, deliverables and timelines are agreed in writing, and the quote follows from that written scope. Ask for the list of (g)(10) components in scope, the test cases covering revocation timing and token introspection, the evidence index mapped to each sub-criterion, and whether a retest is included. Ongoing upgrades, continuous testing and certificate or token maintenance are typically priced as a separate retainer, so ask whether those costs are recurring. The client keeps decisions about its certification, its vendors and its product claims, and DeployOpen's work supports those decisions without replacing them.

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.