DICOM PS3.4 2016c - Service Class Specifications

C.2.2.2.5 Range Matching
Prev | C.2.2.2 Attribute Matching | Next

##### C.2.2.2.5 Range Matching

In the absence of extended negotiation, if the Attribute is a date, then:

1. A string of the form "<date1> - <date2>", where <date1> is less or equal to <date2>, shall match all occurrences of dates that fall between <date1> and <date2> inclusive

2. A string of the form "- <date1>" shall match all occurrences of dates prior to and including <date1>

3. A string of the form "<date1> -" shall match all occurrences of <date1> and subsequent dates

In the absence of extended negotiation, if the Attribute is a time, then:

1. A string of the form "<time1> - <time2>", where <time1> is less or equal to <time2>, shall match all occurrences of times that fall between <time1> and <time2> inclusive

2. A string of the form "- <time1>" shall match all occurrences of times prior to and including <time1>

3. A string of the form "<time1> -" shall match all occurrences of <time1> and subsequent times

If the Attribute is a datetime, then:

1. A string of the form "<datetime1> - <datetime2>", where <datetime1> is less or equal to <datetime2>, shall match all moments in time that fall between <datetime1> and <datetime2> inclusive

2. A string of the form "- <datetime1>" shall match all moments in time prior to and including <datetime1>

3. A string of the form "<datetime1> -" shall match all moments in time subsequent to and including <datetime1>

4. The offset from Universal Coordinated Time, if present in the Value of the Attribute, shall be taken into account for the purposes of the match.

If extended negotiation of combined datetime matching is successful, then a pair of Attributes that are a date and a time, both of which specify the same form of range matching, shall have the concatenated string values of each range matching component matched as if they were a single datetime Attribute.

### Note

For example, a Study Date of "20060705-20060707" and a Study Time of "1000-1800" will match the time period of July 5, 10am until July 7, 6pm, rather than the three time periods of 10am until 6pm on each of July 5, July 6 and July 7, as would be the case without extended negotiation.

Regardless of other extended negotiation, an application may use the value of Timezone Offset From UTC (0008,0201) to adjust values of time and datetime Attributes from the local timezone to UTC for matching. See Section C.2.2.2.1.

### Note

If extended negotiation of combined datetime matching is successful, the timezone offset may effect a change in date if the local time and UTC are on different sides of midnight.

Range matching is not defined for types of Attributes other than dates and times.

Prev | Up | Next
C.2.2.2.4 Wild Card Matching | Home | C.2.2.2.6 Sequence Matching

DICOM PS3.4 2016c - Service Class Specifications