This tutorial shows you how to use auto-completion.
We will show you three ways to find the race field in an HL7 node tree.
- Using the field data “EU”.
- Using the field name “race”.
- Drilling down through the fields.
We chose to place the code we used in a Filter component, but auto-completion works for all code in any component.
Create the Channel [top]
- Create a Channel with the the following settings:
- Source = LLP Listener
- Destination = LLP Client
- Channel name = We Love Deep Auto-Completion
- Activate the Filter Component: Click the Filter tab and check Use Filter.
- Click the Add Channel button to create the channel.
Ignore the red warning messages, see resolving the milestone configuration error. - Open the Translator by clicking the Edit Script link at the bottom of the Filter tab.
- Download and import the Auto-Completion_Filter.zip project file.
This file contains a skeleton project and six sample HL7 messages. - Iguana will load the project and data into the Translator, your screen should look like this:
Tutorial Instructions [top]
Auto-Completion using field data: “EU”
The fastest way to find fields within a node tree is by using the field values from your sample data.
- Inspect the data to find the value of the race field.
Click on the Data parameter (red text) and the ADT message icon:
Identify the value for the race field in the HL7 message text or in the node tree:
- Add a
trace()
statement:
- Type “ms” within the brackets, and click on the Msg variable:
- Type “.eu” and click on the race>identifier field:
- This is the result:
- Time = 20 seconds (15 seconds if you don’t need to lookup the value “eu”)
Auto-Completion using the field name: “race”
Using the field names is also very quick.
- Add a
trace()
statement:
- Type “ms” within the brackets, and click on the Msg variable:
- Type “.ra” and click on the race field:
- Type “.” and click on the Identifier field:
- The result is the same as using the the field data “eu”:
- Time = 25 seconds
Auto-Completion by drilling down through the fields
Drilling down through the hierarchy is useful when you don’t know the data and field names.
- Add a
trace()
statement:
- Type “ms” within the brackets, and click on the Msg variable:
- Click on the PID segment:
- Click on the Race field:
- Click on Repeat 1:
- Click on Identifier:
- The result is identical to the other methods:
- Time = 25 seconds