- Additional Resources
The SMART® (Substitutable Medical Apps and Reusable Technology) platform defines a specification for an electronic health record (EHR) to safely and securely open other applications with context. These SMART applications are commonly web applications but may also be native mobile applications and that use HL7® FHIR® standard to read and write data from the EHR. With SMART, Cerner can embed a SMART app in the EHR. Cerner believes that SMART applications will be a major user of FHIR resources. We will also support FHIR access through mobile SMART applications, as those specifications emerge from the SMART web site.
Cerner expects the majority of SMART apps to be provided to clients in a SaaS (software as a service) model. That is, the SMART app is hosted or managed by the SMART developer or provider. In this case, clients do not need to install any code or package in order to implement a particular SMART app.
At a high level, provider facing applications must receive the following authorizations:
- Cerner must validate and register every SMART app. As part of this process, Cerner validates the usage of FHIR resources and operations (for example, READ and WRITE). Cerner will not validate the usage of FHIR resources for direct to consumer apps.
- Each client decides whether they want to allow a SMART app to run on a domain-by-domain basis.
- Each client decides which users and roles can access the SMART app.
To learn more about general SMART on FHIR app authorization process, see the SMART App Authorization Guide. For implementation information regarding Cerner’s Authorization server, see the Authorization page at fhir.cerner.com.
Currently, end users can open SMART apps in the following ways:
- Providers can access SMART apps from the Cerner Millennium PowerChart TOC (table of contents, a column of options that open different PowerChart components) and the Organizer view
- Providers can access SMART apps from an MPages component that is embedded in PowerChart
- Consumers can access SMART apps from HealtheLife to view their patient information
- Providers/Consumers can access SMART apps from a standalone provider/patient facing SMART apps
Cerner is continuing to look at incorporating SMART app support into our other applications and platforms.
SMART App Data Retrieval
SMART apps can leverage Cerner’s implementation of the FHIR standard server to retrieve data from the EHR based upon the current patient in context. However, SMART apps are not limited to FHIR data for their needs. SMART apps may choose to leverage other data sources for their needs, from other third party data sources to private and proprietary data the SMART app maintains. SMART apps may even retrieve data through Cerner proprietary means (for example, MillenniumObjects, CareAware services, or CCL scripts). Of course, leveraging proprietary APIs hampers interoperability, but if that is not a concern of the SMART app, it is a viable option.
SMART Without FHIR
Technically speaking, the SMART specification requires that a FHIR server exist so that a SMART app can communicate with the FHIR server when the app opens in order to determine the location of the authorization (OAuth 2) server. However, outside of this requirement, FHIR does not need to be leveraged otherwise by the SMART app.
The recommended screen resolution varies based on the available screen’s real estate. Instead of targeting a specific resolution, the app should be designed to be responsive, and the app should adjust according to the available screen sizes.
Apps should be designed to work in any browser for best user experience. For provider facing apps that run on the Cerner Millennium platform, Cerner currently supports only the embedded Internet Explorer browser (IE) at the moment. The minimum-supported embedded browser is IE 10. The latest supported browser varies based on the version of the browser that is currently installed on the device.
The doctype declaration tells the browser what version of HTML the document is written in. It is a good idea to include this declaration so that the browser will render the document correctly. It must be included at the very first line of the document, right above the
In order for the embedded IE browser to render the app in the latest supported IE version, set the following HTML tag in the first line of the
<head> section for all pages:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Technology and Framework for SMART Apps
What technology and framework you use is really up to you and your company. Regardless of which technology, framework, or language you choose, make sure that your app is fast, responsive, and adaptable to various screen sizes.
Open Source FHIR Client Libraries
sessionStorage property. Cerner requires that you upgrade the library to version v0.1.10 or higher to correct a known patient safety issue. You also must download and include this additional code into your project to correct this issue.
Other additional FHIR clients are available:
- Java: http://hapifhir.io/doc_rest_client.html
- .NET: https://github.com/ewoutkramer/fhir-net-api
- Python: https://github.com/smart-on-fhir/client-py
- iOS: https://github.com/smart-on-fhir/Swift-FHIR
code Console and Sandbox
Cerner’s implementation of SMART on FHIR ecosystem allows you to register, update, and delete your SMART app from our code Console. Additionally, you can open and test your app from code Console in our Sandbox environment. Currently, there is a 15-minute waiting period for new or updated app configurations to take effect. If you cannot open the application after the 15-minute period, post a question to the Cerner FHIR Developers Google Group.
See the Scopes and Launch Content page for more information on how you can obtain the context. Generally, your app must be able to retrieve SMART context parameters such as patient id, encounter id (if available), tenant, and a few others. You can inspect the OAuth2 access_token value that is returned to see the actual context.
For provider and patient facing apps, you can select any patient from a list of patients in our Sandbox environment to begin testing. After selecting a patient to test, you can open your app from a new web browser in code Console. Testing from Code Console through the browser helps you start developing and testing your app quickly.
Once you have your app working in code Console and you are committed to taking your app to production, contact us through the application available at https://code.cerner.com/millennium, and we can provide access to PowerChart to test your app. For provider facing apps, PowerChart is the environment where providers will access apps in a production environment, so it is very important to test the apps in PowerChart. Access to PowerChart is a benefit only offered to members of our code program.
Direct to consumers apps may also be launched from our patient portal, HealtheLife. Once our patient portal is available for developers, developers in our program will have the ability to launch SMART applications from HealtheLife. This is how you can test as a consumer accessing your application.
Your app must be reachable through an https endpoint. Also, you need a valid SSL certificate for your site to test your app in PowerChart.
In order for PowerChart to open and display your app in Cerner’s Sandbox FHIRPLAY environment, the URL of your app needs to be publicly accessible. In other words, the URL cannot point to hosts on your internal network.
If you plan to perform tests in PowerChart using your organization’s environment, the URL of your app does not need to be publicly accessible.