x12 raw ack help

Clovertech Forums Cloverleaf x12 raw ack help

Tagged: 

  • Creator
    Topic
  • #121154
    Jo Simchen
    Participant

      Hello, We are on v.19 and I am trying to write a proc to send our vendor an x12 raw ack message. I have been trying to insert cloverleaf’s proc buildISA to do this but in testing I can’t seem to get it to pull the ISA field values in from the received message. I can pretty much hard set most the values if needed, but the Control ID needs to match what the vendor message has. I have tried copying what the HL7 raw ack has but I seem to be identifying the ISA field incorrectly.

      Any help on just a basic x12 ack would be greatly appreciated!

    Viewing 3 reply threads
    • Author
      Replies
      • #121157
        Jim Kosloskey
        Participant

          The TA1 is the most basic X12 Acknowledgement but X12 life is not that simple, typically.

          There are acknowledgement sets related not only to specific message types but also based on the trading partner’s Implementation Guide which specifies the expected acknowledgement set. Do you have the Implementation Guide from the Trading Partner?

          As for the ISA proc, I believe that proc expects the data for the ISA to be in the message metadata. I have some experience with X12 and am willing to help out. Just email me and we can take this off-line.

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

        • #121158
          Charlie Bursell
          Participant

            If you used the splitX12 proc prior to Xlate the ISA data should be in the metadata.

            Here is a snippet from the X12MetaData_template that resides in $HCIROOT/tclprocs.

            Perhaps you could use it as a template to extract the fields you need.

            set USER_DATA [msgmetaget $mh USERDATA]
            if {[catch {set ISA_DATA [keylget USER_DATA ISA]}] == 0} {
            set i 1
            while { $i <= 16 } {
            if {[info exists ISA($i)] == 0} {
            set ISA($i) [lindex $ISA_DATA $i]
            }
            incr i
            }
            }

          • #121161
            Jo Simchen
            Participant

              Thank you so much Charlie! That looks promising!

              Jim, I have also sent you an email.

            • #121162
              Jim Kosloskey
              Participant

                Jo,

                I replied to your email – if you have not received it, check your spam folder or let me know.

                 

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

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