web stats
Mirth Community - View Single Post - Escapes and new lines.
View Single Post
  #1  
Old 02-08-2010, 04:23 PM
simidau simidau is offline
OBX.2 Kenobi
 
Join Date: Feb 2008
Posts: 62
simidau
Default Escapes and new lines.

I'm having issues with some data, and how I deal with it in mirth to get the output I want.

I receive OBX.5 segments that look like

Code:
<OBX.5>Urethral<escape V=".br"/>  Leucocytes           ++<escape V=".br"/>  Lactobacilli-like  ++<escape V=".br"/>  -ve diplococci(Extra)Occ.</OBX.5>
Now in my transformer when I ask for that OBX segment with

Code:
var Ob_Value = msg['OBX']['OBX.5'].toString();
The value of the string is
Code:
<OBX.5>Urethral<escape V=".br"/>  Leucocytes           ++<escape V=".br"/>  Lactobacilli-like  ++<escape V=".br"/>  -ve diplococci(Extra)Occ.</OBX.5>
How do I deal with the
Code:
<escape V=".br"/>
segments inside the segment I get the value of them instead of the raw text, I would like to get -
Code:
Urethral.br  Leucocytes           ++.br  Lactobacilli-like  ++.br  -ve diplococci(Extra)Occ.
Cheers
Simon
Reply With Quote