Text to HL7 message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Text to HL7 message

  • Creator
    Topic
  • #53611
    Julie Brandt
    Participant

      I am new to cloverleaf and need some help.  I have a ‘Data Dump” that has /.br/ at the end of each segment.  I need to convert these to a ~ so that it will read as an HL7 message.  Would it be easier to do this as a TCL Proc or a Xlate.  Please advise.

    Viewing 1 reply thread
    • Author
      Replies
      • #78285

        You will most likely not be able to do this in an xlate, but a pre-proc would work well.

        Code:

        set msg [string map {”/.br/” ~} $msg]

        Example Code:

        Code:

        set msg “foobar/.br/helloworld/.br/abc/.br/123/.br/”
        set msg [string map {”/.br/” ~} $msg]
        puts $msg

        Output:

        Code:

        foobar~helloworld~abc~123~

        -- Max Drown (Infor)

      • #78286
        Jim Kosloskey
        Participant

          Check out this link:

          <a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=6420&#8243; class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=6420

          which has a discussion you might find enlightening along with ways to do this in the Xlate (with some Tcl).

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

      Viewing 1 reply thread
      • The forum ‘Cloverleaf’ is closed to new topics and replies.