From: Rishi B. <ris...@ii...> - 2014-07-12 21:51:27
|
I am trying to encode an HL7 message of the type ORU_R01 using the HAPI 2.0 library. I have followed the tutorials given in the HAPI documentation and according to that, I have populated the required fields of the ORU_R01 message. Now, I want to post this message using the following link: http://localhost:8080/openmrs/remotecommunication/postHl7.form I am using the following message for testing: MSH|^~\\&|TestSendingSystem|OpenMRS|PAMSimulator|IHE|20140713015152||ORU^R01|20140713015152|P|2.5|1 PID|||1 OBR|1||1234^SensorReading|88304 OBX|0|NM|1||a OBX|1|NM|2||b OBX|2|NM|3||c I have properly ensured that all the parameters are correct. Once I have posted the HL7 message, I start the HL7 task from the scheduler. Then I go to the admin page and click on "Manage HL7 errors" in order to see if the message arrives there. I get the following stack trace: ca.uhn.hl7v2.HL7Exception: HL7 encoding not supported ... Caused by: ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message beginning MSH|^~\ at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:140). (The full stack trace is here: http://pastebin.com/ZnbFqfWC). What could the error be? -- Regards, Rishi Baijal. 2012084. |