Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 922 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 922 Bytes

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