Using Repeat While example

In this example, an HL7 lab result message is being translated to a flat/text file.

  1. Set up a VRL for each segment's information, naming the first field similar to Segment_ID.
    Use a three (3) character-length field and populate the field with the appropriate segment value, for example, OBX). Then, add any other fields you must have for that segment.
  2. In this example, the VRL is called "OBX." In the HRL Configurator, add the OBX and click Repeat While.
    For Field specify OBX.Segment_ID.
    For Value specify OBX.
  3. Do this for each of the segments.

    For groups of segments, for example, the OBX group, define one HRL for each group with its appropriate VRLs. Then, reference that HRL within another HRL.

    For example, HRL ORU_R01 contains:
    VRL - MSH 
    VRL - PID 
    HRL - ORC 
               VRL ORC 
               HRL OBR 
                         VRL OBR 
                         HRL OBX 
                                   VRL OBX 
                                   VRL NTE