Skip to content

Template to get a SMART on FHIR-based React app started quickly

License

Notifications You must be signed in to change notification settings

standardhealth/smart-react-app-template

Repository files navigation

SMART on FHIR React Template Build Status

This project is meant to be a template for a minimal SMART on FHIR React application. This project was bootstrapped with Create React App and has installed the fhirclient library to facilitate the SMART authorization process and interactions with the EHR.

The rest of your application can be built out in App.js and beyond. If additional FHIR resources are needed it can fetched in index.js by making a call using client.request() and passed down to App.js.

Testing with a launcher

  1. Run yarn install to install the necessary packages.
  2. Run yarn start to start the application.
  3. Launch the application from the SMART launcher.
    • Visit SMART Launcher
    • Launch http://localhost:3000
    • Select a practitioner and a patient
    • Page will load with name of selected patient displayed.

Running tests

Tests can be run by executing:

yarn test

Running the code linter

Code liniting can be run by executing:

yarn lint

Some issues can be automatically corrected with:

yarn lint-fix

About

Template to get a SMART on FHIR-based React app started quickly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •