Auto entry example 2

This is an example of the auto entry feature, to ITERATE over the NK1 segments in an HL7 ADT message.

  1. Click ITERATE, right-click the NK1 segment in the input window, and select Copy to Basis. The ITERATE properties are displayed with the correct path for the NK1.
  2. Specify 0(0).NK1 as the basis. The ITERATE variable defaults to %s1.
  3. Add a COPY statement to the ITERATE:
    1. Double-click a field in segment NK1 in the Input Message Format tree. The path is displayed in the input source view. The ITERATE variable is automatically inserted into the path, for example, 0(0).NK1(%s1).#2(0).[0].
    2. Double-click a field in segment NK1 in the Output Message Format tree. The path is displayed in the output source view. The ITERATE variable is automatically inserted into the path, for example, 0(0).NK1(%s1).#2(0).[0].