Auto entry example 2
This is an example of the auto entry feature, to ITERATE over the NK1 segments in an HL7 ADT message.
- Click ITERATE, right-click the NK1 segment in the input window, and select . The ITERATE properties are displayed with the correct path for the NK1.
-
Specify
0(0).NK1
as the basis. The ITERATE variable defaults to%s1
. -
Add a COPY statement to the ITERATE:
-
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]
. -
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]
.
-
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,