Just wondering how best to use Mirth to convert messages between different HL7 2.x versions.
Say I have a message inbound that is V2.3 and I want to send out a V2.5 message.
Would you need to use message templates and put individual mappings in place to copy the data?
Or is there a way to use the internal XML representation of the incoming message, set the version to 2.5 on the XML representation (the transformed message) in a transform js script and then convert that to a HL7 message using something like:
SerializerFactory.getHL7Serializer(useStrictParser , useStrictValidation, handleRepetitions).fromXML(message);
I guess what I'm trying to find out is if the internal XML representation is smart enough to handle different versions when serializing out to HL7 2.x message format?
Thanks!
Say I have a message inbound that is V2.3 and I want to send out a V2.5 message.
Would you need to use message templates and put individual mappings in place to copy the data?
Or is there a way to use the internal XML representation of the incoming message, set the version to 2.5 on the XML representation (the transformed message) in a transform js script and then convert that to a HL7 message using something like:
SerializerFactory.getHL7Serializer(useStrictParser , useStrictValidation, handleRepetitions).fromXML(message);
I guess what I'm trying to find out is if the internal XML representation is smart enough to handle different versions when serializing out to HL7 2.x message format?
Thanks!
Comment