Giter Site home page Giter Site logo

charts-on-fhir's Introduction

Charts-on-FHIR

A data visualization library for SMART-on-FHIR healthcare applications.

Building your own app

Explore the Documentation for Getting Started guides, API docs, and examples.

Projects in this repository

Library

Applications

  • showcase: A customizable clinical dashboard that demonstrates all of the library's features
  • cardio: A pre-configured clinical dashboard focused on patient-generated health data (PGHD)
  • cardio-patient: A patient-facing application for submitting blood pressure measurements and viewing prior data
  • documentation: The application that powers the library's Documentation site

Utilities

Running the Applications

  1. Run npm start <project> to start the local development server. For example: npm start showcase will start the showcase app.
  2. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Logica Open FHIR Server

When running in Angular development server, if no EHR launch context is detected then the showcase app will connect to an open FHIR server using the configuration in environment.logica-open.ts.

Mock FHIR Server

A mock FHIR server can also be used for offline development when Logica is unavailable. This server only works with the showcase app.

  1. npm run generate-patient (at least once)
  2. npm run mock-fhir-install (first time only)
  3. npm run mock-fhir
  4. npm start showcase -- --configuration=mock

EHR Launch

To test an EHR launch with the Angular development server, you need an EHR simulator that allows using unsecured HTTP on localhost. The app should be registered with the following configuration:

  • Launch URI: http://localhost:4200/launch.html
  • Redirect URI: http://localhost:4200
  • Client ID: must match the one in launch.html
  • Scopes: should match the ones in launch.html

Building the library

Run npm run build ngx-charts-on-fhir to build the library. The build artifacts will be stored in the dist/libs/ngx-charts-on-fhir directory.

Running unit tests

Run npm test <project> to execute the unit tests via Karma.

Running a Docker container

Any of the sample applications in this workspace can be built as a self-contained Docker image that runs NGINX webserver. This uses a production build configuration suitable for deployment. The Dockerfile accepts a build-arg for the app name. To build an image for the showcase app:

docker build --build-arg app=showcase -t showcase .

The app's SMART clientId must be provided by an environment variable when starting the container. To run the container on http://localhost:4200:

  1. export CLIENT_ID=client_id_that_is_registered_with_the_ehr
  2. docker run -p 4200:80 -e CLIENT_ID showcase

charts-on-fhir's People

Contributors

semicolin avatar yashpmohod avatar amolht avatar shubhamparikh927 avatar ddjain avatar vdeshkar avatar hankwallace avatar

Stargazers

Dairon M. avatar  avatar  avatar Chris Moesel avatar  avatar

Watchers

Mariano De Maio avatar Vadim Dribinsky avatar  avatar  avatar Aziz Boxwala avatar  avatar  avatar Vijay Singh avatar

Forkers

ahrq-cds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.