This is a demo application showcasing SMART on FHIR integration with Medplum. It demonstrates how to:
- Launch a SMART on FHIR app from an EHR context
- Handle SMART on FHIR authentication flows
- Access patient context
- Make FHIR API calls
- Display patient data
Note: The standalone launch flow from the home page is currently under development and may not work as expected. The app is primarily designed to be launched from an EHR context.
- Node.js 18 or later
- npm 8 or later
- Clone the repository
- Navigate to the project directory
- Install dependencies:
npm install
To run the development server:
npm run dev
The application will be available at http://localhost:8001
To create a production build:
npm run build
- EHR-launched SMART on FHIR flow
- OAuth2 authentication with multiple providers:
- Medplum
- SMART Health IT Sandbox
- Patient context handling and display
- FHIR resource retrieval and visualization
- React-based modern UI
To test the EHR launch flow using the Smart Health IT Sandbox, you'll need to:
- Navigate to the SMART Launcher page
- Set the "App's Launch URL" to:
http://localhost:8001/launch
- (Optional) Select a specific patient id to load using the "Patient(s)" selector
- (Option) Enable "Simulate launch within the EHR UI"
- Click the "Launch Sample App" button
To test the EHR launch flow, you'll need to:
- Register your app in the Medplum App
- Configure your EHR launch URL as:
http://localhost:8001/launch
- Launch the app from your EHR system using the SMART on FHIR app launcher
For detailed instructions on setting up SMART on FHIR apps with Medplum, see the SMART App Launch Guide in the Medplum documentation. Set the launch URL to http://localhost:8001/launch
and the redirect URL to http://localhost:8001/launch
.