Skip to content

Open Source CDS Hooks starter project. Start building your CDS Hooks App right away

License

Notifications You must be signed in to change notification settings

bluehalo/node-cds-hooks-starter

Repository files navigation

Node CDS Service Starter

This is a starter project for a CDS Service. It is designed to reduce the development time for developers by solving the boring parts for them.

Getting started

Install

yarn install

Start Nodemon

yarn develop

Or: Just node

yarn start

Test with CDS Hooks Sandbox

CDS Sandbox

CDS Hooks Sandbox is a fantastic tool that simulates calls to your CDS Service, where you can then return different Cards. Out of the box, node-cds-service-starter returns an Information card. Read about the different types of card on CDS Hooks.

Register Your Service

Register your service by selected "Add CDS Service" in the upper right.

Add CDS Services

Add your discovery endpoint where the CDS Hooks Sandbox can find the hooks you would like to subscribe to. If you are developing locally, then you would put http://localhost:3000/cds-services

We can now see in our Sandbox that the default information card is being displayed.

Displayed

Default Card

There is one information card that can be used as an example already supplied in this project.

{
  "cards": [
    {
      "summary": "Summary: Hello world. Hook: 'patient-view' -- Patient smart-1288992",
      "detail": "Detail: Hello world. Hook: 'patient-view' -- Patient smart-1288992",
      "source": {
        "label": "CDS Service Starter",
        "url": "https://example.com"
      },
      "indicator": "info"
    }
  ]
}

About

Open Source CDS Hooks starter project. Start building your CDS Hooks App right away

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published