web stats
TCP Listener Missing Final Carriage Return - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2014, 12:44 PM
reb reb is offline
What's HL7?
 
Join Date: Jan 2014
Posts: 2
reb is on a distinguished road
Default TCP Listener Missing Final Carriage Return

I have a TCP Listener that I am utilizing and we are missing the final carriage return at the end of the message. so my messages all run together on the same line. What are the options for handling this.

MSH|^~\&|Aprima|PRM|iMedica|PRM|20140116000020||AD T^A31|2218910|P|2.3
PID||430860|430860|430860|Test^Dummy^M^^|^|1111111 1|M||2131-1|566 Emerson Rd^^Sedalia^KY^42079^||2703822104^^^|8125689080|^E nglish|||430860|401132493||||||||||
PV1||O|^^^3||||1200^Gupton^Emily^^DO^^^^
GT1||430860|Alderdice^John^M^^||566 Emerson Rd^^Sedalia^KY^42079^|2703822104|8125689080|197405 03|M||Self|401132493|||||^^^^^|||||||||||||||||||| ||||||||||||||Self^^
IN1|1|||WellCare|^^^^^||8773899457||||||||WellCare |Alderdice^John^M^^|Self|19740503|566 Emerson Rd^^Sedalia^KY^42079^|||1||||||||||||||14473120||| |||^|M|^^^^^MSH|^~\&|Aprima|PRM|iMedica|PRM|201401 16000046||ADT^A31|2218911|P|2.3
PID||484768|484768|484768|Ryan^William^D^^|^|20090 709|M||2131-1|111 Rippling Creek^^Murray^KY^42071^||2707536655^^^|2702938058| ^English|||484768|||||||||||
PV1||O|^^^3||||13^Adams^Thomas M^^MD^^^^
GT1||23477|Ryan^Amber^P^^||111 Rippling Creek^^Murray^KY^42071^|2707536655|2702938058|1981 0427|F||Child||||||^^^^^|||||||||||||||||||||||||| ||||||||^^
IN1|1|1017|1017|Anthem Blue Card Po 105187|P O Box 105187^^Atlanta^GA^30348^|||80860|||||||Anthem Blue Card Po 105187|Ryan^Amber^P^^|Child|19810427|111 Rippling Creek^^Murray^KY^42071^|||1||||||||||||||STTS00216 692|25.0000|||||^|F|^^^^^
Attached Files
File Type: xml PCMC Demos.xml (5.4 KB, 2 views)
File Type: txt PCMC Demos.txt (1.2 KB, 5 views)
Reply With Quote
  #2  
Old 01-16-2014, 02:41 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

You can use one channel to read in the message via TCP, and then manually split the message up in a transformer and route multiple messages to a downstream channel using router.routeMessage().
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 01-17-2014, 04:24 AM
reb reb is offline
What's HL7?
 
Join Date: Jan 2014
Posts: 2
reb is on a distinguished road
Default TCP Listener

I am very new to Mirth and I am not sure how to use the Transformer and Router.

Do you have a channel that you can upload so that I can review the setup.
Reply With Quote
  #4  
Old 01-17-2014, 07:01 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

Quote:
Originally Posted by reb View Post
I am very new to Mirth and I am not sure how to use the Transformer and Router.

Do you have a channel that you can upload so that I can review the setup.
I don't have such a channel off-hand, but this will likely help: http://www.mirthcorp.com/webinars/mi...ect-screencast
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
Reply

Tags
carriage return, tcp listener

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 11:55 AM.


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