Files > DATA ELEMENT

parent
799.2
name
DATA ELEMENT
number
799.22
Fields
#NameLocationTypeDetailsIndexDescription
.01data name0;1FREE TEXTThe value of this field is the name of the data element supported by the search engine. The names must be unique in the file context. The data element is supported if either the routine that processes the file can load the value using an application API or there is a DBIA that allows access to the corresponding field via the 'GETS^DIQ' FileMan procedure.
.02code(+)0;2NUMERICCThis field stores the unique code of the data element. Data elements can be referenced either by their names (only in the file context) or by their codes. You can enter "+" to get the next available code for a new data element.
1loader api(+)0;5NUMERICThis field stores the code of the API that is used to load a value of the data element defined by the descriptor. The descriptor of this API must be defined in the "API" multiple (subfile #799.23). The only exception is the API #1. It is always considered as the 'GETS^DIQ' FileMan procedure.
2required0;3BOOLEAN0:NO
1:YES
ARIf the value of the data element is required by the search engine itself, the REQUIRED field should be set to "YES" so that the value of the element will be loaded whether it is referenced by the selection rules or not.
4value type(+)0;4SET OF CODESE:External
I:Internal
EI:Both
The VALUE TYPE field contains the code of the data element value type(s) supported by the search engine. The corresponding API must be able to load the value(s).
4.1external data4.1;E1,50FREE TEXTThis field can contain any optional data that helps to load the external value of the data element (variable name, subscript, position, etc.). Many data elements use the following data structure: PN[^SN]. The 'SN' is a subscript of the node in the local array (optional) and the 'PN' is the number of the "^"-piece of the node value. These values are used to extract the value from the local variable created by the API.
4.2internal data4.2;E1,50FREE TEXTThis field can contain any optional data that helps to load the internal value of the data element (variable name, subscript, position, etc.). Many data elements use the following data structure: PN[^SN]. The 'SN' is a subscript of the node in the local array (optional) and the 'PN' is the number of the "^"-piece of the node value. These values are used to extract the value from the local variable created by the API.
6field number0;6NUMERICThe FIELD NUMBER field holds the number of the field (referenced hereinafter as the search field) that the data element is loaded from. If the FileMan API #1 (GETS^DIQ) is used to load the value of the data element, the FIELD NUMBER field must have a value. Otherwise, this field can be empty. However, it is recommended to populate it for clarity.

Error: Invalid Global File Type: 799.22