web stats
Hexadecimal to HL7 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 04-17-2019, 06:36 AM
Joao Lima Joao Lima is offline
What's HL7?
Join Date: Apr 2019
Posts: 1
Joao Lima is on a distinguished road
Smile Hexadecimal to HL7

Hello i have a hl7 file encoded in hexadecimal, can someone, does someone have a script/function to do the translation?
Reply With Quote
Old 04-17-2019, 11:13 AM
cory_cole cory_cole is offline
Mirth Guru
Join Date: Mar 2012
Posts: 1,172
cory_cole is on a distinguished road

found this online...

function hex2a(hex)
var str = '';
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
return str;

You can put this into a code template then call it from any channel.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 05:19 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation