Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform beta release #298

Merged
merged 10 commits into from
May 21, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"inputTransforms": {
"total": "$count(lookupRequests.jempiSearchAll.data.goldenRecords)",
"entry": "$map(lookupRequests.jempiSearchAll.data.goldenRecords, function($v) {{'fullUrl': 'Patient/' & $v.goldenId, 'resource': {'resourceType': 'Patient','id': $v.goldenId,'name': {'given': [$v.demographicData.givenName],'family': $v.demographicData.familyName},'address': [{'city': $v.demographicData.city}],'birthDate': $v.demographicData.dob,'telecom': [{'value': $v.demographicData.phoneNumber,'system': 'phone'}],'identifier': [{'system': $v.sourceId.facility,'value': $v.sourceId.patient},{'system': 'NationalID','value': $v.demographicData.nationalId}],'gender': $v.demographicData.gender}}})"
"entry": "$append([], $map(lookupRequests.jempiSearchAll.data.goldenRecords, function($v) {{'fullUrl': 'Patient/' & $v.goldenId, 'resource': {'resourceType': 'Patient','id': $v.goldenId,'name': {'given': [$v.demographicData.givenName],'family': $v.demographicData.familyName},'address': [{'city': $v.demographicData.city}],'birthDate': $v.demographicData.dob,'telecom': [{'value': $v.demographicData.phoneNumber,'system': 'phone'}],'identifier': [{'system': $v.sourceId.facility,'value': $v.sourceId.patient},{'system': 'NationalID','value': $v.demographicData.nationalId}],'gender': $v.demographicData.gender}}}))"
},
"inputMapping": {
"constants.resourceType": "resourceType",
Expand Down
3 changes: 2 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ profiles:
- openhim-mapping-mediator
- kafka-mapper-consumer
- kafka-unbundler-consumer
- fhir-ig-importer
- reprocess-mediator
envFiles:
- cdr-dw.env

Expand Down Expand Up @@ -75,4 +77,3 @@ profiles:
- openhim-mapping-mediator
envFiles:
- mpi.env

2 changes: 1 addition & 1 deletion fhir-ig-importer/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ services:
fhir-ig-importer-ui:
ports:
- target: 8080
published: 3000
published: 3334
mode: host
2 changes: 2 additions & 0 deletions fhir-ig-importer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
networks:
hapi-fhir:
openhim:
default:
environment:
HAPI_FHIR_BASE_URL: ${HAPI_FHIR_BASE_URL}
HAPI_FHIR_INSTANCES: ${HAPI_FHIR_INSTANCES}
Expand All @@ -27,4 +28,5 @@ networks:
openhim:
name: openhim_public
external: true
default:

1 change: 1 addition & 0 deletions fhir-ig-importer/importer/docker-compose.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ networks:
openhim:
name: openhim_public
external: true
default:
2 changes: 1 addition & 1 deletion fhir-ig-importer/importer/volume/ig-importer-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "FHIR IG microfrontend app",
"category": "HIE Configuration",
"type": "esmodule",
"url": "http://localhost:3000/jembi-fhir-ig-importer.js",
"url": "http://localhost:3334/jembi-fhir-ig-importer.js",
"showInPortal": true,
"showInSideBar": true,
"access_roles": ["admin"],
Expand Down
4 changes: 2 additions & 2 deletions fhir-ig-importer/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"FHIR_IG_IMPORTER_CORE_PORT": 3001,
"FHIR_IG_IMPORTER_CORE_HOST": "0.0.0.0",
"FHIR_IG_IMPORTER_CORE_URL": "http://0.0.0.0:3001/fhir/ig/v1.0",
"FHIR_IG_IMPORTER_UI_VERSION": "0.1.0",
"FHIR_IG_IMPORTER_CORE_VERSION": "1.0.0"
"FHIR_IG_IMPORTER_UI_VERSION": "v1.0.0",
"FHIR_IG_IMPORTER_CORE_VERSION": "v1.0.0"
}
}
4 changes: 2 additions & 2 deletions interoperability-layer-openhim/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"type": "infrastructure",
"dependencies": [],
"environmentVariables": {
"OPENHIM_CORE_IMAGE": "jembi/openhim-core:microfrontends-3.0.0-beta",
"OPENHIM_CONSOLE_IMAGE": "jembi/openhim-console:v1.18.2",
"OPENHIM_CORE_IMAGE": "jembi/openhim-core:v8.4.3",
"OPENHIM_CONSOLE_IMAGE": "jembi/openhim-console:poc-microfrontend",
"MONGO_IMAGE": "mongo:4.2",
"AWAIT_HELPER_IMAGE": "jembi/await-helper:1.0.1",
"MONGO_1_PLACEMENT": "node-1",
Expand Down
1 change: 1 addition & 0 deletions kafka-mapper-consumer/docker-compose.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ networks:
openhim:
name: openhim_public
external: true
default:
7 changes: 6 additions & 1 deletion kafka-mapper-consumer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ services:
networks:
clickhouse:
kafka:

openhim:
default:
kafka-mapper-consumer-ui:
image: ${KAFKA_CONSUMER_MAPPER_UI_VERSION}
networks:
Expand All @@ -41,3 +42,7 @@ networks:
kafka:
name: kafka_public
external: true
openhim:
name: openhim_public
external: true
default:
4 changes: 2 additions & 2 deletions kafka-mapper-consumer/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"REGISTER_MEDIATOR": "true",
"CLICKHOUSE_HOST": "analytics-datastore-clickhouse",
"CLICKHOUSE_PORT": "8123",
"KAFKA_CONSUMER_MAPPER_MEDIATOR_VERSION": "jembi/kafka-mapper-consumer:0.1.0",
"KAFKA_CONSUMER_MAPPER_UI_VERSION": "jembi/kafka-mapper-consumer-ui:0.1.1-alpha"
"KAFKA_CONSUMER_MAPPER_MEDIATOR_VERSION": "jembi/kafka-mapper-consumer:v0.0.1",
"KAFKA_CONSUMER_MAPPER_UI_VERSION": "jembi/kafka-mapper-consumer-ui:v0.0.1"
}
}
2 changes: 1 addition & 1 deletion mpi-mediator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.9'

services:
mpi-mediator:
image: jembi/mpi-mediator:v2.1.1
image: jembi/mpi-mediator:v2.2.0
networks:
openhim:
kafka:
Expand Down
31 changes: 8 additions & 23 deletions mpi-mediator/importer/volume/openhim-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"surname": "User",
"email": "[email protected]",
"provider": "token",
"groups": [
"admin"
],
"groups": ["admin"],
"passwordAlgorithm": "sha512",
"passwordHash": "ea3824f17cf1379eb118a36bc7c8cf0f45712e2af7748567fca5313dec6fa66d61064e82a5e5cb88e998486ee3c7d0dac235bbeda8c341d6edc1c77406be2ab6",
"passwordSalt": "d4f622c0404f09bd959bfb263efa3452",
Expand All @@ -21,9 +19,7 @@
{
"clientID": "test",
"name": "Test Client",
"roles": [
"instant"
],
"roles": ["instant"],
"customTokenID": "test"
}
],
Expand Down Expand Up @@ -98,7 +94,7 @@
"urlPattern": "^/fhir.*$",
"methods": ["GET", "POST"],
"type": "http",
"priority": null,
"priority": 2,
"tcpPort": null,
"tcpHost": null,
"pollingSchedule": null,
Expand Down Expand Up @@ -147,19 +143,15 @@
{
"name": "MPI Orchestration for fhir bundles - Asynchronous flow",
"urlPattern": "^/async/fhir/?$",
"methods": [
"POST"
],
"methods": ["POST"],
"type": "http",
"priority": null,
"tcpPort": null,
"tcpHost": null,
"pollingSchedule": null,
"requestBody": true,
"responseBody": true,
"allow": [
"instant"
],
"allow": ["instant"],
"whitelist": [],
"authType": "private",
"routes": [
Expand Down Expand Up @@ -240,9 +232,7 @@
"pollingSchedule": null,
"requestBody": true,
"responseBody": true,
"allow": [
"instant"
],
"allow": ["instant"],
"whitelist": [],
"authType": "private",
"routes": [
Expand Down Expand Up @@ -328,14 +318,9 @@
{
"name": "MPI mediator",
"urlPattern": "^(/async)?/fhir.*$",
"methods": [
"POST",
"GET"
],
"methods": ["POST", "GET"],
"type": "http",
"allow": [
"instant"
],
"allow": ["instant"],
"whitelist": [],
"authType": "private",
"routes": [
Expand Down
2 changes: 1 addition & 1 deletion reprocess-mediator/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
reprocess-mediator:
ports:
- target: 3000
published: 3000
published: 3335
mode: host

reprocess-mediator-ui:
Expand Down
32 changes: 16 additions & 16 deletions reprocess-mediator/package-metadata.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"id": "reprocess-mediator",
"name": "Reprocess Mediator",
"description": "A mediator that allows for configuring and reprocessing of transactions",
"type": "use-case",
"version": "1.4.2",
"dependencies": ["interoperability-layer-openhim"],
"environmentVariables": {
"TRUST_SELF_SIGNED": "true",
"OPENHIM_MEDIATOR_URL": "https://openhim-core:8080",
"OPENHIM_USERNAME": "[email protected]",
"OPENHIM_PASSWORD": "instant101",
"REGISTER_MEDIATOR": "true",
"REPROCESSOR_API_BASE_URL": "http://reprocess-mediator:3000",
"REPROCESS_CORE_VERSION": "latest",
"REPROCESS_UI_VERSION": "latest"
}
"id": "reprocess-mediator",
"name": "Reprocess Mediator",
"description": "A mediator that allows for configuring and reprocessing of transactions",
"type": "use-case",
"version": "1.4.2",
"dependencies": ["interoperability-layer-openhim"],
"environmentVariables": {
"TRUST_SELF_SIGNED": "true",
"OPENHIM_MEDIATOR_URL": "https://openhim-core:8080",
"OPENHIM_USERNAME": "[email protected]",
"OPENHIM_PASSWORD": "instant101",
"REGISTER_MEDIATOR": "true",
"REPROCESSOR_API_BASE_URL": "http://reprocess-mediator:3000",
"REPROCESS_CORE_VERSION": "v0.1.0",
"REPROCESS_UI_VERSION": "v0.1.0"
}
}
8 changes: 4 additions & 4 deletions test/cucumber/features/single-mode/kafka-packages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Feature: Kafka and its dependent packages?
And There should be 1 volumes

Scenario: Init Kafka Mapper Consumer
Given I use parameters "package init -n=kafka-mapper-consumer --only --dev --env-file=.env.local"
Given I use parameters "package init -n=interoperability-layer-openhim,kafka-mapper-consumer --only --dev --env-file=.env.local"
When I launch the platform with params
Then The service "kafka-mapper-consumer" should be started with 1 replica
And The service "kafka-mapper-consumer" should be connected to the networks
| clickhouse_public | kafka_public |
| clickhouse_public | kafka_public | openhim_public |

Scenario: Init Message Bus Kafka
Given I use parameters "package init -n=kafka-unbundler-consumer --only --dev --env-file=.env.local"
Expand All @@ -32,7 +32,7 @@ Feature: Kafka and its dependent packages?
| kafka_public |

Scenario: Destroy Kafka and its dependent packages
Given I use parameters "package destroy -n=kafka-mapper-consumer,kafka-unbundler-consumer --dev --env-file=.env.local"
Given I use parameters "package destroy -n=kafka-mapper-consumer,kafka-unbundler-consumer,interoperability-layer-openhim --dev --env-file=.env.local"
When I launch the platform with params
And The service "kafka-01" should be removed
And The service "kafdrop" should be removed
Expand All @@ -43,4 +43,4 @@ Feature: Kafka and its dependent packages?
And There should be 0 volume
And There should be 0 config
And There should not be network
| kafka_public | clickhouse_public | prometheus_public |
| kafka_public | clickhouse_public | prometheus_public | openhim_public |
Loading
Loading