Simple nodejs server that acts as a set of CDS services
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fixtures
views
.gitignore
.jshintignore
.jshintrc
.travis.yml
Dockerfile
LICENSE
README.md
package.json
server.js

README.md

cds-service-example-nodejs

Build Status devDependency Status

Simple nodejs server that acts as a set of CDS services

Usage

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

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

$ docker run -p 9000:9000 -d --rm <your-name>/cds-service-example-nodejs

Adding a fixture

A fixture for the cds-service-example-nodejs project is implemented as a javascript module that exports two properties: definition and payload.

The definition property describes the service as it would be exposed through the /cds-services endpoint. The schema for the service definition is available at the CDS Hooks Discovery documentation page.

The payload property is the payload that will be returned from the /cds-services/fixture endpoint. The schema for the payload is available at the CDS Hooks Service Response documentation page. You can also use the cds-validator project to ensure the schema payload is valid.

Prior to submitting a pull request for the fixture, please make sure that npm test passes the jshint.

Skeleton:

'use strict';

module.exports = {
  definition: {},
  payload: {}
}

Notes

Thank you to Josh Mandel and Kevin Shekleton for the cds-hooks project, a JSON-based mechanism for EMR systems to provide decision support tools from within a clinician's workflow.