How to transfer data in HL7 message format to other system

Which approach is good to proceed the transfer of data into hl7 message format.

  1. HL7 Import Process? is there is 100% surety to achieve hl7 message format? 2.Adding custom parser? is there is 100% surety to achieve hl7 message format?

please reply according to points if possible. Thanks in advance.

Hope this will be of help to you https://wiki.openmrs.org/display/docs/HL7 and https://wiki.openmrs.org/display/docs/HL7+Import+Process