web stats
Changing HL7 Messages - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 12-14-2007, 01:00 AM
dajos7 dajos7 is offline
What's HL7?
Join Date: Sep 2006
Posts: 1
Default Changing HL7 Messages

Hello I tried for 2 days to solve this problem. I don't get it.

I have a LLP Listener and a FileWriter.

I want to change the & symbol to HTMLCode-amp inside of the incoming HL7 Message and write this modified Message to the file.

That works fine, but I am not able to write it to file. The transformer does not write the modified message to the encodedMessage.

My script is

var m = messageObject.getRawData();

logger.info("old: "+m);

var m2 = m.replace("&", "HTMLCode-amp");

logger.info("new: "+m2);

responseMap.put('Destination 1',m2);
How can I write the modified HL7 Message as String to the filewriter output?

Post edited by: dajos7, at: 12/14/2007 02:32
Reply With Quote
Old 12-14-2007, 05:51 AM
albertosaez albertosaez is offline
Join Date: Sep 2006
Location: Valladolid, Spain
Posts: 842
albertosaez is an unknown quantity at this point
Default Re:Changing HL7 Messages

Create a global variable with the content of the message changed, and drop it into the template's output box

var m = messageObject.getRawData();
logger.info("old: "+m);
var m2 = m.replace("&", "HTMLCode-amp");
logger.info("new: "+m2);
Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing length of OBX segments cgbullock Support 0 01-26-2009 05:48 PM
Changing internal Database boesboes Support 6 11-12-2008 06:16 AM
Dynamically Changing the Directory for File Reader rampratapa Support 1 10-03-2008 04:11 AM
Changing HL7 version 2.3 to 2.5 Bobbit Support 15 01-31-2007 11:28 AM
Changing the RMI (1099) port albertosaez Development 0 10-30-2006 12:13 AM

All times are GMT -8. The time now is 12:17 AM.

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