C-FIND DCM Study Date Range

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
parisisal
Posts: 5
Joined: Wed, 2011-06-08, 13:15

C-FIND DCM Study Date Range

#1 Post by parisisal »

Hi,
I want send to the PACS a CFIND Message and retrieve all the studies included ina date range (eg. from 01/01/2011 to 01/06/2011)

Now I can retrieve only the studies to a specific date (01/01/2011).

Code: Select all

	DcmDataset req; 
	req.putAndInsertOFStringArray(DCM_QueryRetrieveLevel, "STUDY");  
	req.putAndInsertOFStringArray(DCM_StudyInstanceUID, "");
	req.putAndInsertOFStringArray(DCM_PatientName, "");
	req.putAndInsertOFStringArray(DCM_StudyDate, "20110101");
There is a way to specify a date range ?

Michael Onken
DCMTK Developer
Posts: 2051
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken »

Hi,

what you want is called Range Matching in the DICOM standard (look for it in part 4). Just do it like this

Code: Select all

req.putAndInsertOFStringArray(DCM_StudyDate, "20110101-20110131"); 
Note that also the following is possible ...

Code: Select all

req.putAndInsertOFStringArray(DCM_StudyDate, "20110101-"); 
... to look for study from beginning of 2011 up to now; and

Code: Select all

req.putAndInsertOFStringArray(DCM_StudyDate, "-20110131"); 
for every study that was acquired before Feburary 2011.

Every server must support this kind of matching for date and time values.

Michael

parisisal
Posts: 5
Joined: Wed, 2011-06-08, 13:15

#3 Post by parisisal »

Thank you very much

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest