![Page 1: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e1b5503460f94b09777/html5/thumbnails/1.jpg)
Setting up the OpenHIM
![Page 2: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e1b5503460f94b09777/html5/thumbnails/2.jpg)
Components
•Core - https://github.com/jembi/openhim•Mediators – e.g. OpenEMPI adapter https://github.com/jembi/openhim-openempi-patient-adapter•Error Management UI - https://github.com/jembi/openhim-webui
![Page 3: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e1b5503460f94b09777/html5/thumbnails/3.jpg)
Installing Core
•Install git – sudo apt-get install git•Checkout the core project
• git clone https://github.com/jembi/openhim.git
•Setup maven in eclipse – m2e• Help -> Install new software…• http://download.eclipse.org/technology/m2e/
releases• Uncheck the slf4j component, it’s not needed
•Import existing maven project into Mule Studio• File -> Import… -> Maven > Existing maven projects
![Page 4: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e1b5503460f94b09777/html5/thumbnails/4.jpg)
Maven
•It may take a while to download all the maven dependencies required•We’ve provided an .m2 repository with all the required dependencies
• Get the file m2.zip from the flash stick• unzip m2.zip• mv m2 ~/.m2
![Page 5: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e1b5503460f94b09777/html5/thumbnails/5.jpg)
• We will use puppet to setup all the dependencies• Create a folder puppet_setup• cp {workspace}/openhim/infrastructure/env/* puppet_setup/• cp {workspace}/openhim/src/main/resources/*.sql
puppet_setup/• cp {workspace}/openhim/src/main/resources/ldap-auth-pre-
prod.ldif puppet_setup/• sudo apt-get install puppet• cd /etc/puppet/modules• sudo unzip {somewhere}/puppet_setup/openldap.zip• cd {somewhere}/puppet_setup• Edit the file openhim.pp and remove the Mule ESB section• (optional) Change the mysql password• Change the source_dir variable to point to puppet_setup• sudo puppet apply openhim.pp
• Alternatively you can install mysql and openldap manually
![Page 6: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter](https://reader035.vdocuments.mx/reader035/viewer/2022062516/56649e1b5503460f94b09777/html5/thumbnails/6.jpg)
Building the OpenHIM
•Build the project using Maven:• Right click on the project and select Run as -> Maven
Install
•To run the app• Right click on the project and select Run as -> Mule
Application