DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Wed, 2018-11-21, 10:31

All times are UTC + 1 hour




Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon, 2018-11-05, 19:06 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 2004
Location: Oldenburg, Germany
Even without redirecting the output?


Top
 Profile  
 
PostPosted: Mon, 2018-11-05, 19:10 
Offline

Joined: Tue, 2018-10-23, 08:06
Posts: 15
Correct. Even if I don't redirect the input, the +sr appears to do nothing.


Top
 Profile  
 
PostPosted: Mon, 2018-11-05, 19:37 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 2004
Location: Oldenburg, Germany
In case you do not use any additional command line option (than the ones you've listed in your previous postings), something is fishy...

I just tested DCMTK's findscu in version 3.6.3 on Linux and Windows and the default behavior (i.e. even without +sr) is as expected.


Top
 Profile  
 
PostPosted: Mon, 2018-11-05, 19:41 
Offline

Joined: Tue, 2018-10-23, 08:06
Posts: 15
I don't use any additional parameters. Did you also test against an SUID that exists and one that does not? What did your output look like?


Top
 Profile  
 
PostPosted: Mon, 2018-11-05, 19:51 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 2004
Location: Oldenburg, Germany
In case of a matching Study Instance UID, I get the C-FIND-RSP dataset. In case the Study does not exist, the output is empty (since there is no matching dataset).


Top
 Profile  
 
PostPosted: Mon, 2018-11-05, 20:04 
Offline

Joined: Tue, 2018-10-23, 08:06
Posts: 15
Well, just for grins, let me double-check that the study I believe to exist really does exist. I think I checked that at the beginning, but one can never be too sure. :-)


Top
 Profile  
 
PostPosted: Mon, 2018-11-05, 20:39 
Offline

Joined: Tue, 2018-10-23, 08:06
Posts: 15
I tried a new, verified study UID and then took out one character to make it fail. This was my command line:

for /f %i in (suid.txt) do findscu -v -S -aec ebp-da01FIR -k QueryRetrieveLevel=STUDY -k (0020,000d)="%i" 10.183.4.239 104 >> temp.txt

Here's what I got:

I: Requesting Association
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
I: (0020,000d) UI [2.16.840.1.114151.2780550056125408276825261125116939723720181030] # 64, 1 StudyInstanceUID
I:
I: ---------------------------
I: Find Response: 1 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [ebp-da01FIR ] # 12, 1 RetrieveAETitle
I: (0020,000d) UI [2.16.840.1.114151.2780550056125408276825261125116939723720181030] # 64, 1 StudyInstanceUID
I:
I: Received Final Find Response (Success)
I: Releasing Association
I: Requesting Association
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request (MsgID 1)
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
I: (0020,000d) UI [2.16.80.1.114151.2780550056125408276825261125116939723720181030] # 64, 1 StudyInstanceUID
I:
I: Received Final Find Response (Success)
I: Releasing Association

So the good one has this line:

I: (0008,0054) AE [ebp-da01FIR ] # 12, 1 RetrieveAETitle

and the bad one does not. I can work with this. Thanks for all your help!


Top
 Profile  
 
PostPosted: Tue, 2018-11-06, 23:13 
Offline

Joined: Tue, 2018-10-23, 08:06
Posts: 15
So I was wrong before. I am getting exactly the same result whether the study UID exists on the called AET or not. What am I doing wrong? Thanks again!


Top
 Profile  
 
PostPosted: Wed, 2018-11-07, 19:56 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 2004
Location: Oldenburg, Germany
No, you don't get the same result: for 2.16.840.1.114151.2780550056125408276825261125116939723720181030 you get a response dataset (first C-FIND-RSP message with status PENDING), for 2.16.80.1.114151.2780550056125408276825261125116939723720181030 you don't get a response dataset (but only the final C-FIND-RSP message with status SUCCESS). This is exactly how the DICOM Query/Retrieve service works.


Top
 Profile  
 
PostPosted: Wed, 2018-11-07, 21:33 
Offline

Joined: Tue, 2018-10-23, 08:06
Posts: 15
Oh. Cool. I thought Pending meant it hadn't decided yet. Does Pending actually mean that it's confirmed that the study present on the called AE? That's actually all I'm looking for anyway. Thanks!


Top
 Profile  
 
PostPosted: Wed, 2018-11-07, 22:23 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 2004
Location: Oldenburg, Germany
If you don't know what the DIMSE status PENDING means, you don't know how the Q/R Service (and the underlying C-FIND message) works ;-)

Quote:
Does Pending actually mean that it's confirmed that the study present on the called AE?

PENDING means "Matching are continuing". Actually, there are two different types of PENDING: status code FF00 means "Current Match is supplied and any Optional Keys were supported in the same manner as Required Keys." and FF01 means "Warning that one or more Optional Keys were not supported for existence and/or matching for this Identifier." (see DICOM standard).

The final C-FIND-RSP message usually has the DIMSE status SUCCESS (0000), i.e. no error occurred.


Top
 Profile  
 
PostPosted: Thu, 2018-11-08, 17:53 
Offline

Joined: Tue, 2018-10-23, 08:06
Posts: 15
You're right, I don't. Thanks for clearing it up!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group