Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Easiest way to have the PLIR set up locally is by using Docker and Docker Compose Make sure you have docker and docker-compose installed locally.

See Docker Installation Instructions for your environment.  If running on Linux, check https://docs.docker.com/compose/install/ to install docker compose.

Checkout  this git-repo  for a fully pre-configured Dockerized PLIR set up and follow the instruction below

  1. Clone the Repository locally 

    Code Block
    languagebash
    git clone https://github.com/mozzy11openmrs/PLIRopenmrs-plir-Dockerizeddockerized-Setupsetup.git
    
    


  2.  Move  Move to the project root directory and Spin Up spin up the pre-configured OpenMRS ,OpenHIM and ,Hapi-Fhir and the streaming-binlog pipeline instances .

    Code Block
    languagebash
    docker-compose up./run.sh
    


  3. You should be able to acces the OpenMRS ,OpenHIM and Hapi-Fhir instances  at the following urls

    InstanceURLcredentials (user : password)
    OpenMRShttp://localhost:8080/openmrs    admin : Admin123
    OpenHIM http://localhost:9000 root@openhim.org : openhim-password
    Hapi FHirhttp://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

    Note:

    • The OpenMRS Instance is pre-loaded with CIEL and

    comes with
    • a sample form (

    TX
    • HIV_

    PVLS
    • form) to collect TX_PVLS specific data

    Load
    • The above script also loads the necesary TX_

    PVLS Measure
    • PVLS Measure and Library Resources into the Hapi FHir . see

    how to load
    • the Resources

    into Hapi Fhir .
    Spin up the streaming-debezium pipeline  . 
    Code Block
    languagebash
    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 data
    The running Pipeline will listen to any  any
    • under the resources folder.

    • 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.



  4.  See here how to invoke the evaluate-measure and 

    Invoke the collect-data

    operation

    FHIR Operation using the Get request below to generate the

    releveant

    relevant Dataset for TX_

    PVLS and the actual indicator calculation based on CQL evaluation

    PVLS

    Code Block
    languagebash
    GET: http://localhost:8090/fhir/Measure/TX-PVLS/$collect-data?periodStart=<date>&periodEnd=<date>
    
    


  5. Invoke the evaluate-measure  FHIR Operation using the Get request below for the  indicator calculation based on CQL evaluation

    Code Block
    languagebash
    GET: http://localhost:8090/fhir/Measure/TX-PVLS/$evaluate-measure?periodStart=<date>&periodEnd=<date>
    
    


    Note : substitute <date> in the GET request with your actual date parameter .

  6. 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 plir-widget/config/nginx.conf .

    • To run the widget , run the command below from the root directory

      Code Block
      ./run-widget.sh
      
           
      
    • you should be able to access the widget at http://localhost:7000/ .

    Procede to select the measure TX-PVLS , select the start date and generate the report using the widget

  7. To remove and clean out all created containers and volumes, run

    Code Block
    ./stop.sh


    Main Repositories