Advertisement
svundamati

hl7_attempt2

Jul 27th, 2015
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. POST /openmrs-standalone/remotecommunication/postHl7.form?source=LOCAL&sourceKey=test&hl7Message=MSH|^~\&|FORMENTRY|AMRS|HL7LISTENER|AMRS|20150723110101||ADT^A28|AMRS20150723110101|P|2.5|1|||||||| EVN|A28|20150723110101|||1 PID|||1003D1^^^OpenMRS ID||ANKITHA^SAKHAIRE||19650529|F|||70-1C-8^02^Kakinada^Andhra||||||||||||||||20371|^^||N&username=admin&password=Admin123 HTTP/1.1
  2. Host: 192.168.1.25:8081
  3. Authorization: Basic base64.encode(admin:Admin123)
  4. Content-Type: application/json
  5. Cache-Control: no-cache
  6.  
  7. My HL7 Message:
  8. MSH|^~\&|FORMENTRY|AMRS|HL7LISTENER|AMRS|20150723110101||ADT^A28|AMRS20150723110101|P|2.5|1|||||||| EVN|A28|20150723110101|||1 PID|||1003D1^^^OpenMRS ID||ANKITHA^SAKHAIRE||19650529|F|||70-1C-8^02^Kakinada^Andhra||||||||||||||||20371|^^||N&username=admin&password=Admin123 HTTP/1.1
  9.  
  10. Doubt: Do I need to encode the separation betweeen the segments as \r or \r\n?
  11. Also, there is a space in OpenMRS ID...do I need to encode it or can I leave it like that?
  12. Is the format of my HL7 message correct (to create a patient in OpneMRS)
  13.  
  14. Error Log (in the hl7_error_queue)
  15. a.uhn.hl7v2.HL7Exception: HL7 encoding not supported
  16. at org.openmrs.hl7.impl.HL7ServiceImpl.parseHL7String(HL7ServiceImpl.java:929)
  17. at [ignored] ...
  18. at com.sun.proxy.$Proxy210.parseHL7String(Unknown Source)
  19. at [ignored] ...
  20. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  21. at [ignored] ...
  22. at com.sun.proxy.$Proxy211.parseHL7String(Unknown Source)
  23. at org.openmrs.hl7.impl.HL7ServiceImpl.processHL7InQueue(HL7ServiceImpl.java:851)
  24. at [ignored] ...
  25. at com.sun.proxy.$Proxy210.processHL7InQueue(Unknown Source)
  26. at [ignored] ...
  27. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
  28. at [ignored] ...
  29. at com.sun.proxy.$Proxy211.processHL7InQueue(Unknown Source)
  30. at org.openmrs.hl7.HL7InQueueProcessor.processHL7InQueue(HL7InQueueProcessor.java:62)
  31. at org.openmrs.hl7.HL7InQueueProcessor.processNextHL7InQueue(HL7InQueueProcessor.java:92)
  32. at org.openmrs.hl7.HL7InQueueProcessor.processHL7InQueue(HL7InQueueProcessor.java:111)
  33. at org.openmrs.scheduler.tasks.ProcessHL7InQueueTask.execute(ProcessHL7InQueueTask.java:53)
  34. at org.openmrs.scheduler.tasks.TaskThreadedInitializationWrapper.execute(TaskThreadedInitializationWrapper.java:68)
  35. at org.openmrs.scheduler.timer.TimerSchedulerTask.execute(TimerSchedulerTask.java:94)
  36. at org.openmrs.api.context.Daemon$2.run(Daemon.java:130)
  37. Caused by: ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message beginning MSH|^~\
  38. at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:183)
  39. at org.openmrs.hl7.impl.HL7ServiceImpl.parseHL7String(HL7ServiceImpl.java:926)
  40. ... 64 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement