Convert XML to HL7
SerializerFactory.getHL7Serializer(useStrictParser, useStrictValidation, handleRepetitions).fromXML(message);
Access parts of an XML message
msg['MSH']['MSH.4']['MSH.4.1'] = 'TEST12345';
Set the transformedData to a new value
msg = "
Inside a Message Template
Get raw message data: ${message.rawData}
Get transformed data (if a transformer exists-- you can create an empty javascript transformer): ${message.transformedData}
Get encoded data, which has special characters encoded: ${message.encodedData}
3 comments:
I'm looking for transformer templates (XMLs) that I can learn from. I am having trouble grasping the concept of transforming data in Mirth 1.8 and need some help. Is there other better info than what Mirth has on-line?
Hi Peter,
could you please help me about mirth? i need further information about mirth.
Hi Anonymous, the transformation notes above are not for XSL transformation, but rather Javascript within Mirth (I believe it's called Rhino).
Ju, it has been a while since you commented (and also since I've used Mirth) but feel free to ask any questions...
Post a Comment