Breaking one HL7 message out into multiple messages

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Breaking one HL7 message out into multiple messages

  • Creator
    Topic
  • #52291
    Davin Studer
    Participant

      Our electronic medical records system will accept a message that has multiple values in TXA-14 separated by the HL7 repeater character.  However, it will complain if these values in TXA-14(order number) are for multiple visits.  It is fine with it if all of the TXA-14 vales are for the same visit.  What I am wanting to do to get around this limitation is split the message out into multiple messages if TXA-14 has more than one value.  I’m not quite sure where to start on this.  Any help or suggestions would be most appreciated.  Thanks.

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

          D,

          If using an Xlate you will use the SUPRESS Action and the CONTINUE Action.

          Place the SUPRESS at the very beginning of the Xlate.

          Build all of the segments that are going to be the same for each outbound message no matter how many are built.

          Then ITERATE over the repeating item (in this case I believe that is the TXA-14 field). Inside this ITERATE COPY only those things that need to be in the outbound message for this iteration of the TXA-14 (possibly could just be the TXA-14 current repetition). Issue a CONTINUE.

          The SUPRESS stops the Xlate from creating an additional last message (the Xlate will always crate an outbound message no matter what else you do unless you tell it not to and this is what the SUPRESS does). You only need to specify the SUPRESS once unless you are creating the multiple messages conditionally or unless you are SUPPRESSing messages conditionally. From your description I don’t think this is what you want to do.

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

        • #73708
          Davin Studer
          Participant

            Thanks a ton.  That helped.  I was able to get it to work.  The iterate part was the part that I was unsure about, but after some fiddling I got it working.

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