DICOM PS3.17 2022c - Explanatory Information

YYYY.2.2 Record Key and Continuation

Deterministic behavior is achieved by the SCP imposing a sorting order on the returned records that is based on a unique value for each entry, the Record Key (0008,041B). In the query, the SCU can request return of the Record Key (0008,041B) in each response. When a "partially completed" status is returned, or if there is a communications failure during the transaction, the value in the last received response can be used in the next query to request the SCP to continue returning responses for matching entities with next higher unique value as per the sorting order.

The structure and content of Record Key (0008,041B) values is totally SCP implementation-specific, and opaque to the SCU. Values may be permanent, or may be constructed dynamically during query processing. For SCPs that use a relational database, the database primary record key might be used as the unique Record Key (0008,041B) value, although an implementation might choose to use some other element or some type of session-oriented key. The intention is that the SCP manage record keys such that the SCU will be able to use them to obtain a complete inventory in a sequence of Queries in a reasonable time period, recognizing that for large inventories that time period may be substantial. If there are limitations on the lifetime of the Record Key (0008,041B), they should be documented in the SCP Conformance Statement.

DICOM PS3.17 2022c - Explanatory Information