Skip to content

vishwasrao/SMART-on-FHIR-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMART-on-FHIR-Application

Demo Application for SMART on FHIR. This application demonstrates steps involved into SMART App Launch. SMART App Launch

  1. Register App with EHR (one-time step)
  2. Launch App: EHR Launch
  3. Retrieve .well-known/smart-configuration
  4. Obtain authorization code
  5. Obtain access token
  6. Access FHIR API

App Registration

This app has been tested against Logica Sandbox Register your application in Logica Sandbox and update appName, issuer, clientId and clientSecret into backend/src/registry/registration.json

Frontend

Run all commands inside frontend directory Install all dependencies

npm install

Run Test

npm run test

Run Linting

npm run lint

Run Dev

npm run dev

Build for Production This will build assets into backend/client directory for static serve from backend.

npm run build

Backend

Run all commands inside backend directory Install all dependencies

npm install

Run Test

npm run test

Run Linting

npm run lint

Run Dev

npm run start:dev

This will start application on port 3000 You can go Logica Sandbox and launch application.

Build for production

npm run build

Note

Please use FireFox browswer to test as Chrome does not allow third party cookies to be set.