Splitting Messages

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Splitting Messages

  • Creator
    Topic
  • #52663
    Marcus de Leon
    Participant

    Hi,

    I am splitting a large ERP message to smaller ORU messages using xlate. I am looping through the segments and when I reach the point to split, I am using “CONTINUE”. The loop repeats until the end of the message. I am having a problem in that messages split at the end may contain parts of messages from the beginning. I think it’s because I am not clearing out the previous messages. What is the best way to clear out a previous message?

    Thanks,

    Marcus de Leon

Viewing 1 reply thread
  • Author
    Replies
    • #75047
      Jim Kosloskey
      Participant

      Marcus,

      Do you have a SUPPRESS in your Xlate?

      When generating multiple messages from one unconditionally I usually place the SUPPRESS at the beginning. Mainly so I don’t forget and also as an eye-catcher that I am most likely generating multiple messages from one in this Xlate.

      Without a SUPPRESS, your last generated message will appear twice – maybe that is what you are experiencing.

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

    • #75048
      Robert Kersemakers
      Participant

      Hi Marcus,

      I have had this problem as well. You are splitting the inbound message into several outbound messages, where each outbound message has a certain number of OBR/OBX segments, right?

      What you see is that when your first outbound message has, say, 3 OBR/OBX segments and the second message has only one OBR/OBX segment, then you will need to ‘erase’ the last 2 OBR/OBX segments from the second message.

      You can do this by either use a ‘do-while’ loop to PATHCOPY @null to all the OBR/OBX segments after you have send the outbound message (search the forum on how to do the do-while loop in an Xlate).

      Another option would be to first send out the outbound message(s) with only 1 OBR/OBX, then the ones with 2 OBR/OBX, then with 3, etc… This way you don’t need to erase segments.

      Hope this helps.

      Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

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

Forum Statistics

Registered Users
5,119
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10