Another method for handling one message type to another is to use a template of the destination message.
You can create a system variable in QIE that is a template of the type of message you would like to create that has references to fields in the source message.

Then in your channel you can reference that system variable and create your new message type .
message = qie.createHL7Message();
message.setNode('/', qie.evaluateTemplate(qie.getVariable('hl7Template')));
