The Easiest way to have the PLIR set up locally is by using Docker and Docker Compose
...
Clone the Repository locally
Code Block language bash git clone https://github.com/openmrs/openmrs-plir-dockerized-setup.git
Move to the project root directory and Spin Up the pre-configured OpenMRS ,OpenHIM and Hapi-Fhir instances .
Code Block language bash docker-compose up
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
OpenHIM http://localhost:9000 root@openhim.org : openhim-password
Hapi FHir http://localhost:8090 hapi : hapi123
After Logging into OpenHIM (see more ), Import the Config-file inside the Config folder ie config/openhim-config.json
Note that the OpenMRS Instance above is pre-loaded with CIEL and comes with a sample form (TX_PVLS form) to collect TX_PVLS specific dataLoad the necesary FHIR Measure Resource For Calculation of TX_PVLS Measure and Library Resources into PVLS and FHIR CQL Libraries for the Calculation of TX_PVLS into the Hapi FHir .
you can load the resources directly from the resources folder directly using the loadResources script. run the command below from the project Root directory
see how to load the Resources into Hapi Fhir using PostMan client.Code Block language bash chmod +x * ; ./load-resources.sh
Spin up the streaming-debezium pipeline .
Code Block language bash docker-compose -f pipeline-compose.yml up
Note that you run the above command from the root directory of the cloned repository.
You can use the TX_PVLS form pre-loaded in the OpenMRS instance to capture TX_PVLS specific dataThe running Pipeline will listen to any 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
see sample hereCode Block language bash GET: http://localhost:8090/fhir/Measure/TX-PVLS/$collect-data?periodStart=<date>&periodEnd=<date>
Invoke the evaluate-measure FHIR Operation using the Get request below for the indicator calculation based on CQL evaluation
see sample resultset hereCode Block language bash GET: http://localhost:8090/fhir/Measure/TX-PVLS/$evaluate-measure?periodStart=<date>&periodEnd=<date>