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

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

  1. Highlight the selected composite 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 composite element reference.  As an example, we will add the semantic rule (see below) to the composite element C001 (Composite Unit Of Measure) under the data segment reference MEA (Measurements).  The composite element C001 has an ordinal number 4 in the segment reference MEA, which in turn, has an ordinal number 22 in the ASC/X12 Transaction Set 850.

If data element 353 at BEG0200 is equal to "00" then composite element C001 at MEA2000 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 on the composite 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 segment reference.  The Segment Reference Ordinal field displays the ordinal number of the data segment reference containing the composite element.  The Composite Element Ordinal field displays the ordinal number of the composite element to which the semantic rule will be added.  In the example shown, the semantic rule is being added to the composite element at ordinal 4 in the data segment reference, which has an ordinal 22 in the ASC/X12 Transaction Set 850.

    The following 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 successfully added, it will be displayed under the branch "Semantic Rules" under the composite element 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 Rule Table will also be updated with the new semantic rule that was just added.