web stats
Garbage Port Quick Question - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2019, 12:35 PM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 905
StickyBandit is on a distinguished road
Wink Garbage Port Quick Question

If we send the following garbage text to our HL7 port channel....

Testing port 7777

We get back this response....

MSHting tMIRTHtt 7777tt20190108142856ttACKiiACKt20190108142856tPt2. 4
MSAtAEt1tNull response was received.
ERRtMSH^^4^0


Is there a way to make the response better?

(I get that it is using the 4 thru 8 characters as the HL7 chars.)

Last edited by StickyBandit; 01-08-2019 at 12:40 PM.
Reply With Quote
  #2  
Old 01-08-2019, 02:12 PM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 905
StickyBandit is on a distinguished road
Default

The only solution I can think of is to
write code to put back the Normal Default Special Characters when
there was no "MSH|^~\&" at the beginning of the message.
Reply With Quote
  #3  
Old 02-14-2019, 10:48 AM
StickyBandit's Avatar
StickyBandit StickyBandit is offline
Mirth Guru
 
Join Date: Aug 2013
Location: Home Alone
Posts: 905
StickyBandit is on a distinguished road
Wink Resolved!

//I resolved this issue by adding this code inside the channel preprocessor.


if(!message.trim().startsWith("MSH")) {
message="MSH|^~\\&|"+message;
}
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation