Skip to content

Commit

Permalink
Merge pull request #285 from jembi/CU-86byatwb7_Add-FHIR-IG-Upload-ap…
Browse files Browse the repository at this point in the history
…p-to-platform

Add FHIR IG importer to platform
  • Loading branch information
bradsawadye committed May 7, 2024
2 parents 287b88b + 0074f29 commit d618d2f
Show file tree
Hide file tree
Showing 10 changed files with 569 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ packages:
- identity-access-manager-keycloak
- openhim-mapping-mediator
- database-postgres
- fhir-ig-importer

profiles:
- name: cdr-dw
Expand Down
14 changes: 14 additions & 0 deletions fhir-ig-importer/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3.9'

services:
fhir-ig-importer-mediator:
ports:
- target: 3001
published: 3333
mode: host

fhir-ig-importer-ui:
ports:
- target: 8080
published: 3000
mode: host
30 changes: 30 additions & 0 deletions fhir-ig-importer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3.9'

services:
fhir-ig-importer-mediator:
image: jembi/fhir-ig-importer-mediator:${FHIR_IG_IMPORTER_CORE_VERSION}
networks:
hapi-fhir:
openhim:
environment:
HAPI_FHIR_BASE_URL: ${HAPI_FHIR_BASE_URL}
HAPI_FHIR_INSTANCES: ${HAPI_FHIR_INSTANCES}
FHIR_IG_IMPORTER_CORE_PORT: ${FHIR_IG_IMPORTER_CORE_PORT}
FHIR_IG_IMPORTER_CORE_HOST: ${FHIR_IG_IMPORTER_CORE_HOST}

fhir-ig-importer-ui:
image: jembi/fhir-ig-importer-mediator-ui:${FHIR_IG_IMPORTER_UI_VERSION}
networks:
hapi-fhir:
openhim:
environment:
FHIR_IG_IMPORTER_CORE_URL: ${FHIR_IG_IMPORTER_CORE_URL}

networks:
hapi-fhir:
name: hapi-fhir_public
external: true
openhim:
name: openhim_public
external: true

41 changes: 41 additions & 0 deletions fhir-ig-importer/importer/docker-compose.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: '3.9'

services:
# container for executing config import scripts for creating the OpenHIM channels used by the Mediator
fhir-ig-importer-config-importer:
image: node:erbium-alpine
networks:
openhim:
default:
environment:
OPENHIM_API_USERNAME: ${OPENHIM_USERNAME}
OPENHIM_API_PASSWORD: ${OPENHIM_PASSWORD}
# Reject unauthorised is only needed if the OpenHIM's SSL is not setup
NODE_TLS_REJECT_UNAUTHORIZED: 0
command: sh -c "node openhimConfig.js"
configs:
- source: fhir-ig-importer-config-importer-openhimConfig.js
target: /openhimConfig.js
- source: fhir-ig-importer-config-importer-openhim-import.json
target: /openhim-import.json
deploy:
replicas: 1
restart_policy:
condition: none

configs:
fhir-ig-importer-config-importer-openhimConfig.js:
file: ./volume/openhimConfig.js
name: fhir-ig-importer-config-importer-openhimConfig.js-${fhir_ig_importer_config_importer_openhimConfig_js_DIGEST:?err}
labels:
name: fhir-ig-importer
fhir-ig-importer-config-importer-openhim-import.json:
file: ./volume/openhim-import.json
name: fhir-ig-importer-config-importer-openhim-import.json-${fhir_ig_importer_config_importer_openhim_import_js_DIGEST:?err}
labels:
name: fhir-ig-importer

networks:
openhim:
name: openhim_public
external: true
Loading

0 comments on commit d618d2f

Please sign in to comment.