VXU xlate outputs null records for missing input OBX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf VXU xlate outputs null records for missing input OBX

  • Creator
    Topic
  • #52617
    Johnny Anderson
    Participant

      CL v5.8, Sun Solaris 10, HL7 v2.3.1

      If VXU input has RXA and OBX segments, no problem.

      See attachments.  

      If VXU input has RXA and no OBX, got a problem: the output file has a blank or null record following the

      previous good output record.  See “03VXU…” on first attachment ppt slide 2, its twice as large as the other records.

    Viewing 8 reply threads
    • Author
      Replies
      • #74870
        Robert Kersemakers
        Participant

          Hi Johnny,

          You are translating an HL7-message with repeating segments into 1 FRL and trying to get the repeating segments into this FRL? That’s not going to work: you will need to create an HRL that consists of one FRL for the ‘basic’ information and a repetition of FRLs for the repeating segments.

          Also: you are using %g1 and %g2 as outbound variables as well. But as you are sometimes going to skip certain inbound segments, you will have to use your own counters (eg %g8 and %g9) for the outbound variables.

          Hope this helps.

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #74871
          Johnny Anderson
          Participant

            Robert, I’ve attached a ppt with 2 screen shots for the HRL’s, which I’ve been using from the start,

            I just didn’t include with my first post.  I haven’t tried the counters comment.  Thanks.

          • #74872
            Robert Kersemakers
            Participant

              Ah, you are already using an HRL. But what I find weird (and somebody correct me if I’m wrong) is that you’re using another HRL inside this HRL. This second HRL contains the repeating 03 and 04 FRL’s.

              I would use just one HRL:

              * FRL type_01

              * FRL type_02

              * FRL type_03 repeating

              * FRL type_04 repeating

              * FRL type_99

              That should meet your requirements as well.

              You could also ‘reverse-engineer’ it. Manually create a few different ‘outbound’ messages (so you have all kinds of messages that you would like to see as a result) and test these against your HRL format in the testing tool. Once this works you should be able to make the translation as well.

              Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

            • #74873
              Johnny Anderson
              Participant

                Robert, I made the change for 1 HRL, did not correct the problem.  I tried the testing tool for HRL, got no

                results (blank screen).  I’ve sent this problem to CL Tech Support.  Thanks for your help.

              • #74874
                Robert Kersemakers
                Participant

                  I’m not sure if CL Tech support can/will help you on this, but it’s worth a try.

                  What result do you get when you test your Xlate with this new (single) HRL through the Xlate Testing Tool?

                  Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

                • #74875
                  Johnny Anderson
                  Participant

                    Robert, I

                  • #74876
                    Robert Kersemakers
                    Participant

                      The reason why you’re getting no result with your ‘single’ HRL, is because you defined the 03/04 segments to repeat 100,000 times. So my guess is the Testing tool is still running: iterating through 100,000 segments twice.

                      Can you try to repeat these 03 and 04 segments just like you did in Types_03_04 HRL: repeat while first field is 03 resp. 04?

                      I’m not sure why your ‘HRL inside an HRL’ is not working, I’m guessing that the repeating HRL Types_03_04 is looking for an occurrence of ’03’ which it will find. Then the FRL Type_03 is looking for an 03 as well, which it won’t find.

                      Based on this, I’m also wondering if you can ever get a repeating HRL inside another HRL to work. I haven’t seen it before: I only have experience with HRL’s with repeating FRL/VRLs.

                      Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

                    • #74877
                      Johnny Anderson
                      Participant

                        Used “Help” to find: HRL Configurator, Repeat Options Pane, Repeats. It states:

                        Indicates the current HRL segment repeats. Type in the adjacent text box the total number of repeats for the specified FRL, VRL,

                        or  another HRL file containing the format information for this HRL segment. The default is 1.

                        I have multiple RXA segments and multiple OBX segments.  If I wanted to use “Repeats”, what would I put there?

                        I also tested the “Repeat While Type03 = 03” and “Repeat While Type04 = 04”, did not correct the problem.

                        See ppt attachment, 4 slides.

                        The “repeating HRL inside another HRL” does work when we have both RXA and OBX segments in the input.

                      • #74878
                        Robert Kersemakers
                        Participant

                          I’m sorry, but I can’t help you further with this. I don’t have enough information/details to really help you this way.

                          If support can’t help you either, I’m willing to help you further, but I will need all HRLs, FRLs and example input messages to have a look. And I will need a bit of time, which is pretty scarce right now… 😕

                          So if needed, let me know here if you need some further help. I hope support can help you with this.

                          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

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