web stats
Can not recover msg['OBX']['OBX.5']['OBX.5.1'][i]['OBX.5.1.1'] - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2019, 02:33 AM
tigrou01 tigrou01 is offline
Mirth Newb
 
Join Date: Oct 2007
Posts: 7
tigrou01 is an unknown quantity at this point
Default Can not recover msg['OBX']['OBX.5']['OBX.5.1'][i]['OBX.5.1.1']

Hello

I use a JavaScript Writer connector type in my channel destination.
When i add a Transformer :
The mapping is :
msg['OBX']['OBX.5']['OBX.5.1']['OBX.5.1.1'].toString()

It ok to save the value.
But my hl7 message containt full

msg['OBX']['OBX.5']['OBX.5.1']['OBX.5.1.1']
msg['OBX']['OBX.5']['OBX.5.1']['OBX.5.1.2']
msg['OBX']['OBX.5']['OBX.5.1']['OBX.5.1.3']
....

also, I add in transformer a new mapping
Iterate : msg['OBX']['OBX.5']['OBX.5.1']
Index variable : i
Mapping : msg['OBX']['OBX.5']['OBX.5.1'][i]['OBX.5.1.1'].toString()

But, when I add this transformer in my javascript writer, I recover [Ljava.lang.Object;@547caac3 and not the different lines.


Je peux vous joindre my channel if you want.


Thank you for your help.
Reply With Quote
  #2  
Old 02-14-2019, 02:42 AM
tigrou01 tigrou01 is offline
Mirth Newb
 
Join Date: Oct 2007
Posts: 7
tigrou01 is an unknown quantity at this point
Default

after analysis, my OBX5.1 line includes '&' characters.
For each character, mirth creates OBX5.1.x.

How to allow my transform not to take into account this character
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 07:37 PM.


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