Best Practices when converting HL7 message to XML Stream

Primary tabs

HL7, XML, Caché, Ensemble



I was wondering whether there are any best practices or guidance around converting a HL7 message in to XML stream which will then be delivered to an end-point.  Any help would be much appreciated.


Kind Regards,




You can use EnsLib.ITK.HL7.FormatXMLv2 . It was primarily designed for HL7 ITK version. You can extend this class and modify as you need.Then simply convert that into stream that you need and transfer wherever you want.

Alternatively you can download the xsd from HL7 site then map from HL7 to XML schema. It would be pretty lengthy method .

Hi Suman,

Thank you for your reply, do you have any sample code for this?

Kind Regards,