Skip to content

logicahealth/cds-service-example-nodejs

 
 

Repository files navigation

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.

About

Simple nodejs server that acts as a set of CDS services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.5%
  • HTML 16.5%