Make sure you have docker and docker-compose installed locally.
Checkout this git-repo for a fully pre-configured Dockerized PLIR set up and follow the instruction below
Clone the Repository locally
Move to the project root directory and spin up the pre-configured OpenMRS ,OpenHIM ,Hapi-Fhir and the streaming-binlog pipeline instances .
You should be able to acces the OpenMRS ,OpenHIM and Hapi-Fhir instances at the following urls
Instance URL credentials (user : password) OpenMRS http://localhost:8080/openmrs
admin : Admin123
email@example.com : openhim-password
Hapi FHir http://localhost:8090
hapi : hapi123
The OpenMRS Instance is pre-loaded with CIEL and a sample form (HIV_form) to collect TX_PVLS specific data
The above script also loads the necesary TX_PVLS Measure and Library Resources into the Hapi FHir . see the Resources under the
- The Openhim instance is pre-configured with the necesary meta-data
Wait for the plir-streaming-pipeline container to start running before adding any data into OpenMRS. The running Pipeline will then listen to any data changes added in to OpenMRS and route them to the FHIR server through OpenHIM.
Invoke the collect-data FHIR Operation using the Get request below to generate the relevant Dataset for TX_PVLS
Invoke the evaluate-measure FHIR Operation using the Get request below for the indicator calculation based on CQL evaluation
Note : substitute
<date>in the GET request with your actual date parameter .
- You can use a plir-widget innitially develeoped by the bahmni-plir team , to easily query and visualise the Measure report generated from the HAPI-FHIR server .
Install the http-server . see inginix (proxy-server) config under
To run the widget , run the command below from the root directory
you should be able to access the widget at
Procede to select the measure TX-PVLS , select the start date and generate the report using the widget
To remove and clean out all created containers and volumes, run
- Hapi FHir for OpenMRS PLIR https://github.com/openmrs/openmrs-contrib-plm-fhir-server
- Analytics Engine Pipeline https://github.com/GoogleCloudPlatform/openmrs-fhir-analytics