Query and Retrieve
Query/Retrieve is a set of DICOM services that allows a device (such as a workstation or viewer) to search for and retrieve studies from a PACS. This process is fundamental to the workflow of any institution handling medical images.
What is a Query? (C-FIND)
A Query, implemented through the DICOM C-FIND service, is the mechanism that allows a device to search study metadata on a PACS. Instead of requesting images directly, the device sends a request with specific search criteria.
For example, a workstation can send a C-FIND to search all studies of a specific patient. The PACS receives this query, searches its database and returns a list of results matching the criteria. The response does not contain the images, only the metadata (patient information, study date, description, etc.).
What is a Retrieve?
Once the user has identified the studies needed through a Query, the next step is to retrieve them. The Retrieve service transfers the images from the PACS to the device that requested them.
There are two main methods to perform a Retrieve: C-MOVE and C-GET.
C-MOVE
With C-MOVE, the device that initiated the query (the client) asks the PACS (the server) to send the images to a specific destination. Note that the destination does not have to be the client that started the query.
The flow is:
- The client tells the PACS: "Please send study XYZ to the device with AE Title 'MY_VIEWER'".
- The PACS opens a new DICOM connection to 'MY_VIEWER' and starts sending the images.
This is the most common method in clinical environments.
C-GET
With C-GET, the client asks the PACS to send the images through the same DICOM connection that was used for the request.
The flow is simpler:
- The client tells the PACS: "Please send me study XYZ now".
- The PACS starts sending the images through the existing connection.
Although seemingly simpler, C-GET is less common. One reason is that it requires the PACS to handle multiple operations on the same connection, which can be more complex to implement.
Configuration: C-MOVE vs C-GET
This is a key point of confusion and a fundamental aspect of DICOM configuration. The need to configure the client data in the PACS varies significantly between C-MOVE and C-GET.
C-MOVE: Mandatory Bilateral Configuration
When using C-MOVE, configuration is strictly bilateral. The workflow requires it:
- The Client connects to the PACS: The PACS must "know" the client (its AE Title and IP address) to even allow it to perform the query (C-FIND) and C-MOVE request. This is the first configuration layer.
- The PACS connects to the Destination: Upon receiving the C-MOVE instruction, the PACS must open a new connection to the destination device to send the images (using C-STORE). To do so, the PACS must have the destination data in its configuration table (AE Title, IP and port).
In short, with C-MOVE, the PACS needs both the client requesting the operation and the destination receiving the images registered.
C-GET: A Simpler Configuration
C-GET simplifies this process. In this case, the PACS does not need to open a new connection. Images are sent back to the client through the same connection the client used to make the C-GET request.
Because of this, the PACS does not need the client data pre-configured in its destinations table to perform the transfer. This is why C-GET can be easier to configure in some scenarios, even though it is less common in clinical practice.
For more details on configuring clients in Proteus PACS, see the PACS Configuration section.