Converting an Encounter into HL7

2 views
Skip to first unread message

Talha Ahmad Siddiqui

unread,
Jun 28, 2014, 10:59:50 AM6/28/14
to Developers
Hi

I am working on how to convert an encounter into an HL7 message. I have an encounter in my database with the uuid - f5ca12f2-fdcf-4f4a-8fea-8ba39130278e. 
I want to display/call this encounter in the form of an HL7 message in my module. How can this be done?

I followed the wiki for HL7 and it mentioned that we can use Rest Module and its HL7 resource. I tried using GET on this uuid but it is giving me error("Bad Request"- status 400). What is to be given as a uuid here? Does it require the uuid of the encounter or something else?

Thanks

Darius Jazayeri

unread,
Jun 30, 2014, 2:05:49 PM6/30/14
to dev
Hi Talha,

If you want to generate an HL7 representation of an encounter, I think you need the HL7 Query module. See https://modules.openmrs.org/#/show/55/hl7query (I've never used this module myself, and haven't looked at the documentation.)

OpenMRS REST web services can provide you a JSON or XML representation of an encounter through the encounter resource. The HL7 resource is for POSTing HL7 messages to OpenMRS.

-Darius


--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/

Reply all
Reply to author
Forward
0 new messages