How to generate HL7 message?

6.1k Views Asked by At

I want to send the data of patient to the dcm4chee using the python code, Currently I am able to send the data to the modality worklist using the "MLLPClient" but I have HL7 message which is generated by the openMRS, can any one help to know that how can I generate custom HL7 message using the patient data in python (odoo).

2

There are 2 best solutions below

0
Jeenit khatri On BEST ANSWER

Here is the blog which helps me to create HL7 message.

https://msarfati.wordpress.com/2015/06/22/python-hl7-v2-x-and-hl7apy-hl7-construction-with-ormo01-and-orur01-part-2/

In this blog the given code for OBR segment, You need to do: OrderDetailGroup before adding and populating the OBR segment.

3
Henrique Amaral On

Maybe Hapi could help you: http://hl7api.sourceforge.net/hapi-testpanel/install.html . It generates HL7 messages and I guess it could build hL7 messages with your own data.

Good luck!