usr-av / smart-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:JavaScript 44.9%Language:TypeScript 43.8%Language:SCSS 8.8%Language:HTML 2.6%