An attribute is a component of a code value. When you create reference data sets and code lists, you define attributes that code values must consist of. Then when you add code values, you enter a value for each attribute.
By default, the attributes defined for all code values are the Name, Code, and
Description attributes. The Name and Code attributes are required attributes, so you
cannot delete these attributes. For each code value, you must enter a value for these
attributes. The Description attribute is not required, so you can delete the Description
attribute if you do not need it.
For example, you might have a code list for Enterprise Country Codes. When you add a code
value for the US country code, you enter the
United States of
America
value in the Name attribute. You enter the
US
value in the Code attribute. This means that the US
country code value consists of the
United States of America
and
the
US
attribute values.
The following image shows the Enterprise Country Codes code list with values in the Name
attribute and Code attribute for each code value:
You can set default values for predefined and custom attributes in a code list. When you
set a default value, you don't have to add the same set of values multiple times.
For example, if you have to add the office location for all the employees in the Employee
Details code list, you can add the office location as a default value for the Location
attribute. When you add code values, the Location attribute displays the default value.