Camel HL7 does not encode message correctly
-------------------------------------------

                 Key: CAMEL-3127
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3127
             Project: Apache Camel
          Issue Type: Bug
    Affects Versions: 1.6.0
            Reporter: Rahul Somasunderam


I sent an HL7 message using camel to a listener using camel, and it worked.
However when I use an mllp client, it does not work.

The wireshark display of the data is 
{code}
0000   00 00 02 85 ac ed 00 05 74 02 7e 4d 53 48 7c 5e  ........t.~MSH|^
0010   7e 5c 26 7c 50 4f 43 7c 45 48 53 7c 48 4e 41 4d  ~\&|POC|EHS|HNAM
0020   7c 48 4e 41 4d 7c 32 30 31 30 30 38 33 30 31 30  |HNAM|2010083010
0030   30 33 32 34 7c 7c 41 44 54 5e 41 30 38 7c 34 36  0324||ADT^A08|46
0040   39 33 38 39 7c 50 7c 32 2e 33 7c 34 36 39 33 38  9389|P|2.3|46938
0050   39 7c 7c 7c 41 4c 7c 55 2e 53 2e 41 0a 50 49 44  9|||AL|U.S.A.PID
0060   7c 31 7c 31 30 31 39 31 34 5e 5e 5e 32 2e 31 36  |1|101914^^^2.16
0070   2e 38 34 30 2e 31 2e 31 31 33 38 38 33 2e 33 2e  .840.1.113883.3.
0080   34 32 39 2e 31 2e 31 5e 4d 52 4e 5e 32 2e 31 36  429.1.1^MRN^2.16
0090   2e 38 34 30 2e 31 2e 31 31 33 38 38 33 2e 33 2e  .840.1.113883.3.
00a0   34 32 39 7c 31 30 31 39 31 34 5e 5e 5e 32 2e 31  429|101914^^^2.1
00b0   36 2e 38 34 30 2e 31 2e 31 31 33 38 38 33 2e 33  6.840.1.113883.3
00c0   2e 34 32 39 2e 31 2e 31 5e 4d 52 4e 5e 32 2e 31  .429.1.1^MRN^2.1
00d0   36 2e 38 34 30 2e 31 2e 31 31 33 38 38 33 2e 33  6.840.1.113883.3
00e0   2e 34 32 39 7c 31 30 31 39 31 34 7c 54 45 53 54  .429|101914|TEST
00f0   50 54 5e 53 41 52 41 5e 42 7c 7c 31 39 38 33 30  PT^SARA^B||19830
0100   33 31 38 7c 4d 7c 7c 57 48 49 54 45 7c 32 33 30  318|M||WHITE|230
0110   33 20 56 49 4c 4c 41 47 45 20 44 52 5e 5e 53 54  3 VILLAGE DR^^ST
0120   20 4a 4f 53 45 50 48 5e 4d 4f 5e 36 34 35 30 36   JOSEPH^MO^64506
0130   7c 7c 28 38 31 36 29 32 33 32 2d 36 38 31 38 20  ||(816)232-6818 
0140   62 65 67 69 6e 5f 6f 66 5f 74 68 65 5f 73 6b 79  begin_of_the_sky
0150   70 65 5f 68 69 67 68 6c 69 67 68 74 69 6e 67 20  pe_highlighting 
0160   20 20 20 20 20 20 20 20 20 20 20 20 20 28 38 31               (81
0170   36 29 32 33 32 2d 36 38 31 38 20 20 20 20 20 20  6)232-6818      
0180   65 6e 64 5f 6f 66 5f 74 68 65 5f 73 6b 79 70 65  end_of_the_skype
0190   5f 68 69 67 68 6c 69 67 68 74 69 6e 67 7c 7c 7c  _highlighting|||
01a0   7c 7c 31 30 33 37 32 36 35 7c 31 31 31 32 32 33  ||1037265|111223
01b0   33 33 33 0a 50 56 31 7c 31 7c 7c 7c 7c 7c 7c 31  333.PV1|1||||||1
01c0   36 33 39 31 34 37 34 30 38 5e 53 41 4e 44 42 45  639147408^SANDBE
01d0   52 47 5e 43 48 52 49 53 5e 42 5e 4d 44 5e 5e 5e  RG^CHRIS^B^MD^^^
01e0   4e 50 49 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 4f 55  NPI|||||||||||OU
01f0   54 50 41 54 49 45 4e 54 7c 37 32 33 30 30 34 7c  TPATIENT|723004|
0200   7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c 7c  ||||||||||||||||
0210   7c 7c 7c 31 31 31 7c 7c 7c 7c 7c 32 30 31 30 30  |||111|||||20100
0220   38 33 30 30 39 35 39 30 30 7c 32 30 31 30 30 38  830095900|201008
0230   33 30 30 39 35 39 30 30 0a 41 4c 31 7c 31 7c 44  30095900.AL1|1|D
0240   72 75 67 7c 64 30 30 31 31 36 5e 70 65 6e 69 63  rug|d00116^penic
0250   69 6c 6c 69 6e 5e 4d 75 6c 74 75 6d 20 44 72 75  illin^Multum Dru
0260   67 7c 7c 7c 32 30 31 30 30 35 31 39 30 30 30 30  g|||201005190000
0270   30 30 0a 5a 41 4c 7c 7c 7c 7c 7c 41 4c 4c 45 52  00.ZAL|||||ALLER
0280   47 59 7c 41 43 54 49 56 45                       GY|ACTIVE
{code}

Clearly the MLLP Codec is having some extra characters on it.

My route is 
{code}
    from("mina:tcp://localhost:8888?sync=true;codec=#hl7codec").to("stream:out")
{code}

I'm using this inside of grails, but don't think that should make a difference.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to