This is a openHIM mediator that is used to perform coverageEligibility
This mediator requires a successfull installation of openhim-console and openhim-core-js.whose installation guide can be found in https://github.com/jembi/openhim-console and https://github.com/jembi/openhim-core-js respectfully
- create a
src/.env
file to provide your mediator connection to openHIM:
PORT = mediator port which should match the ports specified `in` src/mediatorConfig.json
OPENHIM_URL=https://xyx:8080 - link hosting the openHIM Console and openHIM Core-js
OPENHIM_USERNAME=openhim username
OPENHIM_PASSWORD=openhim password
MEDIATOR_URN=Mediator Name
OPENHIM_REGISTER=true
SOSYS_URL=Sosys server link
To run the mediator open a terminal and navigate to the project directory and run the following commands:
docker build -t coverageEligibility .
docker run -p 3001:3001 -d coverageEligibility
To run the patient mediator open a terminal and navigate to the project directory and run the following commands:
npm install
npm start