base 64 encoding OBX.5 XML CCD

Clovertech Forums Read Only Archives Cloverleaf General base 64 encoding OBX.5 XML CCD

  • Creator
    Topic
  • #53301
    Scherie Drewa
    Participant

      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

    Viewing 3 reply threads
    • Author
      Replies
      • #77198
        Charlie Bursell
        Participant

          package require base64

          set val [base64::encode $val]

        • #77199
          Scherie Drewa
          Participant

            thanks Charlie.  I’ll see if I can get that to work!

          • #77200
            Bob Richardson
            Participant

              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.

            • #77201
              Charlie Bursell
              Participant

                Do not use the encode and decode commands.  They are deprecated and you may get incorrect results.  Use the package

            Viewing 3 reply threads
            • The forum ‘General’ is closed to new topics and replies.