Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- Host: 192.168.1.25:8081
- Authorization: Basic base64.encode(admin:Admin123)
- Content-Type: application/json
- Cache-Control: no-cache
- My HL7 Message:
- 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
- Doubt: Do I need to encode the separation betweeen the segments as \r or \r\n?
- Also, there is a space in OpenMRS ID...do I need to encode it or can I leave it like that?
- Is the format of my HL7 message correct (to create a patient in OpneMRS)
- Error Log (in the hl7_error_queue)
- a.uhn.hl7v2.HL7Exception: HL7 encoding not supported
- at org.openmrs.hl7.impl.HL7ServiceImpl.parseHL7String(HL7ServiceImpl.java:929)
- at [ignored] ...
- at com.sun.proxy.$Proxy210.parseHL7String(Unknown Source)
- at [ignored] ...
- at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
- at [ignored] ...
- at com.sun.proxy.$Proxy211.parseHL7String(Unknown Source)
- at org.openmrs.hl7.impl.HL7ServiceImpl.processHL7InQueue(HL7ServiceImpl.java:851)
- at [ignored] ...
- at com.sun.proxy.$Proxy210.processHL7InQueue(Unknown Source)
- at [ignored] ...
- at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
- at [ignored] ...
- at com.sun.proxy.$Proxy211.processHL7InQueue(Unknown Source)
- at org.openmrs.hl7.HL7InQueueProcessor.processHL7InQueue(HL7InQueueProcessor.java:62)
- at org.openmrs.hl7.HL7InQueueProcessor.processNextHL7InQueue(HL7InQueueProcessor.java:92)
- at org.openmrs.hl7.HL7InQueueProcessor.processHL7InQueue(HL7InQueueProcessor.java:111)
- at org.openmrs.scheduler.tasks.ProcessHL7InQueueTask.execute(ProcessHL7InQueueTask.java:53)
- at org.openmrs.scheduler.tasks.TaskThreadedInitializationWrapper.execute(TaskThreadedInitializationWrapper.java:68)
- at org.openmrs.scheduler.timer.TimerSchedulerTask.execute(TimerSchedulerTask.java:94)
- at org.openmrs.api.context.Daemon$2.run(Daemon.java:130)
- Caused by: ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message beginning MSH|^~\
- at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:183)
- at org.openmrs.hl7.impl.HL7ServiceImpl.parseHL7String(HL7ServiceImpl.java:926)
- ... 64 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement