This tutorial explains how to create a custom table and assign it to a field.
7Edit uses tables to edit and validate HL7 data. When you edit a field and there is a table assigned to this field, the field editor shows table values in the drop-down menu.

1. Creating a new table
Let's create a new table. Select Tools | Table Editor to start the Table Editor.

Select Edit | Add Table from the main menu.

Enter the table number and name. Click OK to add the table.
Add some values to the table as shown below.

Click File | Save button to save the changes.
2. Assigning a table
We have created a table. Let's now assign it to a field.
Open the demo file (samples/demo.hl7). Select a field, right-click to show a popup menu, select Definition | Show PID->SI definition.

This will open the Definition Editor and highlight the required field in the segment's definition.

Right-click on the field to show a popup menu. Select Properties to start editing the field.


Click the "Find" button and the select the table we have just created.



Click OK to apply changes.
Select File | Save from the menu to save changes to the definition file.
The table has been assigned. If you start editing the field now, you will notice that the combobox contains the values from our table.
