Simple nodejs server that simulates the EHR's side of a CDS Hooks interaction
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintignore
.jshintrc
.travis.yml
Dockerfile
LICENSE
README.md
package.json
server.js

README.md

cds-invoker

Build Status devDependency Status

Simple nodejs server that simulates the EHR's side of a CDS Hooks interaction, for testing purposes.

Usage

This service exposes one API call (invoke) that causes it to call the external CDS Service and pass through the resulting cards.

POST /invoke
{
  "service": "https://invoker.cds-hooks.org",
  "payload": {
    // data to call with
  }
}

Deployment

This card service can be deployed with docker. By default, the Dockerfile exposes port 3000. Creating the docker container can be done by:

$ docker build -t <your-name>/cds-invoker .
Successfully built <container-id>

$ docker run -p 3000:3000 -d --rm <your-name>/cds-invoker