Example app launched with SMART on FHIR OAuth 2.0, built using Express. This app does not use credentials, but rather the EHR launch (SMART on FHIR) workflow as documented by Epic Systems here: https://fhir.epic.com/Documentation?docId=oauth2
You will need an Epic App Orchard API key, which you can get by signing up for an account here: https://open.epic.com
- Clone the repository to your machine
- Open
settings.jsand add your client ID.
cdto the directory on your machine where the code resides- Install dependencies:
npm install - Start the application:
npm start - Log in at https://open.epic.com/Launchpad/OAuth2Sso and update the settings:
- Launch URL: http://localhost:3000/launch
- Redirect URL: http://localhost:3000/oauth-callback
- Click Launch App to launch
- If all works correctly you should see data pulled from Epic's example DB for the patient context you selected