OpenMRS Interoperability
- 1 Lab Orders and Results exchange between OpenMRS and OpenELIS
- 1.1 Communication Overview
- 1.2 Intergration Between iSantéPlus and OPenELIS
- 1.2.1 iSantéPlus
- 1.2.2 OpenELIS Global 2.x
- 1.3 FHIR Based Intergration Between Openmrs 3.x and OPenELIS 2.6
- 1.3.1 Openmrs 3.x
- 1.3.2 OpenELIS Global 2.6.x
- 1.4 Required FHIR Resources
- 1.4.1 Task
- 1.4.2 ServiceRequest
- 1.4.3 DiagnosticReport
- 1.4.4 Observation
- 1.4.5 Patient
- 1.5 Relevant FHIR Docs
- 1.6 Relevant OpenMRS Talk Posts
Lab Orders and Results exchange between OpenMRS and OpenELIS
The Lab Order workflow between OpenELIS and OpenMRS will use the OpenMRS FHIR Workflow Module and suggested Communication Patterns to implement the ordering of lab tests from OpenMRS to OpenELIS and the returning the results to OpenMRS.
The current communication workflow uses HL7 V2.5.1 messages as documented here: (Result Reporting ). This functionality is implemented in openmrs-module-labintegration, an OpenMRS module made for an implementation of OpenMRS deployed in Haiti called iSantePlus.
Communication Overview
Intergration Between iSantéPlus and OPenELIS
iSantéPlus
Install iSantePlus using one of the following approaches:
Docker: GitHub - IsantePlus/isanteplus-docker: Dockerized iSantePlus EMR
Apache Tomcat WAR: SOP iSantePlus Installation.docx
Install the OpenMRS FHIR module using the following omod file: openmrs-module-fhir2.omod
Install the iSantePlus Lab on FHIR module using the following omod file: labonfhir-1.0.0-SNAPSHOT.omod
Restart iSantePlus
Start up the OpenELIS Update Task in System Administration
→ Advanced Administration
→ Scheduler
→ Manage Scheduler
OpenELIS Global 2.x
Install OpenELIS Global 2.x using the instructions HERE
Navigate to the "results reporting" configuration: https://IPforyourserver:8443/OpenELIS-Global/ResultReportingConfiguration
Move the radio button for Result Reporting to "Enable" and enter in the URL for the OpenMRS connection like in the example below.
Please note, the Test URL button may not respond to the FHIR module, so please disregard any errors if you click it.
Click Save at the bottom of the page.
FHIR Based Intergration Between Openmrs 3.x and OPenELIS 2.6
Openmrs 3.x
Setup OpenRMS 3.x on top an instance of the Refference Application see more
Load the Following Modules
FHIR2 module version >= 1.4.0
Lab on FHIR module
Configure the required settings .
labonfhir.openElisUrl
,The URL for the FHIR server where OpenELIS polls the Orders From.labonfhir.openElisUserUuid
,UUID for the service user that represents OpenELIS
see more on Configuring the above Modules.
Note: The Lab test Concept should be of class
Test
,and should be mapped to aLoinc code
that matches a theTest Loinc Code
in OpenELISGo to the Reff App (2.x) Patient Dashbord ,Go to Prescribed Medication Widget.
See more on Creating Orders using the Order Entry Owa.
If the Lab on FHIR module is rightly configured ,it will generate the lab FHIR Bundle and push to the remote Fhir Server for OpenELIS to poll the orders
Start the OpenELIS Pull Task ,to start polling for Lab Results via the Sheduler Interface
System Administration
→Advanced Administration
→Scheduler
→Manage Scheduler

To view the lab Results , Ensure you have the patient-test-results-app. Go to the Patient DashBoard in 3.x ui and click Test Results.
OpenELIS Global 2.6.x
The FHIR based Lab Workflow is supported in OpenELIS 2.6 .
Start an instance of OpenELIS with the following configuration properties set in the properties file.
org.openelisglobal.fhirstore.uri=<localFhirServerUrl>
. This is the Fhir Server that runs paralel with OPenELISorg.openelisglobal.remote.source.uri=<remoreFhirServerUr>
. This is the Fhir server that the Lab on FHIR module points to ie via thelabonfhir.openElisUrl
org.openelisglobal.remote.source.updateStatus=true
org.openelisglobal.remote.source.identifier=Practitioner/<userUuuid>
.This is the UUID of the user who created the Order ielabonfhir.openElisUserUuid
org.openelisglobal.task.useBasedOn=true
org.openelisglobal.fhir.subscriber=h<remoreFhirServerUrl>
.org.openelisglobal.fhir.subscriber.resources=Task,Patient,ServiceRequest,DiagnosticReport,Observation,Specimen,Practitioner,Encounter
Ensure OpenELIS has the test that maps to the same LOINC code as the test Concept in OpenMRS. This can be added via theAdmin page → Test Management → Add Tests
Configure OpenELIS to accept electronic order. Admin → Order Entry Configuration → external orders
Search for the Electronic Order ieOrder → Electronic Orders and then Complete the Order Note that the user should have the right Lab Unit Priviledges to complete the Order
After Results are captured and Validated , OpenELIS sends back the results to OpenMRS as a Diagnostic Report with an Observation
Required FHIR Resources
Task
The Task resource is created along with the corresponding ServiceRequest resource when a clinician creates a TestOrder and decides to send it to OpenELIS.
This resource is used to track the status of the lab order request from initiation to completion, and as a container for all other resources related to the given order.
Example Task:
{
"resourceType": "Task",
"id": "88ffa7fb-0419-4097-8b45-24f0d843c5ea",
"identifier": [
{
"system": "http://isanteplus.org/ext/task/identifier",
"value": "88ffa7fb-0419-4097-8b45-24f0d843c5ea"
}
],
"basedOn": [
{
"reference": "ServiceRequest/ebf83ba0-9d3c-497f-9aa0-d839ec506202",
"type": "ServiceRequest"
},
{
"reference": "ServiceRequest/73e96ecb-a78d-41c8-a55f-d9b90f759e5f",
"type": "ServiceRequest"
}
],
"status": "requested",
"intent": "order",
"for": {
"reference": "Patient/e14e9bda-d273-4c74-8509-5732a4ebaf19",
"type": "Patient"
},
"encounter": {
"reference": "Encounter/7f5aabd9-6375-47c8-a8d6-30f219b6e2f1",
"type": "Encounter"
},
"authoredOn": "2020-04-28T17:33:19+00:00",
"owner": {
"reference": "Practitioner/f9badd80-ab76-11e2-9e96-0800200c9a66",
"type": "Practitioner"
}
}
ServiceRequest
The ServiceRequest resource represents the TestOrder placed in OpenMRS. It is referenced from the Task with the Task.basedOn element, and sent to OpenELIS with the Task to initiate the processing of the order.
Example Service Request:
{
"resourceType": "ServiceRequest",
"id": "73e96ecb-a78d-41c8-a55f-d9b90f759e5f",
"status": "active",
"intent": "order",
"code": {
"coding": [
{
"code": "790AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
{
"system": "http://loinc.org",
"code": "14682-9"
},
{
"system": "urn:oid:2.16.840.1.113883.3.7201",
"code": "790"
}
]
},
"subject": {
"reference": "Patient/e14e9bda-d273-4c74-8509-5732a4ebaf19",
"type": "Patient"
},
"encounter": {
"reference": "Encounter/7f5aabd9-6375-47c8-a8d6-30f219b6e2f1",
"type": "Encounter"
}
}
DiagnosticReport
The DiagnosticReport resource is the container for the results of an Order, and holds these results in the DiagnosticReport.result element as references to Observation resources.
Example Diagnostic Report
Observation
The Observation resource contains the results of the Lab Order request.
Example Observation:
Patient
The Patient resource contains vital information for OpenELIS to fullfill the lab order request, and is referenced by the Task.
Example Patient:
Relevant FHIR Docs
Relevant OpenMRS Talk Posts
The handling and mapping of lab order status for the lab workflow