Skip to content

A proof of concept Node.js Express GUI app to send RESTful CRUD operations to FHIR server Immunization resource endpoint

Notifications You must be signed in to change notification settings

AWS-FHIR-Works-POC-NHSD/fhirnodejsclienttest

Repository files navigation

fhirnodejsclienttest

Running locally, two options

Run as a full local Node.js application

Install the usual way

  1. clone repository locally

  2. install it

npm install
  1. configure it. Create a .env file in root folder with the following
HOSTNAME=https://www.example.com
PORT=443
TOKENREQUIRED=false
FHIRTENANTID=
FHIRCLIENTID=
FHIRCLIENTSECRET=
FHIRSUBSCRIPTIONID=
FHIRSERVER=
PATIENT=**NHS Number, e.g. test NHS Number like 9000000009**
XAPIKEY=**key value, e.g. AWS FHIR Works developer key**
AUTH_TOKEN=**oauth token**
AUTH_TOKEN_PDS=
XAPIKEY_PDS=
PDSENDPOINT=https://sandbox.api.service.nhs.uk/personal-demographics/FHIR/R4
SSODOMAIN=
SSOISSUER=
SSOCLIENTID=
SSOCLIENTSECRET
SSOCALLBACKURL=
PASSPORTSECRET=
AUTHENTICATE=false
  1. run it
node ./server.js

or

nodemon ./server.js
  1. access it via web browser

http://localhost:3000/

Making contributions

  1. Create branch in GitHub project

  2. Locally

    $git pull
    $git checkout <branch name>
  1. Make changes to code and other files as required

  2. Once you are happy with your changes and have run an manually tested them, npm test to run test pack before you commit

  3. Commit changes

    $git add .
    $git commit . -m <"commit message">
    $git push
  1. Return to GitHub and create Pull Request

Docker

  1. clone repository locally

  2. build local Docker image

docker build . -t fhirnodejsclienttest
  1. start container
docker run -p 3000:3000 -d -e HOSTNAME=http://server.fire.ly -e PORT=80 -e XREQUESTID=60E0B220-8136-4CA5-AE46-1D97EF59D068 -e XCORRELATIONID=11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA fhirnodejsclienttest 
  1. access it via web browser

http://localhost:3000/

About

A proof of concept Node.js Express GUI app to send RESTful CRUD operations to FHIR server Immunization resource endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages