web stats
Using Message Builder to map multiple results - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2011, 09:35 AM
DimitriA DimitriA is offline
Mirth Newb
 
Join Date: Jul 2011
Posts: 17
DimitriA is on a distinguished road
Default Using Message Builder to map multiple results

Hi, I am very new to Mirth and could dearly use some help.

I am trying to use a transformer to map lab results received in HL7v2 into a .csv file. I set my output type to be Delimited Text and have provided a .csv Outbound Template.

I can now use the Message builder to map one lab result to one cell by mapping:

msg['OBX'][1]['OBX.3']['OBX.3.2'].toString() to tmp['row'][11]['column2']

Is there anyway I can map all of the unknown number of lab results into column 2? I obviously cannot make a message builder for every instance as different lab tests will provide a different number of results.

Thank you!
Reply With Quote
  #2  
Old 07-21-2011, 01:01 PM
mourisj mourisj is offline
Mirth Guru
 
Join Date: Feb 2007
Location: Luxembourg
Posts: 407
mourisj is an unknown quantity at this point
Default

I think the answer to your question is in another post initiated by youself

http://www.mirthcorp.com/community/f...ead.php?t=5726

You need to loop over all your result data as described.

Or did I misinterprete your question ?
__________________
JJ Mouris
FFE Luxembourg
IT-Department
Reply With Quote
  #3  
Old 07-21-2011, 02:27 PM
DimitriA DimitriA is offline
Mirth Newb
 
Join Date: Jul 2011
Posts: 17
DimitriA is on a distinguished road
Default

Very similar, however with a Message Builder there is no way to use JavaScript.

Your idea inspired me to try using one of the arrays I'd made using the advice in the other thread you mentioned. All of the lab result values appeared in a single cell however. Any idea how I can cycle throw rows while staying at the same column in Message Builder?
Reply With Quote
  #4  
Old 11-03-2011, 04:47 PM
stulugu stulugu is offline
What's HL7?
 
Join Date: Sep 2011
Posts: 3
stulugu is on a distinguished road
Default

Hi Dimitri,

Hope you are doing good...I have been working on interfacing HL7 to .csv....I would appritiate if you could please posintg a channel which generates .csv as an outbound...

Thanks so much in advance.

Regards,
T Sridhar
Reply With Quote
Reply

Tags
delimited text, message builder, mirth connect, transformer

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 02:30 AM.


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