Framework EDI Reference. SEFManager Utility
Add a Semantic Rule to a Data Element

To add a semantic rule to a data element, take the following steps:

  1. Highlight the selected data element and then right click.
  2. In the popup menu, select "Add Semantic Rule".
  3. In the dialog box, specify the condition and the action of the semantic rule.

The following steps will demonstrate how to add a semantic rule to a data element reference.  As an example, we will add the semantic rule (see below) to the data element reference 309 (Tax Identification Number) that has an ordinal number 2 in data segment TAX (Tax Reference), which in turn has an ordinal number 6 in the ASC/X12 Transaction Set 850.

If data element 355 at BEG200 is equal to "00" then data element 309 at TAX700 must be used

The semantic rule SEF syntax is:

PurposeCode'EQ'00:USAGE:2:

Where:

For more on how to determine the SEF semantic rule syntax please refer to Appendix B: Creating a Semantic Rule Syntax.

  1. Highlight and right click the data element reference where the semantic rule is to be added.

  2. From the popup menu select "Add Semantic Rule".

  3. The following dialog box will show. 

    Location.  The Transaction Set/Message ID field displays the ASC/X12 Transaction Set or UN/EDIFACT Message of the data element.  The Segment Reference Ordinal field displays the ordinal number of the data segment reference containing the data element to which the semantic rule will be added.  The Data Element Ordinal displays the ordinal number of the data element.  In the example shown, the semantic rule is being added to the data element with ordinal number 2 in the data segment reference.  The data segment reference is at ordinal 6 in the ASC/X12 Transaction Set 850.

    The following semantic fields to enter are:

     

     

  4. In the example scenario, enter the following data in their respective fields, and then click "OK" to accept the entries.

     

     

  5. If the semantic rule was added successfully, it will be displayed under the branch "Semantic Rules" under the data segment reference.  In this example, the semantic rule "PurposeCode'EQ'00:USAGE:2:", which has just been added, will show in addition with the other existing semantic rules that were assigned to the same location.

  6. The Semantic Rules Table will also be updated with the new semantic rule that was just added.