An OpenHIM mediator for handling system integration between eLMIS and EMR systems.
- Java 1.8
- IntelliJ or Visual Studio Code
- Maven 3.6.3
The configuration parameters specific to the mediator and destination system can be found at
src/main/resources/mediator.properties
# Mediator Properties
mediator.name=eLMIS-to-EMR-Mediator
mediator.host=localhost
mediator.port=3106
mediator.timeout=60000
mediator.heartbeats=true
core.host=localhost
core.api.port=8080
[email protected]
core.api.password=openhim-password
The configuration parameters specific to the mediator and the mediator's metadata can be found at
src/main/resources/mediator-registration-info.json
{
"urn": "urn:uuid:0d32b3e0-45d5-11ec-ad0a-3bccdeca8e69",
"version": "0.1.0",
"name": "eLMIS to EMR Mediator",
"description": "A mediator for handling system integration between EMR and eLMIS",
"endpoints": [
{
"name": "eLMIS to EMR Mediator Route",
"host": "localhost",
"port": "3106",
"path": "/rnr-status",
"type": "http"
}
],
"defaultChannelConfig": [
{
"name": "eLMIS to EMR Mediator",
"urlPattern": "^/rnr-status$",
"type": "http",
"allow": ["elmis-role"],
"routes": [
{
"name": "eLMIS to EMR Mediator Route",
"host": "localhost",
"port": "3106",
"path": "/rnr-status",
"type": "http",
"primary": "true"
}
]
}
]
}
To build and run the mediator after performing the above configurations, run the following
mvn clean package -DskipTests=true -e source:jar javadoc:jar
java -jar target/emr-mediator-elmis-<version>-jar-with-dependencies.jar