01
Challenges for SMART on FHIR apps
The spec is clear, but every EHR and every customer adds constraints. Apps run in an embedded browser, sometimes with strict content security rules and limited screen space. Time in the clinical workflow is measured in seconds.
Approval is the bigger hurdle. Health systems control which apps may be launched and which scopes they may request, and registration with the vendor is separate from the customer's approval.
- Launch context varies: patient, encounter, user, and sometimes location are not always present.
- Scopes granted may be narrower than requested; the app must degrade gracefully.
- Embedded browsers and iframes limit pop-ups, third-party cookies and storage.
- Clinicians will abandon an app that adds clicks. Workflow fit decides adoption.
02
What we build in SMART on FHIR projects
EHR-launched provider apps
Clinician apps that open from the chart, read the active patient and encounter, display focused information or capture structured data, and write back where the platform allows. We design for glanceable, keyboard-friendly screens.
Standalone patient apps
Patient-facing apps that authorize with the user's portal credentials, retrieve records from one or more providers, and explain in plain language what data is being shared and why.
Backend services and system access
Server-to-server integrations using SMART Backend Services: a registered client, a signed JWT assertion, and system-level scopes for background jobs and Bulk FHIR. See FHIR integration services.
CDS Hooks services
Decision-support services that the EHR calls at workflow points such as patient-view or order-select, returning cards with suggestions or links. Latency budgets and card clarity matter more than feature count.
Launch testing and certification-style checks
Automated tests against SMART reference launchers and conformance test suites, plus manual runs in each vendor sandbox.
03
SMART on FHIR app architecture
The EHR launch flow works like this. The EHR opens your launch URL with iss and launch parameters. Your app fetches the server's .well-known/smart-configuration, redirects to the authorization endpoint with the launch value, requested scopes, state and a PKCE code challenge, then exchanges the returned code for tokens. The token response carries context such as the patient ID.
A single-page app can run the flow in the browser as a public client with PKCE. A confidential client with a backend is the better choice when refresh tokens, long-lived sessions or sensitive logic are involved, since secrets and tokens stay off the device.
- Scopes: launch, launch/patient, openid fhirUser, patient/Observation.read, user/Observation.read, offline_access for refresh tokens; request the least that works.
- Token storage: keep tokens in memory or in a server-side session, never in localStorage for PHI-bearing apps without a clear justification.
- Context handling: treat patient context as authoritative from the token response, and handle context change when the clinician switches charts.
- Multi-tenant: a configuration registry mapping each customer to its issuer, client ID and endpoints.
- Fallbacks: if a scope is denied, hide the feature rather than error out.
04
Security and compliance for SMART apps
Authorization correctness is a security issue here: a bug can expose the wrong patient's data.
- Legal: your HIPAA role determines your obligations. Business associates must meet the Security Rule requirements, and customers will ask for a BAA.
- Standards: follow the SMART App Launch security guidance, including state validation, exact redirect URI matching and PKCE.
- Practice: short-lived access tokens, rotated refresh tokens where supported, audit logs of patient access, CSP headers, dependency scanning, and a patient-context check on every request.
- Patient apps: privacy notices that are accurate; non-HIPAA health apps may fall under FTC rules such as the Health Breach Notification Rule.
05
EHRs and standards for SMART apps
- Vendor-specific implementation notes for Epic, Oracle Health and athenahealth, since each handles launch, scopes and registration differently.
- SMART App Launch version differences: scope syntax (v1 and v2), and whether the server supports PKCE and the newer granular scope features.
- US Core resources as the data contract for reads.
- USCDI data classes as a planning reference for what you can expect to find.
- CDS Hooks 1.0 and later for decision support.
- Your own backend APIs, so the SMART app is only the front end of a larger product.
06
How we deliver SMART on FHIR apps
- Workflow research: shadow or interview clinicians, find the exact moment the app appears and what must be visible without scrolling.
- Scope and data plan: minimum scopes, required resources, and fallback behavior.
- Prototype in a sandbox launcher: validate the launch and context flow early.
- Build and test: UI, auth, accessibility (WCAG 2.1 AA as a target), and automated launch tests.
- Customer pilot: a small group of clinicians, observation, and iterations on screen layout and timing.
- Registration and rollout: documentation for vendor and customer review, then phased release.
07
SMART on FHIR use cases
- A risk calculator that opens in the chart with labs and vitals prefilled.
- A structured data capture form for a specialty clinic that stores results back as FHIR resources.
- A care plan viewer for care managers, launched with patient context.
- A patient app aggregating records from several health systems.
- A CDS Hooks service that flags missing screening during an order or visit.
08
SMART app cost and timeline factors
These ranges are planning estimates. Approval timelines at health systems are outside our control and are not included.
| Scope tier | Typical timeline | Main cost drivers |
|---|---|---|
| Read-only EHR-launch app, one EHR | 6 to 10 weeks | UI complexity, resource count, sandbox testing |
| Read-write app with backend and one pilot customer | 3 to 5 months | Write-back, token management, clinician usability testing |
| Multi-EHR app with CDS Hooks and patient standalone | 5 to 8 months | Vendor differences, scope handling, accessibility, onboarding tools |
Frequently asked questions
What is the difference between EHR launch and standalone launch?
In an EHR launch, the EHR starts the app and supplies a launch token and context, so the patient is already selected. In a standalone launch, the app starts independently and the user authorizes and, if needed, picks a patient during the flow.
What are SMART scopes?
Scopes are OAuth permissions that limit what the app can access, for example patient/Observation.read for a single patient's observations or user/Patient.read for resources the user can access. Request the minimum required, since customers review scopes during approval.
Can SMART apps write data back?
Technically yes, through write scopes and FHIR create or update operations. In practice, many EHR APIs allow only narrow write capabilities, and a customer must enable them. We design apps so core value does not depend on write access.
What is CDS Hooks and how does it relate to SMART?
CDS Hooks is a standard for EHR-triggered decision support: the EHR calls your service at a workflow event and shows returned cards. Cards can link to a SMART app for deeper interaction. They are complementary.
Could our SMART app be regulated as a medical device?
Possibly. It depends on intended use and functionality. Some clinical decision support software falls outside the device definition under FDA's guidance, and some does not. Get a regulatory assessment early. See our FDA software as a medical device guide.
Sources and further reading
- SMART App Launch Implementation Guide (hl7.org)
- CDS Hooks specification
- FDA Clinical Decision Support Software guidance
This page is general information, not legal or regulatory advice. Requirements depend on your product, data and organization; consult qualified counsel for your situation.