are attributes from Parental Level allowed ?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
SIMONP
Posts: 28
Joined: Fri, 2016-06-17, 11:11

are attributes from Parental Level allowed ?

#1 Post by SIMONP »

I have dcmqrscp running with -XF option which checks query validity.
While testing the keys allowed on diflerent query levels I ran the query:
findscu -S -aec SIMON_PC -aet SIMON_PC 213.165.94.158 104 -k QueryRetrieveLevel=STUDY -k PatientName -k PatientID=7432 -k StudyID
and got the response from the server (no errors). Is it a valid query (neither PatientName nor PatientId belog to STUDY level)
I: ---------------------------
I: Find Response: 1 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0005) CS [ISO_IR 100] # 10, 1 SpecificCharacterSet
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,0054) AE [SIMON_PC] # 8, 1 RetrieveAETitle
I: (0010,0010) PN [DVOINENKO O V ] # 14, 1 PatientName
I: (0010,0020) LO [7432] # 4, 1 PatientID
I: (0020,0010) SH [7432] # 4, 1 StudyID
I:

BUT if I run the query with "-k StudyID" removed, server gives an error:
E: findSCP: Database: startFindRequest Failed (Failed: IdentifierDoesNotMatchSOPClass):

Does it mean that at least one attribute belonging to the specified level (STUDY) must be presented in the query ?
If so are the attribute from the parent level (PARENT) allowed ?

Thanks in advance

Simon

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

Re: are attributes from Parental Level allowed ?

#2 Post by Michael Onken »

Hi,

try to include Study Instance UID in your query, it is the unique key for STUDY level queries.

Best,
Michael

SIMONP
Posts: 28
Joined: Fri, 2016-06-17, 11:11

Re: are attributes from Parental Level allowed ?

#3 Post by SIMONP »

Thanks Michael...

So it is legal to specify -k PatientName, patientID when querying on STUDY level, because they belong to parental level of querying (PATIENT) ?
Thanks again

Simon

J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: are attributes from Parental Level allowed ?

#4 Post by J. Riesmeier »

No, it is legal because in Study Root Q/R Information Model they belong to STUDY level.

Post Reply

Who is online

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