Skip to content

I-TECH-UW/sedish-haiti.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEDISH: The Haiti HIE

CI

Components

1. iSantePlus EMR

Links

https://github.com/IsantePlus/openmrs-distro-isanteplus https://github.com/IsantePlus/docker-isanteplus-server

2. OpenCR

https://github.com/intrahealth/client-registry

3. OpenHIM

http://openhim.org/docs/installation/docker

4. HAPI JPA Server

https://github.com/hapifhir/hapi-fhir-jpaserver-starter#deploy-with-docker-compose https://hapifhir.io/hapi-fhir/docs/server_jpa/get_started.html

5. Shared Health Record

https://github.com/i-tech-uw/shared-health-record

Installation

1. Install Docker

Docker Engine:

https://docs.docker.com/compose/install/

Docker Compose:

https://docs.docker.com/compose/install/

2. Clone the Sedish Repository

git clone https://github.com/I-TECH-UW/sedish-haiti.org.git

3. Port-based Setup

a) Pull all containers

sudo docker-compose -f docker-compose.ports.yml pull

b) Start up Core Containers

Generate self-signed certs:

sudo docker-compose -f docker-compose.ports.yml up certgen
sudo docker-compose -f docker-compose.ports.yml up -d nginx openhim-core openhim-console mongo-db

c) Load Default OpenHIM Config First, make sure to choose and set a desired admin PW for OpenHIM that you'll use in all of the mediator configuration.

You can set this Password with the "ADMIN_PW" env setting.

sudo docker-compose -f docker-compose.ports.yml up openhim-config

d) Access the OpenHIM Console
You should now be able to access the OpenHIM console at https://localhost, or whatever IP address the server is running on. The OpenHIM console runs on ports 80 and 443.

Note: If you are using Chrome and get a certificate error, you can type thisisunsafe after clicking anywhere on the page to be able to proceed.

Make sure that the console is pointint to the correct openhim-core container. You should be able to access that container using <your-ip-address>:8080/heartbeat. You can configure this connection in configs/openhim-console/ports.json.

e) Modify OpenHIM settings as desired
Log in to the console, and set the admin password to openhim (for development), or the password of your choice if you haven't done so earlier automatically.

You can also set up Clients and Roles for the following systems:

  • postman for testing
  • each isanteplus instance that will connect to the HIE
  • the Shared Health Record

Note: any changes to the OpenHIM console container might not show up until you disable/clear the browser cache. You can also disable the cache by opening Chrome dev tools with F12 and selecting the disable cache checkbox

f) Start up Support Containers

sudo docker-compose -f docker-compose.ports.yml up -d shr-fhir opencr-fhir opencr-es kafka zookeeper

g) Configure Mediators
Open, examine, and edit the following files as needed, to update the IP address for OpenHIM and set the right passwords:

  • ./configs/opencr/config_ports.json
  • ./configs/shr/config_ports.json

Start up Mediators

sudo docker-compose -f docker-compose.ports.yml up -d shr opencr

Start up iSantePlus

sudo docker-compose -f docker-compose.ports.yml up -d isanteplus-mysql isanteplus

Start up SHR Streaming Pipeline

sudo docker-compose -f docker-compose.ports.yml up -d streaming-pipeline

4. Testing and Validation

Setup a Postman environment and run tests from this workspace: https://www.postman.com/itechuw/workspace/haiti-sedish

5. Domain-based setup

Follow section 3.2, but use the main docker-compose.yml file, so without the -f flag. Also, set up certificate generation like so:

SSL Certificate Generation & Refresh

Modify the configuration for the certbot entry in the docker-compose.yml file to match server settings. See the Certbot Docs for more information.

Here are example settings for the AWS setup:

  certbot:
    image: certbot/dns-route53
    container_name: certbot
    entrypoint: "certbot certonly -n --agree-tos --email <your-email> -d <your-domain> -d '*.<your-domain>' --dns-route53 --preferred-challenges=dns"
    environment:
    - AWS_ACCESS_KEY_ID
    - AWS_SECRET_ACCESS_KEY
    volumes:
    - certs:/etc/letsencrypt
    - letsencrypt:/var/lib/letsencrypt
    networks:
    - sedish

Then, run the following command:

sudo docker-compose up certbot

The certificates will be generated and provided to the other containers through a shared volume.