Iterate VRL to HL7?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iterate VRL to HL7?

  • Creator
    Topic
  • #47731
    Rick Martin
    Participant

      I want to translate a VRL input into multiple HL7 segments.  For instance if I have:

      VRL record 1

      VRL record 2

      VRL record 3

      I want to translate the above to multiple HL7 segments, one per VRL record, for example to:

      OBX|1|…

      OBX|2|…

      OBX|3|…

      I’m assuming I should use ITERATE to do this, and that I should use a SEGMENT type with a %s1 variable, but I can’t figure out what to set the BASIS to.  Am I even on the right track?

      Thanks, Rick

    Viewing 2 reply threads
    • Author
      Replies
      • #56561
        Robert Kersemakers
        Participant

          Hi Rick,

          I think you need to define an HRL that contains a repetition of your VRL-format; I’m not sure though which sort of repetition you’ll need.

          For example:

          Segment 1

          ========

          Name: RECORD

          File name: .vrl.frl

          Repeat options: (not sure…)

          Then to iterate over the VRL’s in your translation use

          Type: segment;

          Basis: RECORD

          Variable: %s1.

          You can then access the fields in the VRL by using

           RECORD(%s1)..

          Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

        • #56562
          Rick Martin
          Participant

            Robert,

            Thanks! That’s exactly the help I needed.  I now have it working correctly. The only weirdness is that in the XLT configurator, I sometimes get the textbox for the segment repetition number/variable in the input message format (left pane) and I sometimes don’t – not sure why, but if I manually type the (%s1) after the segment name it works.

            Rick

          • #56563
            Paul Johnston
            Participant

              Rick ,

              I know I am responding to an old post but after searching the archives I noticed your scenario is similar to mine.  

              May I ask a few questions.

              Were your Variable records field delimited with a comma. ?

              How did you know when you hit the last OBX ?

              Would be so kind to post or email your VRL for me to view. ?

              Thank you.

              Paul

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