How to send HL7 messages to the REST module via a POST request

73 views
Skip to first unread message

jayshree bhaktha

unread,
Jul 7, 2014, 12:19:41 PM7/7/14
to raxa-jss-em...@googlegroups.com
Hi,
   I am new to OpenMRS. By referring to HL7 Import Process i realized :

    1) To process the HL7 message,the HL7 message should be present in the Queue.
    2) The hl7 message can be added to the queue using REST module via POST request.

 I tried sending HL7 message as a simple JSON object using the TEST link on the OpenMRS REST web services to test out the module. I populated the fields of this page with the following data-

 

1.TYPE : POST

2. URI : /openmrs/ws/-standalone/ws/rest/v1/hl7

3. Body content :"{\"hl7\":\"MSH|^~\\&|FORMENTRY|AMRS.ELD|HL7LISTENER|AMRS.ELD|20110805104142||ORU^R01|REl7wt78q9Pzlqe9ecJB|P|2.5|1||||||||3^AMRS.ELD.FORMID\rPID|||3^^^^||Patient^John^D||\rPV1||O|1||||1|||||||||||||||||||||||||||||||||||||20110805|||||||V\rORC|RE||||||||20110805104141|1^Super User\rOBR|1|||1238^MEDICAL RECORD OBSERVATIONS^99DCT\rOBX|1|NM|5089^WEIGHT (KG)^99DCT||67.2|||||||||20110805\"}"

 

But I am getting "Internal Server Error"


Error Message:

error!

 msg: error

errorThrown: undefined

req: [object XMLHttpRequest]


I am not sure if my approach to send HL7 messages to the REST module via a POST request is right .

Please guide.

Thanks.

John Stoecker

unread,
Jul 7, 2014, 12:33:04 PM7/7/14
to raxa-jss-em...@googlegroups.com

Hi jay, I haven't used hl7. You may have better luck on the openmrs Dev mailing list.

--
You received this message because you are subscribed to the Google Groups "Raxa JSS EMR Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raxa-jss-emr-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jayshree bhaktha

unread,
Jul 7, 2014, 11:27:14 PM7/7/14
to raxa-jss-em...@googlegroups.com
Ok.
 
Thank you.
Reply all
Reply to author
Forward
0 new messages