Skip to content

Commit

Permalink
Use new version of MPI mediator and update the openhim channels
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsawadye committed Feb 23, 2024
1 parent cb8acc5 commit 2047568
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 82 deletions.
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:v1.1.1
image: jembi/mpi-mediator:v2.0.0
networks:
openhim:
kafka:
Expand Down
248 changes: 167 additions & 81 deletions mpi-mediator/importer/volume/openhim-import.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"Users": [
{
"groups": [
"admin"
],
"firstname": "Super",
"surname": "User",
"email": "[email protected]",
"provider": "token",
"groups": [
"admin"
],
"passwordAlgorithm": "sha512",
"passwordHash": "ea3824f17cf1379eb118a36bc7c8cf0f45712e2af7748567fca5313dec6fa66d61064e82a5e5cb88e998486ee3c7d0dac235bbeda8c341d6edc1c77406be2ab6",
"passwordSalt": "d4f622c0404f09bd959bfb263efa3452",
Expand All @@ -18,136 +19,235 @@
],
"Clients": [
{
"clientID": "test",
"name": "Test Client",
"roles": [
"instant"
],
"customTokenID": "test",
"clientID": "test",
"name": "Test Client"
"customTokenID": "test"
}
],
"Channels": [
{
"name": "JeMPI Patient endpoints in fhir",
"description": "JeMPI Patient endpoints in fhir format",
"urlPattern": "^/fhir/Patient.*$",
"methods": [
"GET",
"POST"
"POST",
"DELETE",
"PUT",
"OPTIONS",
"HEAD",
"TRACE",
"CONNECT",
"PATCH"
],
"type": "http",
"tcpPort": null,
"tcpHost": null,
"pollingSchedule": null,
"requestBody": true,
"responseBody": true,
"allow": [
"instant"
"test"
],
"whitelist": [],
"authType": "private",
"matchContentTypes": [],
"properties": [],
"txViewAcl": [],
"txViewFullAcl": [],
"txRerunAcl": [],
"status": "enabled",
"rewriteUrls": false,
"addAutoRewriteRules": true,
"autoRetryEnabled": false,
"autoRetryPeriodMinutes": 60,
"routes": [
{
"name": "Generic Mapping Mediator",
"type": "http",
"status": "enabled",
"forwardAuthHeader": false,
"name": "MPI Mediator",
"secured": false,
"host": "mpi-mediator",
"port": 3000,
"host": "openhim-mapping-mediator",
"port": 3003,
"path": "",
"pathTransform": "",
"primary": true,
"username": "",
"password": ""
"password": "",
"forwardAuthHeader": true,
"waitPrimaryResponse": false,
"statusCodesCheck": "2**"
}
],
"requestBody": true,
"responseBody": true,
"rewriteUrlsConfig": [],
"name": "MPI Orchestrations - Create/Read operations for patients and their clinical data",
"urlPattern": "^/fhir.*$",
"priority": null,
"matchContentTypes": [],
"matchContentRegex": null,
"matchContentXpath": null,
"matchContentValue": null,
"matchContentJson": null,
"pollingSchedule": null,
"tcpHost": null,
"tcpPort": null,
"matchContentValue": null,
"properties": [],
"txViewAcl": [],
"txViewFullAcl": [],
"txRerunAcl": [],
"alerts": [],
"status": "disabled",
"rewriteUrls": false,
"addAutoRewriteRules": true,
"rewriteUrlsConfig": [],
"autoRetryEnabled": false,
"autoRetryPeriodMinutes": 60,
"updatedBy": {
"id": "63cd5092c962240014b87c59",
"id": "65d47e98223a0672c3c9808b",
"name": "Super User"
},
"alerts": [],
"description": ""
}
},
{
"name": "MPI Orchestrations - Create/Read operations for patients and their clinical data",
"description": "",
"urlPattern": "^/fhir.*$",
"methods": [
"GET",
"POST"
],
"type": "http",
"priority": null,
"tcpPort": null,
"tcpHost": null,
"pollingSchedule": null,
"requestBody": true,
"responseBody": true,
"allow": [
"instant"
],
"whitelist": [],
"authType": "private",
"routes": [
{
"name": "MPI Mediator",
"type": "http",
"status": "enabled",
"secured": false,
"host": "mpi-mediator",
"port": 3000,
"path": "",
"pathTransform": "",
"primary": true,
"username": "",
"password": "",
"forwardAuthHeader": false
}
],
"matchContentTypes": [],
"matchContentRegex": null,
"matchContentXpath": null,
"matchContentJson": null,
"matchContentValue": null,
"properties": [],
"txViewAcl": [],
"txViewFullAcl": [],
"txRerunAcl": [],
"alerts": [],
"status": "enabled",
"rewriteUrls": false,
"addAutoRewriteRules": true,
"rewriteUrlsConfig": [],
"autoRetryEnabled": false,
"autoRetryPeriodMinutes": 60,
"updatedBy": {
"id": "63cd5092c962240014b87c59",
"id": "65d47e98223a0672c3c9808b",
"name": "Super User"
},
}
},
{
"name": "MPI Orchestration for fhir bundles - Asynchronous flow",
"urlPattern": "^/async/fhir/?$",
"methods": [
"POST"
],
"type": "http",
"priority": null,
"tcpPort": null,
"tcpHost": null,
"pollingSchedule": null,
"requestBody": true,
"responseBody": true,
"allow": [
"instant"
],
"whitelist": [],
"authType": "private",
"routes": [
{
"name": "MPI Mediator",
"type": "http",
"status": "enabled",
"forwardAuthHeader": false,
"name": "MPI Mediator",
"secured": false,
"host": "mpi-mediator",
"port": 3000,
"path": "",
"pathTransform": "",
"primary": true,
"username": "",
"password": ""
"password": "",
"forwardAuthHeader": false
}
],
"requestBody": true,
"responseBody": true,
"rewriteUrlsConfig": [],
"urlPattern": "^/async/fhir/?$",
"priority": null,
"matchContentTypes": [],
"matchContentRegex": null,
"matchContentXpath": null,
"matchContentValue": null,
"matchContentJson": null,
"pollingSchedule": null,
"tcpHost": null,
"tcpPort": null,
"matchContentValue": null,
"properties": [],
"txViewAcl": [],
"txViewFullAcl": [],
"txRerunAcl": [],
"alerts": [],
"name": "MPI Orchestration for fhir bundles - Asynchronous flow"
"status": "enabled",
"rewriteUrls": false,
"addAutoRewriteRules": true,
"rewriteUrlsConfig": [],
"autoRetryEnabled": false,
"autoRetryPeriodMinutes": 60,
"updatedBy": {
"id": "65d47e98223a0672c3c9808b",
"name": "Super User"
}
}
],
"Mediators": [
{
"urn": "urn:mediator:generic_mapper",
"version": "3.2.0",
"name": "Mapping Mediator",
"description": "Generic OpenHIM Mapping Mediator",
"endpoints": [
{
"name": "Generic Mapping Mediator",
"type": "http",
"status": "enabled",
"host": "localhost",
"port": 3003,
"forwardAuthHeader": false
}
],
"defaultChannelConfig": [],
"configDefs": [],
"_lastHeartbeat": "2024-02-22T16:09:57.075Z",
"_uptime": 101055.747901311
},
{
"urn": "urn:mediator:mpi-mediator",
"version": "1.0.0",
"name": "MPI mediator",
"description": "A mediator handling interactions between the OpenHIM Core service, Sante MPI, Hapi-FHIR, and Kafka",
"endpoints": [
{
"name": "MPI Endpoint",
"type": "http",
"status": "enabled",
"host": "mpi-mediator",
"port": 3000,
"path": "/fhir",
"primary": true,
"forwardAuthHeader": false
}
],
"defaultChannelConfig": [
{
"name": "MPI mediator",
"urlPattern": "^(/async)?/fhir.*$",
"methods": [
"POST",
"GET"
Expand All @@ -158,48 +258,34 @@
],
"whitelist": [],
"authType": "private",
"matchContentTypes": [],
"properties": [],
"txViewAcl": [],
"txViewFullAcl": [],
"txRerunAcl": [],
"status": "enabled",
"rewriteUrls": false,
"addAutoRewriteRules": true,
"autoRetryEnabled": false,
"autoRetryPeriodMinutes": 60,
"name": "MPI mediator",
"urlPattern": "^(/async)?/fhir.*$",
"routes": [
{
"name": "MPI Endpoint",
"type": "http",
"status": "enabled",
"forwardAuthHeader": false,
"name": "MPI Endpoint",
"host": "mpi-mediator",
"port": 3000,
"primary": true
"primary": true,
"forwardAuthHeader": false
}
],
"matchContentTypes": [],
"properties": [],
"txViewAcl": [],
"txViewFullAcl": [],
"txRerunAcl": [],
"alerts": [],
"rewriteUrlsConfig": []
}
],
"endpoints": [
{
"type": "http",
"status": "enabled",
"forwardAuthHeader": false,
"name": "MPI Endpoint",
"host": "mpi-mediator",
"path": "/fhir",
"port": 3000,
"primary": true
"rewriteUrls": false,
"addAutoRewriteRules": true,
"rewriteUrlsConfig": [],
"autoRetryEnabled": false,
"autoRetryPeriodMinutes": 60
}
],
"configDefs": [],
"_lastHeartbeat": "2023-01-23T09:40:21.368Z",
"_uptime": 52784.4956787
"_lastHeartbeat": "2024-02-22T16:09:55.511Z",
"_uptime": 4490.494161057
}
],
"ContactGroups": []
Expand Down

0 comments on commit 2047568

Please sign in to comment.