SIU iterate help

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf SIU iterate help

  • Creator
    Topic
  • #53989
    GEE MALONEY
    Participant

      Sorry for yet another iterate question but I didn’t find an example in the previous posts that seem to fit my needs.   😕

      My vendor is asking that when we send over an SIU message that contains multiple procedures in AIS.3 that we need to send over repeating RGS, AIS, AIL and AIP segments.   Example below.   Note to keep the post sort i will have removed the MSH, SCH, NTE, PID and PV1 segments from my examples.

      Vendor example of an SIU with multiple procedure codes:

      RGS|1|

      AIS|1||EGD|20140107130000|

      AIL|1||^ROOM 3^|||20140107130000|||60|MIN|||

      AIP|1||PHYSID^DRLASTNAME^DOCTORFIRSTNAME|Doctor|

      RGS|2|

      AIS|2||COL|20140107130000|

      AIL|2||^ROOM 3^|||20140107130000|

      AIP|2||PHYSID^DRLASTNAME^DOCTORFIRSTNAME|Doctor

      Vendor example if only one procedure code:

      RGS|1|

      AIS|1||EGD|20140107130000|

      AIL|1||^ROOM 3^|||20140107130000|||60|MIN|||

      AIP|1||PHYSID^DRLASTNAME^DOCTORFIRSTNAME|Doctor

      Our SIU interface from our EMR generates a message like this:

      RGS|1||101001360^87 AMBULATORY SURGERY

      AIS|1||GI2^EGD (GI DEPT USE ONLY)^EXTSCCEAP^^~GI54^COLONOSCOPY W/EGD (GI DEPT USE ONLY)^EXTSCCEAP^^|20140107092000||||||Sch

      AIG|1||R101^ENDOSCOPY SUITE 1|2^RESOURCE||||20140107092000|0|MIN|40|MIN

      AIP|1||0070^HEE^VERNON^^|||20140107092000|0|MIN|40|MIN

      My xlate generates the message looking like this:

          Note, that the segments aren’t in order and that the AIS segment 1 and 2 contains similar information and does not show the other procedure.

      2(0).0(0).RGS(0)  :  >|1||101001360^87 AMBULATORY SURGERY< 2(0).0(0).RGS(1)  :  >|2||101001360^87 AMBULATORY SURGERY< 2(0).1(0).0(0).AIS(0)  :  >|1||GI2^EGD (GI DEPT USE ONLY)^EXTSCCEAP~GI2^EGD (GI DEPT USE ONLY)^EXTSCCEAP|^^^20140106100000||||||Sch< 2(0).1(0).0(0).AIS(1)  :  >|2||GI2^EGD (GI DEPT USE ONLY)|||||||Sch< 2(0).3(0).0(0).AIL(0)  :  >|1||R102^ENDOSCOPY SUITE 2< 2(0).3(0).0(0).AIL(1)  :  >|2||R102^ENDOSCOPY SUITE 2< 2(0).4(0).0(0).AIP(0)  :  >|1||0336^CASIMO^MATTHEW|Doctor< 2(0).4(0).0(0).AIP(1)  :  >|2||0336^CASIMO^MATTHEW|Doctor< I have attached my xlate and I was hoping that someone can assist me with how I should correctly build my iterate logic.  Please.  ðŸ˜•  Thank you.  Ginny

    Viewing 2 reply threads
    • Author
      Replies
      • #79782
        Jim Kosloskey
        Participant

          Gee,

          I am guessing that your %f1 counter is placed improperly at the segment level in your destination fields. I suspect that should be a group repetition based on what I see in the Address Path for the Destination fields.

          Can you show us the message layout from the HL/7 Configurator for your outbound message?

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

        • #79783
          Matthew Laskin
          Participant

            Just developed this same xlate for a vendor.  In my case, I had all of the associated procedures listed in AIS-3.1 for each applicable resource group.  In my case, I was only interested in endoscopy cases, so the first iterate checks for “ENDO” in AIL-3.

            I’ve attached the applicable xlate portions.  Maybe this will help you with your code?

          • #79784
            GEE MALONEY
            Participant

              Jim-

              here is the hl7 config that i am using in the xlate

              MSH

              SCH

              [{ NTE } ]

              [

              {

              PID

              [ PV1 ]

              [ PV2 ]

              [{ OBX } ]

              [{ DG1 } ]

              }

              ]

              {

              { RGS }

              [

              {

              { AIS }

              [{ NTE } ]

              }

              ]

              [

              {

              [{ AIG } ]

              [{ NTE } ]

              }

              ]

              [

              {

              [{ AIL } ]

              [{ NTE } ]

              }

              ]

              [

              {

              { AIP }

              [{ NTE } ]

              }

              ]

              }

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