Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › General › base 64 encoding OBX.5 XML CCD
I am trying to send a CCD in an HL7 message, and the XML in OBX.5 needs to be “base 64” encoded. How is that done in Cloverleaf?
Here is the first part of the message:
—-MSH|^~&|MCK_CCD_BAYLOR|MCK^2|BAYLORCDR|HIE|201209281053||MDM^T02|MH594382|P|2.3
OBX|0|ED|MHCCD||
I am on AIX, Cloverleaf 5.8 version 2
package require base64
set val [base64::encode $val]
thanks Charlie. I’ll see if I can get that to work!
Charlie,
Do we need the explicit package declaration?
Within TCL I can invoke decode and encode as a command.
Running both 5.7R2 and 5.8.5.
Thanks.
Do not use the encode and decode commands. They are deprecated and you may get incorrect results. Use the package