Back to Search

FHIR North 2018 JavaScript

Author: Christian Ferreira - 4/25/2018 2:06:07 PM
 1 Like    0 Dislikes  

DHDR Node.js Viewer

This viewer was made to demonstrate how a Node.js web application can interact with Innovation Lab's DHDR. Queries are made by submitting a health card number to its own controller. From there, a query is built and then sent to Innovation Lab's DHDR server. A bundle is then returned and displayed client side.

Getting Started

These instructions will help you download and install the project on your local machine for development and testing purposes.

Before You Begin

Make sure you have the following installed:

  • Node.js (make sure npm is included in the installation)
  • Git Bash

Downloading the Program

The source code for this application can be downloaded by clicking on the "Repository Source" link on the right hand side under the "Navigation" section.

Troubleshooting

A forum for any questions or concerns with this starter project is being hosted on the Innovation Lab Forums page. You can get to it by clicking on the "Visit Forums" link on the right hand side under the "Navigation" section.

Running the Program

  1. Open Git Bash and navigate to the root directory of the program.
  2. Clone the project to a directory named app
  3. In a code editor, open the project and navigate to bin/www. From there, replace the <directory-name> portion of var app = require('../<directory-name>') with app.
  4. Enter the command: npm install
  5. Enter the command: npm start
  6. Open the browser enter localhost:3000 as the url in the address bar.

Issues with Start-up

After entering npm start, you may receive this error: Error: Cannot find module 'http-errors' at...

To resolve this error, run the following command: npm install http-errors

If any other issues are encountered, feel free to make a post in the Innovation Lab forum. To view repository specific topics, click Visit Forum in the right navigation menu.

Author

Lee Van Buskirk - Ideaworks MEDIC