The Relational Conditions (Syntax Rules) govern the required presence
of the following:
a simple data element and a composite element based on the presence of
other elements within the same data segment, and
a component element based on the presence of other component elements
within the same composite element.
Relational conditions have:
an identifier
that indicates the condition being applied (P, R, E, C, L), and
a list of position numbers indicating the position of
the element being affected by the condition. There must be at
least two position numbers. The order of the position number is dependent
on the condition and is crucial to the way it is interpreted.
A data segment or composite element may be subjected to more than one relational
condition. For example, C0607P1011.
The relational conditions are as follows:
P (PAIRED OR MULTIPLE).
If a specified element is present, then all specified elements must
also be present.
For example . The element AD1 below has syntax rule P0304, which means
that if element at position 03 (DE 1313) or position 04 (DE 344) is
present then both element must be present.
REF
ID
NAME
REQ
TYPE
MIN/MAX
01
1606
Animal Disposition Code
M
ID
2/2
02
373
Date
M
DT
8/8
03
1313
Test Period or Interval Value
X
N0
1/6
04
344
Unit of Time Period or Interval
X
ID
2/2
R (REQUIRED).
At least one element specified must exist. All specified elements can be
used.
For example . The element AOC below has syntax rule R0304, which means
that at least the element at position 03 (DE 373) or position 04 (DE
1313) must be present. Both can also be present.
REF
ID
NAME
REQ
TYPE
MIN/MAX
01
1620
Offspring Count Code
M
ID
2/2
02
609
Count
X
N0
1/9
03
373
Date
X
DT
8/8
04
1313
Test Period or Interval Value
X
N0
1/6
05
344
Unit of Time Period or Interval
X
ID
2/2
E (EXCLUSION).
No more than one element can be present.
For example. The element ARC below has syntax rule E0203, which means
that only one of the elements at position 02 (DE 1607) or position 03 (DE
1611) can be present. Both elements can both be absent, but both
cannot be present.
REF
ID
NAME
REQ
TYPE
MIN/MAX
01
609
Count
M
N0
1/9
02
1607
Test Type Code
X
ID
2/2
03
1611
Observation Type Code
X
ID
2/2
C (CONDITIONAL).
If the first element is present then all other remaining elements must be
present. However, if all elements other than the first are present,
the first element need not be present.
For example. The element BJF below has syntax rule C040506, which
means that if element at position 04 (DE 154) is present then all elements
remaining at position 05 (DE 19) and 06 (DE 156) must also be
present . However, if elements at position 05 and 06
are present, the first element at position 04 need not be
present.
REF
ID
NAME
REQ
TYPE
MIN/MAX
01
353
Transaction Set Purpose Code
M
ID
2/2
02
640
Transaction Set Type Code
M
ID
2/2
03
638
Rule 260 Junction Code
M
ID
1/5
04
154
Standard Point Location Code
X
ID
6/9
05
19
City Name
X
AN
2/30
06
156
State or Province Code
X
ID
2/2
07
26
Country Code
X
ID
2/3
L (LIST CONDITIONAL).
If the first element is present then at least one of the remaining must be
present. However, if an element other than the first is present, the
first element need not be present
For example. The element G35 below has syntax rule L030102, which
means that if the first element at position 03 (DE 782) is present,
then at least one of the elements at position 01 (DE 422) or 02
(DE 1522) must be present; or both can be present. However, element 01 or
02 may be present without requiring the first element at 03 to
be present.