Skip to main content

4.3 Data Element Syntax: Primitives

This message format specification defines nineteen (19) different data elements. Section 4.3.1 defines the encoding form for data elements in general and the syntax for each data element. Section 4.3.2 describes the use of specific data elements as part of the Data Element Contents of a Field data element. A summary of the syntactic form appears in Appendix F; summaries of the data element syntax appear in Appendix G.

4.3.1 Data elements​

This section presents the general syntactic form for all data elements defined by this message format specification and the detailed syntax for each data element. The data elements are presented by syntactic class: primitive data elements (Section 4.3.1.1), and constructors (Section 4.3.1.2).

For convenience, the following terminology is used in this section.

            Term            Meaning

Primitive a Primitive Data Element

Constructor a Constructor Data Element

Element any Data Element

The syntax of each Element is presented in graphic form. The following conventions apply in the diagrams. A single octet is represented as follows.

+--------+
| |
+--------+

Components that vary in length are represented as follows.

+---//---+
| |
+---//---+

Each Element has up to five components: an Identifier, a Length Code, a Qualifier, a Property-List and the Data Element Contents. (See Section 4.2.)

In the diagrams, the contents of the identifier octet is shown as a "P" followed by an identifier represented in binary. (See Figure 4.) The identifier itself is a seven bit quantity, right justified in the identifier octet. Full details on identifier octets appear in Section 4.2.1.

A length code is always represented in the following manner:

+---//---+
|Lxxxxxxx|
+---//---+

A qualifier is always represented in the following manner:

+---//---+
|Qxxxxxxx|
+---//---+

A Property-List (if present) always immediately precedes any occurrence of Data Element Contents.

The Data Element Contents appears in diagrams as one of the following.

  • "element(s)", which may be any data element(s)

  • "anything", which is undefined and may be any combination of bits

  • a specific data element

  • the interpretation to be applied to the bits within the octets that constitute the element (such as ASCII or Integer)

Two data elements have been reserved for special purposes. The Extension data element is provided to allow for future expansion of the possible data elements. The Vendor-Defined data element allows CBMS vendors to define their own data elements. Vendor-Defined data elements are not guaranteed to be unique, since two implementations could define different data elements using the same identifier. Vendor-Defined data elements should be used and interpreted by prior agreement.

In the following sections, each element is presented with its name, compliance classification (BASIC or OPTIONAL), its identifier (both in hexadecimal and in octal), a brief description of its use, and a graphic representation. Each data element description has the following form.

-----------------------------------------------------------------
Data Element (Compliance) identifier identifier
Name ( Category ) octet octet
16 8

Description of the syntax of the data element.

+---//---+
| | Diagram representing data element
+---//---+

-----------------------------------------------------------------

4.3.1.1 Primitives​

The data elements in this section are arranged in alphabetical order by name. (Appendix C presents the identifiers in numeric order.)

ASCII-String             (BASIC)        02        002
16 8
This data element contains a series of ASCII
characters, each character right-justified in one
octet. For seven-bit ASCII characters, the most
significant bit of each octet must be 0.

+--------+---//---+----//-----+
|P0000010|Lxxxxxxx|ASCII chars|
+--------+---//---+----//-----+
Bit-String               (OPTIONAL)     43        103
16 8
This data element contains a series of bits. It uses
the Qualifier data element component to record the
number of bits of padding (as an eight bit unsigned
integer) needed to fill the final octet of the Data
Element Contents to an even octet boundary. These
padding bits have no meaning and occur in the low order
bits of the final octet. The valid values for the
Qualifier component are 0 through 7. The number of
bits in the Data Element Contents is calculated from
the following formula.

8 * number of octets - value of
in the Data Qualifier component
Element Contents

+--------+---//---+---//---+---//---+
|P1000011|Lxxxxxxx|Qxxxxxxx| bits |
+--------+---//---+---//---+---//---+
Boolean                  (OPTIONAL)     08        010
16 8
This data element contains one octet whose value is
either true or false. False is represented by all bits
being 0; true is represented by all bits being 1
(although any non-zero value should be interpreted as
true).

+--------+---//---+--------+
|P0001000|Lxxxxxxx| T or F |
+--------+---//---+--------+
End-of-Constructor       (BASIC)        01        001
16 8
This data element terminates the Data Element Contents
in a constructor data element that has indefinite
length. This data element has no Contents component.
(Use of this element is described in Section 4.2.2.1.)

+--------+---//---+
|P0000001|Lxxxxxxx|
+--------+---//---+
Integer                  (OPTIONAL)     20        040
16 8
This data element contains a 2's complement integer of
variable length, high order octet first. It is
recommended that the data element contents be either 2
or 4 octets long whenever possible.

+--------+---//---+---//---+
|P0100000|Lxxxxxxx| Integer|
+--------+---//---+---//---+
No-Op                    (OPTIONAL)     00        000
16 8
This data element does nothing. No-Op is used whenever
it is necessary to include a data element that means
"no operation". It is a short placeholder.

+--------+---//---+
|P0000000|Lxxxxxxx|
+--------+---//---+
Padding                  (OPTIONAL)     21        041
16 8
This data element is used to fill any number of octets.
The contents of a Padding element are undefined and
convey no information.

+--------+---//---+---//---+
|P0100001|Lxxxxxxx|anything|
+--------+---//---+---//---+