Convert HL7 to Binary

Clovertech Forums Cloverleaf Convert HL7 to Binary

  • Creator
    Topic
  • #121866
    Jorge Medina
    Participant

      Anyone know if Cloverleaf supports converting HL7 to binary? If so, how would one accomplish such a feat?

      Thank you.

      Jorge

    Viewing 2 reply threads
    • Author
      Replies
      • #121867
        Jim Kosloskey
        Participant

          I have never done this but I think you would need to use Tcl.

          I am assuming you mean the whole HL/7 message but even if it is another string:

          binary encode hex $myString

          Jim

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

        • #121870
          Charlie Bursell
          Participant

            The operative question is why?  HL7 is an ASCII protocol

          • #121956
            Jason Russell
            Participant

              I’d love to know the use-case for this. Jim’s put in the most basic response on the how, but I’d like to know the ‘why’. Also are you wanting to get a hex equivalent or the pure binary (AA vs 00000000)? Either way you have to think about encoding, and what you are encoding to/from. As Charlie pointed out, HL7 is an ASCII protocol, but doing anything beyond the basic 127 charset need to know the encoding value (Epic/windows defaults to windows-1252, and a lot of people are turning to UTF-8 as a default ). Figuring out those charsets are… not fun.

              Are you trying to capture control characters to start/stop a message or just want a way to encode/decode a string

          Viewing 2 reply threads
          • You must be logged in to reply to this topic.