Giter Club home page Giter Club logo

cds-example's Introduction

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.

cds-example's People

Watchers

Danney91 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.