A codelist can limit the number of permitted values of an attribute. In data modelling terms, a codelist can be seen as an enum(eration) of values allowed. An example codelist of the attribute ‘primaryColors’ could be the enumeration [‘yellow’, ‘blue’, ‘red’], meaning the attribute can only take either one of the three values mentioned. In practice, SIVI AFS codelists don’t have ‘meaningful’ codes, but code values corresponding to code descriptions published in the data catalog. Therefore, the ‘real’ example of the primaryColors-codelist would probably be [‘1’, ‘2’, ‘3’], with all three values corresponding to code descriptions yellow, blue and red.
AFD contains over 500 codelists. All codelists from AFD 1.0 are also included in AFD 2.0. However, AFD 2.0 contains additional codelists that are not in the scope of AFD 1.0, like the codelist ‘Function variants’ (APIVAR) to indicate the API functions.
In AFD 2.0 Online you can find a complete and up-to-date overview of all codelists. More documentation on the use of SIVI AFS is available in chapter Where to find elements of SIVI AFS.
There are two types of codelists: standard and hierarchical. A more thorough description of standard codelists and hierarchical codelists follows in the next sections.
Post your comment on this topic.