sending ACK back to client after receiving a message.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf sending ACK back to client after receiving a message.

  • Creator
    Topic
  • #49165
    Vincent Tran
    Participant

      Hi, I am new to Cloverleaf and am having some trouble with sending an HL7 ACK back to my application. Currently I have a thread: pdl-tcpip using mlp_tcp.pdl to receive an HL7 message.

      I’m not sure what to do next.

      I tried using the hl7_ack.tcl in the TPS inbound data (not sure if I am suppose to supply arguments in the window) and Cloverleaf returns an endless stream of 0x0B characters.

      If anyone could give any suggestions that would be great, Thanks.

      – Vincent

    Viewing 2 reply threads
    • Author
      Replies
      • #60949
        Gary Atkinson
        Participant

          Set two more variables, one for the hl7 version and one for the variant from keylget

          ex.) set hl7_version [keylget args ARGS.HL7VERSION]

             set variant_name [keylget args ARGS.VARIANTNAME]

          Add those two variables to the grmcreate statement.

          ex.) [grmcreate -msg $ibid hl7 $hl7_version $variant_name {}]} cerr]

          Then in netconfig add those two arguments in the inbound thread using {hl7_version name} (variant_name name}.

          I think that is all you need to do, but to be honest I’m very very new to Tcl programming   😀

        • #60950
          Vincent Tran
          Participant

            Thanks, that helped me understand it a bit more. The arguments would be {HL7VERSION x.x} {VARIANTNAME xxxxx}.

            It’s sending ACK’s back now, thanks for the help 🙂

          • #60951
            Gary Atkinson
            Participant

              Anytime Vincent…glad I could help  8)

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