The open mrs hl7query module
-
Upload
suranga-nath-kasthurirathne -
Category
Documents
-
view
483 -
download
0
description
Transcript of The open mrs hl7query module
![Page 1: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/1.jpg)
The OpenMRS HL7Query module
An introduction to the HLQuery module, its design and use
Suranga Nath Kasthurirathne
![Page 2: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/2.jpg)
Planning and designing Specific uses cases Design process
What the module currently supports Included hl7 message types / structure
Configuring the module How the module can be extended /
modified Demo
What we’ll cover
![Page 3: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/3.jpg)
A means of exporting OpenMRS data Translates OpenMRS data into hl7
messages Asynchronous Supports both pipe delimited and xml
based hl7 messages Groovyscript to design message
structure
What, how and why
![Page 4: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/4.jpg)
No universally agreed approach to export hl7 from OpenMRS
Jembi Health Systems needed this requirement
No two people agreed on the same hl7 to OpenMRS data mapping
Needed to support multiple message types
Why ?
![Page 5: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/5.jpg)
HL7 message structure Messages broken down into segments
Some segments are mandatory, some are not
Some segments can be repeated, others cant
All depends on your definition of ‘what's correct’ How stringent do you want your
message to be ?
Design
![Page 6: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/6.jpg)
How did we do this ? Create templates per each segment Introduce a template hierarchy Parent templates can call child templates Parent templates decide hl7 message
structure Child templates decide message contents
(data)
Design cont.…
![Page 7: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/7.jpg)
Please refer to https://wiki.openmrs.org/display/projects/ORU_R01+Specification+for+the+hL7output+Module
Example ORUR01 template calls the PID
template. PID template may call PID.3 once or
many times You can even introduce your own PID
or PID.3 templates !
Template hierarchy cont.…
![Page 8: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/8.jpg)
Supports integration with mirth Module creates message, and hands it
over to you Users can integrate Mirth for routing
these messages (if you want to)
Why don’t we provide Mirth as default ? We DON’T want a dependency on Mirth
Why not Mirth ?
![Page 9: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/9.jpg)
Required OpenMRS 1.8.2 or higher Edit global properties
MSH data fields Name of parent template you’re
using Set implementation Id
Used to export concepts without any mappings
Setting up the module
![Page 10: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/10.jpg)
OpenMRS HL7Query Module
Demonstration
![Page 11: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/11.jpg)
ORUR01 messages represent medical observations
They are supported by default In OpenMRS-speak, ORUR01
represent encounters and observations
Single request can contain one or many encounters
Querying for ORUR01 messages
![Page 12: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/12.jpg)
patientId idTypeUuid encounterUuid startDate endDate
None of these parameters are mandatory !
Sample query parameters
![Page 13: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/13.jpg)
Wiki : https://wiki.openmrs.org/display/docs/HL7Query+Module
Jira : https://tickets.openmrs.org/browse/HLQRY
Git: https://github.com/openmrs/openmrs-module-hl7query
Resources
![Page 14: The open mrs hl7query module](https://reader036.fdocuments.net/reader036/viewer/2022082804/5479cd0eb4af9f1c3f8b4613/html5/thumbnails/14.jpg)
Thank you !