how to edit a ACK message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf how to edit a ACK message

  • Creator
    Topic
  • #54851
    teddy greschel
    Participant

      I am new to cloverleaf and i am trying to figure out how to change a ACK message going back to a vendor using 6.1.1

      i am curreently sending the vendor the following ACK

      MSH|^~&|GTWY|HOSP|RECV_APP|HOSP|20151008114616||ACK|13088792776520910|P|2.3

      MSA|AA|13088792776520910

      the vendor needs MSH|9.0 to say ACK^R01

      is their a way to make a xlate for the ACK message? and if so how would it need to be set up on the thread?

      Thanks

    Viewing 3 reply threads
    • Author
      Replies
      • #83210
        James Cobane
        Participant

          Teddy,

          I’m assuming that you are generating the ACK from a tcl proc on the inbound thread.  If so, then you will need to modify that proc.  Take a look at the inbound thread configuration and look at the ‘Inbound’ tab; there is likely a proc there (in the ‘Inbound Data’ dialogue) that is creating these ACKs – that is what you will need to modify.  If the proc is used in other threads, you should create a specific proc for the thread that you are dealing with so that you don’t affect other threads that may be using the existing proc.  Just copy the existing one and give it a new proc name and modify as needed.

          Hope that helps.

          Jim Cobane

          Henry Ford Health

        • #83211
          Robert Kersemakers
          Participant

            Hi Teddy,

            Following on what James said.

            If you are using ‘gc_genHL7OrigModeACK’ as the proc to generate the ACK, there is an option ‘MSGACK’. Setting {MSGACK 1} will generate an ACK with msgType ‘ACK^R01’ (if your incoming message is ORU^R01 for example). The default {MSGACK 0} will return msgType ‘ACK’.

            Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

          • #83212
            teddy greschel
            Participant

              i have hl7Raw_ack is there something better i can be using. i dont see gc_genHL7OrigModeACK as a proc

            • #83213
              James Cobane
              Participant

                Since you are using hl7Raw_ack, it is likely used across multiple threads, so you will need to create your own version of this proc for your thread.  In looking at the code, you should be able to see where it is building the ACK message and modify that section of the code.  You may want to modify it so it uses the Event Type of the inbound message as its ACK type rather than just hard-coding the ‘R01’.  This will require a bit more work as you will need to extract the value from the inbound message, but will likely be better in the long run.

                Jim Cobane

                Henry Ford Health

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