Git Product home page Git Product logo

fhir-lab-reports's Introduction

FHIR Lab Reports

A SMART on FHIR and CDS Hooks enabled application to increase the clinical utility of pharmacogenomic laboratory test results.

This application has two parts:

  1. Lab - formatting results of a laboratory test result as FHIR resources.
part1-lab part1-lab-2
  1. EHR - using those results to provide CDS.

part2-ehr

The application is also CDS Hooks enabled to ensure that those results can be hooked into all future relevant clinical encounters.

hooks-card

Instructions

This project uses a Docker image to include the needed dependencies for the app server. Follow this guide to install Docker on your machine and check installation success with docker -v. Then follow this guide to install Docker Compose and check that installation with docker-compose -v.

Launch the server with the command docker-compose up --build

Create data server

This example will use the HSPC Sandbox.

  1. Create an account.
  2. Create a new sandbox with the following options and any name you would like to use.

sandbox options

Launch part1-lab

Navigate your web browser to http://localhost:3000/lab in order to view the example.

Important!! Once on the part1-lab page, before you submit the sample form, enter your sandbox open FHIR endpoint URL into the server field above the submit button.

sandbox-open-url

open-url-field

Launch part2-ehr

Register the app manually within your sandbox using the following parameters and leave the rest with their defaults:

Launch URL
http://localhost:3000/smart-launch
Redirect URL
http://localhost:3000/
Scopes
launch patient/*.read

register-app

Also feel free to use doc_img/icon-for-hspc.png as the image for the app.

Set the client ID in js/launch-smart.js to the one given by the SMART service upon registering the app.

client-id

client-id-code

Launch the CDS Hooks Sandbox app from the HSPC app gallery.

hooks-app

Select the patient whose report was generated in part1-lab (patient for the sample form is shown below) to perform a SMART launch.

sample-patient

Switch to the Rx View using tab at the top of the page and register our application as a CDS service by clicking the cog in the upper-right corner.

hooks-register

Select Simvastatin as a medication to order for the patient. The CDS Hooks sandbox mimics the ordering behavior of an EHR and so is useful in testing any implementation of CDS Hooks.

simvastatin

The order will return a response card with a link to launch the application.

card

Note: The SMART launch can also be performed directly from the HSPC sandbox. This direct launch doesn't use CDS Hooks services. However, the same sample patient should be selected.

fhir-lab-reports's People

Contributors

mwatkin8 avatar

Watchers

 avatar  avatar

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.