Overview
The aim of this project is to allow users to download OpenMRS data (encounters) as hl7 objects.
Initially, we will support only the export of encounters as ORUR01 objects.
- Users will be able to request to download either a single encounter or multiple encounters as a single ORUR01 message
- Something like /openmrs/hl7query/orur01?patient=uuidofpatient&encounter=uuidofencounter
- The ORUR01 message will contain the elements MSH, PV1, PID, OBR and OBX
- The PV1 and PID segments (and then the OBR/OBX) will repeat for each extra encounter included
- The hl7 message will be exported as a pipe delimited object
- The admin can define the exact elements, layout and flow of each different message type by creating groovy templates
- Groovy template is xml based
- The xml refers to exact fields in hl7
- HAPI is used to parse the xml into hl7
Documentation / How-To
For now, see OpenMRS HL7Query Module Design Page
...