Extend an availability lookup entity

About this task

To add a new column to an availability lookup table, you first must extend the lookup entity to define the new column. The entity you extend depends on the type of product model pattern you want to change. This scenario extends the CovTermOptLookup entity with a new lookup entity extension column to capture the product for which the coverage term option is available or unavailable.

Follow these instructions to define the lookup entity extension in CovTermOptLookup.etx.

Procedure

  1. In the Project window in Studio, navigate to configuration > config > metadata > entity.
  2. Right-click CovTermOptLookup.eti and select New > Entity Extension to display the Entity Extension dialog box. Accept the default file name extension by clicking OK.
    Studio opens a new extension file named CovTermOptLookup.etx.
  3. In the Entity editor for CovTermOptLookup.etx, select the root element. In the element drop-down list adjacent to the Add button, select column to add a new column to the lookup table.
  4. Add the following values to new column define the new ProductCode:

    Property

    Value

    name

    ProductCode

    type

    varchar

    desc

    code of product

  5. With your new column selected in the Entity editor, select params from the element drop-down list to a a columnParam element.
  6. Add the following values to the new columnParam:

    Property

    Value

    name

    size

    value

    50