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
.
- Run
yarn install
to install the necessary packages. - Run
yarn start
to start the application. - 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.
Tests can be run by executing:
yarn test
Code liniting can be run by executing:
yarn lint
Some issues can be automatically corrected with:
yarn lint-fix