Skip to content
HIPAA Compliant AppSecure healthcare engineering

Healthcare Integration

SMART on FHIR App Development

We provide SMART on FHIR app development for clinician tools that open inside the EHR and patient apps that connect to a health system's records. The SMART App Launch framework gives your app a standard way to authenticate users, receive patient context and call FHIR APIs with scoped permissions.

Because SMART is a standard, one well-built app can run against multiple EHRs, though each vendor and each customer still decides which scopes, resources and launch modes are enabled.

Key takeaway

SMART on FHIR is an HL7 specification that layers OAuth 2.0 and OpenID Connect on top of FHIR so third-party apps can launch from an EHR or stand alone, obtain user or patient authorization, and access FHIR data with defined scopes. SMART App Launch v2 adds granular scopes and requires PKCE.

Last reviewed November 17, 2026

What a SMART on FHIR app is

A SMART app is an OAuth 2.0 client that talks to a FHIR server. It discovers the server's authorization endpoints from the .well-known/smart-configuration document, sends the user through an authorization flow, and receives an access token plus launch context such as the current patient or encounter.

SMART App Launch v2 (the 2.x releases of the HL7 specification) introduced finer-grained scopes, made PKCE mandatory for authorization code flows, and clarified token introspection. Many servers support both v1 and v2 scope syntax during the transition, so we check what each target advertises.

Use cases for SMART apps

Embedded clinician tools

Risk calculators, care-gap views, specialty documentation aids and imaging viewers launched from the patient chart with context already set.

Patient access apps

Consumer apps where a patient signs in to their provider's portal and authorizes the app to read their records.

Care coordination dashboards

Team-facing apps that combine EHR data with your own program data, such as remote monitoring readings.

Research and registry enrollment

Apps that pre-fill eligibility checks or registry forms from chart data, with clinician review before submission.

Backend data services

Server-side processes that use SMART Backend Services for system-level access, such as nightly Bulk Data exports.

Technical approach to SMART on FHIR

Standards and launch modes

In an EHR launch, the EHR opens your app with an iss parameter and a launch token, and your app exchanges that token for patient and encounter context during authorization. In a standalone launch, the user starts in your app, chooses their provider, and authorizes access, optionally requesting a patient picker through launch/patient.

We support both where the product needs them, and we design the UI for the embedded frame sizes and browser engines that EHR clients actually use.

Authentication, PKCE and scopes

Every authorization code flow uses PKCE with S256. Public clients such as single-page or native apps never hold a client secret; confidential clients authenticate with a secret or, preferably, an asymmetric JWT client assertion.

With v2 scope syntax we request only the interactions needed. For example, patient/Observation.rs permits reading and searching a patient's observations, while user/Appointment.cu would permit creating and updating appointments the user can access. Granular scopes can also narrow by category, such as patient/Observation.rs?category=laboratory, where the server supports it.

  • openid and fhirUser to identify the signed-in user
  • launch or launch/patient to receive context
  • offline_access only when long-lived background access is justified

Backend services for system access

For server-to-server work without a user, SMART Backend Services uses the OAuth client credentials grant. Your service signs a short-lived JWT with its private key, the server validates it against your registered JWKS, and returns a token with system scopes such as system/Patient.rs. Keys live in a managed key store and are rotated on a schedule.

Data mapping and error handling

We map US Core profiles to view models, tolerate missing optional elements, and show users when data is unavailable rather than implying it does not exist. We handle expired tokens, revoked consent, scope downgrades (servers may grant fewer scopes than requested) and FHIR OperationOutcome errors explicitly.

Testing with sandboxes

We use the public SMART launcher and vendor sandboxes to test both launch modes with synthetic patients, then test in the customer's non-production EHR, where embedded browser behavior, single sign-on and scope approvals often differ.

Scopes and FHIR resources commonly requested

Scope example (v2 syntax)What it allows
patient/Patient.rRead the in-context patient's demographics
patient/Observation.rsRead and search the patient's observations such as labs and vitals
patient/Condition.rsRead and search problems and diagnoses
patient/MedicationRequest.rsRead and search medication orders
patient/AllergyIntolerance.rsRead and search allergies
patient/DocumentReference.rsRead and search clinical documents
user/Encounter.rsRead encounters the signed-in user is permitted to see
system/Patient.rsBackend services access to patients, for system-level jobs

Security considerations for SMART apps

SMART handles authorization to the EHR, but your app is still responsible for what happens to ePHI after the token is used. A common gap is a well-scoped token feeding an app that then caches everything in the browser's local storage.

HIPAA requirement

What the rules themselves require

  • Person or entity authentication before ePHI is accessed (45 CFR 164.312(d)), typically delegated to the EHR's identity provider
  • Audit controls for access within your app (164.312(b))
  • Access control including automatic logoff, an addressable specification to assess (164.312(a)(2)(iii))
  • Transmission security for API calls (164.312(e))

Recommended practice

Widely accepted security practice

  • PKCE on every flow and no client secrets in public clients
  • Tokens held in a backend-for-frontend rather than browser storage
  • Strict Content Security Policy and frame-ancestors for embedded apps
  • Private keys for backend services in a managed key store with rotation

Architecture decision

Depends on your product and risk analysis

  • Requesting offline_access for background refresh
  • Persisting EHR data in your own store versus session-only display
  • Supporting both v1 and v2 scope syntax for older servers

Your organization's responsibility

Policies and operations software cannot do

  • The health system's approval of the app and its scopes
  • BAAs where your organization receives ePHI on the provider's behalf
  • Patient-facing privacy notices for consumer apps outside HIPAA, which may fall under the FTC Health Breach Notification Rule
  • User provisioning and access review inside the EHR

Access and onboarding process

  1. 1

    Choose launch modes and scopes

    Decide EHR launch, standalone launch, backend services or a mix, and list the minimum scopes for each feature.

  2. 2

    Register in vendor developer programs

    Create sandbox registrations with each EHR vendor's developer program. Some patient-access registrations are self-service; provider-facing apps usually need more review.

  3. 3

    Build and test against sandboxes

    Test discovery, authorization, context handling and token refresh against reference and vendor sandboxes.

  4. 4

    Customer activation

    Each health system decides whether to enable the app, which scopes to approve and where it appears in clinician workflows, under its own EHR agreement.

  5. 5

    Production monitoring

    Track authorization failures, token errors and per-site configuration differences, and re-test after EHR upgrades.

Which launch modes, scope syntaxes and resources are available depends on the EHR vendor and each customer's configuration, and changes over time. Verify against current vendor documentation before committing to a design.

Integration architecture options

OptionWhen it fitsTrade-offs
Point-to-point SMART clientApp connects directly to each EHR's FHIR endpointStandards-based and portable; per-site config and testing still needed
Interface engine (Mirth Connect, Rhapsody, Iguana) alongside SMARTApp also needs real-time HL7 v2 eventsFills gaps FHIR lacks; two integration styles to operate
Integration platformRapid multi-EHR reach for a startupShorter path to coverage; vendor dependency and another BAA
FHIR facade in your backendNormalize several sources before the app UI sees themSimpler frontend; you maintain mapping and security of the facade

Timeline and cost factors

As a rough, scope-dependent planning range, a read-only SMART app with one EHR launch mode can reach sandbox completion in 6 to 10 weeks. Multi-vendor support, write-back and customer activation commonly extend the path to production by several months. These are not quotes.

  • Number of EHR vendors and launch modes
  • UI complexity inside embedded EHR frames
  • Write scopes and the approvals they require
  • Backend services and key management
  • Customer security reviews and activation timing

How we work on SMART apps

We prototype the launch and authorization path in week one, because it surfaces vendor and scope constraints early. Feature work follows on top of a tested auth core.

We document per-vendor configuration, required scopes and known differences so your team can onboard new health systems without re-engineering.

This page is general information about software engineering for healthcare, not legal advice. HIPAA compliance depends on your organization's risk analysis, policies, workforce practices, vendor agreements and how PHI is actually handled. No software, hosting provider or development partner can make an organization compliant on its own, and there is no official HIPAA certification for applications.

Frequently Asked Questions

What is the difference between EHR launch and standalone launch?

EHR launch starts inside the EHR, which passes context such as the current patient to your app. Standalone launch starts in your app, and the user selects their provider and signs in there. Clinician tools usually use EHR launch; patient apps usually use standalone launch.

What changed in SMART App Launch v2?

Version 2 introduced granular scopes using letters c, r, u, d and s for create, read, update, delete and search, made PKCE required, and added features such as token introspection guidance. Servers may still accept v1 scopes like patient/Observation.read.

When should we use SMART Backend Services?

Use backend services for system-to-system jobs with no user present, such as scheduled Bulk Data exports. The client authenticates with a signed JWT under the client credentials grant, and the organization must approve the system-level access.

Does a SMART app need a BAA?

It depends on who you are and whose behalf you act on. If your organization handles ePHI for a covered entity, such as a clinician tool sold to a hospital, a BAA is normally required. A consumer app that a patient connects on their own behalf may not be a business associate, but other laws can apply.

Can one SMART app work with every EHR?

The standard makes portability realistic, but not automatic. Supported scopes, resources, launch behavior and app approval processes differ by vendor and by customer, so each target still needs testing.

Where should tokens be stored?

Ideally on your server, in a backend-for-frontend pattern, with the browser holding only a session cookie. Storing access or refresh tokens in local storage exposes them to cross-site scripting.

Plan your HIPAA-compliant app with engineers who start from the data flow.

Tell us what you are building. We will respond with questions about scope, integrations and PHI handling, then a structured estimate. Please do not include patient information.