This project creates an HTTP endpoint that can be invoked as part of the CDS Hooks workflow in the sandbox.
Install the prerequisites, then run the application, and expose your endpoint by creating an SSH tunnel.
Install NodeJS, and if you're on Windows, an SSH client.
One option is PuTTY.
Newer Windows 10 releases have an SSH client built in that can be enabled by following these instructions: https://www.howtogeek.com/336775/how-to-enable-and-use-windows-10s-built-in-ssh-commands/
Clone this repo:
git clone https://github.com/uwbhi/phi533-cdshook.git && cd phi533-cdshook
Install the dependencies:
npm install
Run the application:
npm start
Navigate to http://localhost:3003/
and make sure you see a message that the service is running.
Navigate to the CDS Hooks sandbox. Click the CDS Services link at the top right and choose ADD CDS Service.
In the input box, enter http://localhost:3003/cds-services
, using the SSH tunnel output from above, but appending /cds-services
to the URL.
Then test the config:
-
Navigate to the Rx View (by clicking Rx View from the navbar at the top), and select any problem from the Treating dropdown box.
-
Note the Public Health Alert card being shown.
-
Pat yourself on the back and get a beer 🍺.