This page is part of the Smart App Launch Implementation Guide (v2.2.0: STU 2.2) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
The specification defines FHIR profiles for Endpoint, Organization, and Bundle resources that help users connect their apps to health data providers. It outlines the process for data providers to publish FHIR Endpoint and Organization resources, where each Organization includes essential branding information such as the organization’s name, logo, and user access details. Apps present branded Organizations to help users select the right data providers.
By following this specification, EHR systems, healthcare providers, payers, and app developers can ensure a consistent and recognizable user experience when connecting users to health records across various platforms and services.
The User-Access Brand Examples illustrate how providers can represent diverse scenarios.
This specification supports a model User Experience (UX) where apps display a collection of cards or tiles, each representing a “User-Access Brand” that users can recognize and connect to. App developers are not expected to follow this model UX precisely; the model exists to keep the design grounded and establish a shared vocabulary.
In this model, a healthcare provider, payer, or other organization exposing a user-facing FHIR API can decide which brands to publish in association with their FHIR endpoints. Each Brand includes data describing the organization (e.g., organization name and logo that a user would recognize) together with details about their user access portals (e.g., name, logo, and description in terms that users would recognize) as well as the API endpoints associated with these portals.
Using this model, an app can:
Each Brand includes the following information intended to support an app-based card or tile UX:
Field | Description | Cardinality |
---|---|---|
Name | Primary name for the organization to display on a card, e.g., “General Hospital” | 1..1 |
User-facing website for this Brand | note this is distinct from an access portal, described under “Access Details” below | 1..1 |
Logo | to be displayed on a card, and link to logo use terms/agreements | 0..1 |
Aliases | e.g., former names like “General Health Associates” for filtering/search | 0..* |
Identifiers | supporting cross-publisher references or links to external data sets such as the NPI Registry. | 0..* |
Locations | Places associated with the Brand (e.g., states, cities, or street addresses) | 0..* |
Categories | clinical, insurance, laboratory, imaging, pharmacy, network, aggregator — for filtering/search | 0..* |
Portal Details | describes a portal this Brand offers to users See the table below. | 0..* |
The details of the User Access Brand communicated to the user.
Field | Description | Cardinality |
---|---|---|
Portal name | e.g., “Patient Gateway” or “MyChildrens Portal” | 0..1 |
Portal logo | to be displayed on a card for Brands that have a portal logo in addition to their brand logo | 0..1 |
Portal URL | where users can manage accounts with this provider. | 0..1 |
User-facing description | explaining the subset of users eligible to connect, or the data available in a user-friendly language | 0..1 |
API Endpoints | FHIR API Endpoints associated with the portal | 0..* |
Commonly, a single Brand is typically associated with a single Portal that offers a single FHIR Endpoint. But all of the following cases are supported by this conceptual model:
identifier
to facilitate matching, merging, and de-duplication. Apps can merge Brands into a single target Brand’s card by displaying the target Brand’s title and logo. Within the Brand’s card, the app displays a distinct “connect” button for each set of Portal Details.system
is urn:ietf:rfc:3986
and value
is the HTTPS URL for the brand’s primary web presence, omitting any “www.” prefix from the domain and omitting any path componentBundle.timestamp
to advertise the timestamp of the last change to the contentsBundle.entry.resource.meta.lastUpdated
with a more detailed timestamp if the system tracks updates per Resource.ETag
header in all Brand Bundle HTTP responsessystem
and value
)asked-declined
or asked-unknown
in a Brand Bundleasked-declined
or asked-unknown
in a Brand Bundleuser_access_brand_bundle
and user_access_brand_identifier
properties in the SMART configuration JSON responseuser_access_brand_bundle
user_access_brand_identifier
in SMART configuration JSON response if the user_access_brand_bundle
refers to a Bundle with multiple Brands.user_access_brand_identifier
value
system
Organization.identifier
in the referenced Brand BundleIf-None-Match
header in all Brand Bundle requests to avoid re-fetching data that have not changed.well-known/smart-configuration
if they differ from the resources in a vendor-consolidated Brand BundleAn app assembles its collection of Brands (typically as an offline, configuration-time process) by gathering FHIR UserAccessEndpoint
(Endpoints) and UserAccessBrand
(Organizations) resources from:
.well-known/smart-configuration
for known endpointsFor fine-grained organizational management, apps SHALL select the FHIR resources linked from .well-known/smart-configuration
if they differ from the resources in a vendor-consolidated Brand Bundle.
See Formal Profile.
This annotated example illustrates how a Brand is represented as a FHIR Organization.
{
// A Brand is represented as a FHIR Organization
"resourceType" : "Organization",
"id" : "good-health",
// The primary name by which users recognize this brand
"name" : "Good Health",
// Additional names or former names that users may recognize
"alias" : ["Goodie Bag Health"],
// Any valid status is allowed, but publishers should consider filtering
// their published list to only include active brands.
"active" : true,
// This guide provides a vocabulary for loosely categorizing the type of
// data available at user access API endpoints. Multiple categories
// can be included here.
"type" : [{
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/organization-type",
"code" : "prov",
"display" : "Healthcare Provider"
}]
}],
"extension" : [{
// (0..1) `organization-brand` extension conveys branding details that
// are not part of FHIR's core data model
"url" : "http://hl7.org/fhir/StructureDefinition/organization-brand",
"extension" : [{
// (0..*) Link to the logo (uses `https:` or `data:` schme for inline)
// * optimized for display as a 1 in / 2.54 cm square
// * formatted as SVG or 1024x1024 pixel PNG with transparent background
// * legible at small sizes
"url" : "brandLogo",
"valueUrl" : "https://goodhealth.example.org/images/logo.svg"
},{
// (0..*) Link to the license agreement for the logo, if applicable.
// Developers must review and agree to the linked logo license terms
// prior to using the logo in their applications.
"url" : "brandLogoLicense",
"valueUrl" : "https://goodhealth.example.org/license.html"
}, {
// (0..*) Link to a Brand Bundle where additional information about
// this Brand may be available.
"url" : "brandBundle",
"valueUrl" : "https://goodhealth.example.org/branding.json"
}]
},
{
// (0..*) `organization-portal` extension conveys details about a
// portal associated with this brand. This extension repeats when
// more than one portal is associated with this brand.
"url" : "http://hl7.org/fhir/StructureDefinition/organization-portal",
"extension" : [{
// (0..1) Name of the portal as shown to users
"url" : "portalName",
"valueString" : "GoodHealthCentral"
},
{
// (0..1) Describes the portal and its intended audience. May be used to help
// users select the right portal if multiple options are available.
"url" : "portalDescription",
"valueMarkdown" : "GoodHealthCentral is available for our primary care patients."
},
{
// (0..1) Link to the portal website.
"url" : "portalUrl",
"valueUrl" : "https://goodhealthcentral.example.org"
},
{
// (0..1) Logo for the portal (see descriptions for brandLogo above)
"url" : "portalLogo",
"valueUrl" : "https://goodhealthcentral.example.org/logo.png"
},{
// (0..1) License for the portal logo (see description for brandLogoLicense above)
"url" : "portalLogoLicense",
"valueUrl" : "https://goodhealthcentral.example.org/logo-license.html"
},
{
// (0..*) Endpoint associated with this portal. This extension repeat
// when more than one endpoint is associated with this portal.
// (The `reference` is to an Endpoint that appears in the same
// Brand Bundle as this Organization)
"url" : "portalEndpoint",
"valueReference" : {
"reference" : "Endpoint/goodhealth-r4"
}
},{
"url" : "portalEndpoint",
"valueReference" : {
"reference" : "Endpoint/goodhealth-r2"
}
}]
}],
// Apps can use a Brand’s Organization.identifier to merge content published
// in multiple sources. To facilitate robust matching, EHRs SHALL support
// customer-supplied identifiers (system and value). It is RECOMMENDED that
// each Brand include an identifier where system is `urn:ietf:rfc: 3986`
// (meaning the identifier is a URL) and value is the HTTPS URL for the
// Brand’s primary web presence, omitting any "www." prefix and any path.
// Of course, additional Identifiers may be included as well.
"identifier" : [{
"system" : "urn:ietf:rfc:3986",
"value" : "https://examplelabs.org"
}],
// telecom with value conveying the primary public website for the Brand.
// Note this is distinct from the user access portal website.
"telecom" : [{
"system" : "url",
"value" : "https://brand.example.com"
}],
// Locations (e.g., zip codes and/or street addresses) associated with the Brand.
// The following combinations are allowed, and as a best practice to ensure
// consistent worldwide adoption, the Address.country data element SHOULD be
// populated inside any of these with an ISO 3166-1 alpha-2 country code.
:
// * State
// * City, state
// * City, state, zip code
// * Street address, city, state, zip code
// * Zip code alone
"address" : [{
"city" : "Boston",
"state" : "MA",
"postalCode" : "02111",
"country": "US"
}, {
"postalCode" : "02139",
"country": "US"
}],
// These endpoints are already listed above in association with their portal.
// They are repeated here as a convenience for clients that do not know how
// to interpret User Access Brands.
"endpoint": [{
"reference" : "Endpoint/goodhealth-r2"
}, {
"reference" : "Endpoint/goodhealth-r4"
}]
}
See Formal Profile.
This annotated example illustrates how an Endpoint is represented.
{
"resourceType": "Endpoint",
"id": "goodhealth-r4",
// FHIR Base URL for the User Access Endpoint
"address": "https://fhir.goodhealth.example.org/r4",
// Any valid status is allowed, but publishers should consider filtering
// their published list to only include active endpoints.
"status": "active",
// Name for the User Access Endpoint. This value may contain
// technical details like FHIR API Version designations, so apps should prefer
// displaying the `Organization.name` from an associated UserAccessBrand,
// rather than displaying this value to users.
"name": "FHIR R4 Endpoint for GoodHealth",
// Fixed value indicating FHIR API Endpoint
"connectionType": {
"code": "hl7-fhir-rest",
"system": "http://terminology.hl7.org/CodeSystem/endpoint-connection-type"
},
"extension": [
{
// (1..*) The User Access Endpoint's FHIR Version. This Extension
// is a denormalization to help clients focus on supported endpoints.
"url": "http://hl7.org/fhir/StructureDefinition/endpoint-fhir-version",
"valueCode": "4.0.1"
}
],
// Contact information for the endpoint. This will include at least one
// URL for a website where developers can configure access to this endpoint.
"contact": [
{
"system": "url",
"value": "https://dev-portal.goodhealth.example.org"
}
],
// Some `payloadType` is required by FHIR R4. It can be populated with a
// placeholder value like the one shown here.
"payloadType" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/endpoint-payload-type",
"code" : "none"
}
]
}
]
}
JSON FHIR Bundle (type: collection
) of Organizations and Endpoints that is hosted at a stable, publicly available, publicly disclosed location.
For background and context, see User Access Brands Overview.
Bundle Entries include:
Brand Bundles SHALL populate Bundle.timestamp
to advertise the timestamp of the last change to the contents. In addition, Brand Bundles SHOULD populate Bundle.entry.resource.meta.lastUpdated
with a more detailed timestamp if the system tracks updates per Resource.
{
"resourceType": "Bundle",
"id": "example",
// Brand Bundles are always published as "collection"
"type": "collection",
// Brand Bundles always include a timestamp that apps can use to recognize
// if contents have changed since the last time they fetched the bundle.
"timestamp": "2023-09-05T20:00:43.241070-07:00",
"entry": [ /* Organizations and Endpoints here */ ]
}
Brands and Endpoints are compiled together and published in a Brand Bundle.
The User-Access Brand Examples illustrate how providers can represent diverse scenarios including:
Apps can use a Brand’s Organization.identifier
element to merge content published in multiple sources. To facilitate robust matching, EHRs SHALL support customer-supplied identifiers (system
and value
). It is RECOMMENDED that each Brand include an identifier where system
is urn:ietf:rfc: 3986
(meaning the identifier is a URL) and value
is the HTTPS URL for the Brand’s primary web presence, omitting any “www.” prefix from the domain and omitting any path component. For example, since the main web presence of Boston Children’s Hospital is https://www.childrenshospital.org/, a recommended identifier would be
{"system": "urn:ietf:rfc:3986", "value": "https://childrenshospital.org"}
Publishers SHALL support Cross-Origin Resource Sharing (CORS) for all GET requests to the artifacts described in this guide.
Publishers SHOULD include a weak ETag
header in all HTTP responses. Clients SHOULD cache responses by ETag and SHOULD provide an If-None-Match
header in all requests to avoid re-fetching data that have not changed. See https://www.hl7.org/fhir/http.html#cread for background.
.well-known/smart-configuration
To ensure that SMART apps can discover Brand information directly from a FHIR endpoint’s base URL, FHIR servers supporting this IG SHOULD include the following properties in the SMART configuration JSON response:
user_access_brand_bundle
URL of a Brand Bundle. The Bundle entries include any Brand and “peer endpoints” associated with this FHIR endpoint.user_access_brand_identifier
: FHIR Identifier for this server’s primary Brand within the Bundle. Publishers SHALL populate this property if the referenced Brand Bundle includes more than one Brand. When present, this identifier SHALL consist of a value
and SHOULD have a system
.The Brand Bundle SHALL include exactly one Brand with an Organization.identifier
that matches the primary Brand identifier from SMART configuration JSON.
The Brand Bundle SHOULD include only the Brands and Endpoints associated with the SMART on FHIR server that links to the Bundle. However, the Brand Bundle MAY have additional Brands or Endpoints (e.g., supporting a publication pattern where endpoints from a given vendor might point to a comprehensive, centralized vendor-managed list).
Note that the presence of an Endpoint in the Brand Bundle does not provide an implicit authorization to access the Endpoint. Clients that require access to the data provided by the FHIR Endpoints in the Brand Bundle can use SMART Configuration metadata to determine authorization requirements.
.well-known/smart-configuration
{
// details at http://hl7.org/fhir/smart-app-launch/conformance.html
"user_access_brand_bundle": "https://example.org/brands.json",
"user_access_brand_identifier": {
"system": "urn:ietf:rfc:3986",
"value": "https://example.org"
},
// ...
}
Dereferencing the user_access_brand_bundle
URL above would return a Brand Bundle.
MS
) and Data Absent ReasonsUser Access Brand profile elements labeled as “must support” mean publishers must provide a way for Brands to populate the value. For example, marking a Brand’s “address” as 0..* MS
means that a publisher needs to give Brands a way to supply multiple addresses, even if some choose not to provide any.
An EHR that publishes a Brand Bundle may not have some required data elements (Brand Website, Portal Website, Portal Name). If the EHR has asked, but a Brand administrator has not supplied a value, the EHR MAY provide a Data Absent Reason of asked-declined
or asked-unknown
. The EHR SHALL NOT use other Data Absent Reasons.