Query and Retrieve

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
sivasankari
Posts: 20
Joined: Thu, 2005-03-10, 11:28
Location: India
Contact:

Query and Retrieve

#1 Post by sivasankari »

Hi Dhaval,
Nice to hear from u.
Unfortunately, at present, I am trying to discover how Q/R works using dcmtk, in windows. My next step is to make all the dicom services (worklist, Q/R, store, print) to run on linux.

While working with windows, initially I was not aware of which SCP to use for Q/R, for which I got a tip from OFFIS-dcmtk to use ‘imagectn’.
I configured my peer port details in ‘imagectn.cfg’ as follows

# Global Configuration Parameters
NetworkType = "tcp"
NetworkTCPPort = 104
MaxPDUSize = 16384
MaxAssociations = 16
Display = "yes"

HostTable BEGIN
movescu = (MOVESCU, localhost, 104)
HostTable END

VendorTable BEGIN
"DCMTK AET" = movescu
VendorTable END

AETable BEGIN
COMMON C:\dicomproject\Wlm\COMMON\ RW (200, 1024mb) ANY
AETable END

I have a folder ‘COMMON’ in my working directory ,which has a set of .dcm files from where I think my SCP retrieves images. And my imagectn.cfg and imagectn.exe is also present in ‘COMMON’ folder.
I have a folder ‘MOVESCU’ where my findscu.exe is present.

First step: run imagectn.exe by typing following command,
C:\dicomproject\Wlm\COMMON>imagectn –v 104

Second: open another command window and run ur scu.
I used findscu,
C:\dicomproject\Wlm\MOVESCU>findscu –v –P –k 0008,0052 = “PATIENT” –k 0010,0020 = “ACN000001” –k 0020,000D=”1.2.840.10008.5.1.4.1.2.1.1” --call localhost 104
I got the following output on the command window,

Requesting Association
Association Accepted <Max Send PDU: 16372>
Find SCU RQ: MsgID 1
REQUEST:

#Dicom-Data-Set
#Used TransferSyntax: UnknownTransferSyntax
<0008,0052> CS [PATIENT] # 8,1 QueryRetrieveLevel
<0010,0020> LO [ACN000001] # 10,1 PatientID
<0020,000d> UI =FINDPatientRootQueryRetrieveInformationModel # 28,1 StudyInstanceUID
C-Find RSP: MsgID: 1 [Status =Success]
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Data Set: Not Present
Releasing Association

What I find in this research is that my SCP and SCU are associated very well. But, though I have image file of the patient with ID=ACN000001 in my ‘COMMON’ directory, why I am getting “Data Set: Not Present”. What am I supposed to get if I run my query in findscu?
I have the same problem with ‘movescu’…

Let me know any relevant information.
Thanx in advance,
shankari

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Try the following:

Code: Select all

findscu -v -P -k 0008,0052="PATIENT" -k 0010,0020="ACN000001" -k 0010,0010 --call <aetitle> localhost 104

sivasankari
Posts: 20
Joined: Thu, 2005-03-10, 11:28
Location: India
Contact:

not yet resolved!

#3 Post by sivasankari »

Hello Riesmeier,
I tried the code as per your suggestion.
findscu -v -P -k 0008,0052="PATIENT" -k 0010,0020="ACN000001" -k 0010,0010 --call COMMON localhost 104
I get the following output in my SCP,
Association Received (cactus:FINDSCU -> COMMON) Tue Mar 22 11:53:26 2005
Association Acknowledged (Max Send PDV: 16372)
Received Find SCP: C-Find RQ: MsgID: 1
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Priority: 2
Data Set: Present
Find SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO [ACN000001] # 10, 1 PatientID
Find SCP Response 1 [status: Success]
Association Release

This time I am getting response as “Data Set: Present”. But I wonder why it is not giving the patient’s name as ”SMITH^HAROLD”.
And in my SCU, I get the following output,
Requesting Association
Association Accepted (Max Send PDV: 16372)
Find SCU RQ: MsgID 1
REQUEST:

# Dicom-Data-Set
# Used TransferSyntax: UnknownTransferSyntax
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLe
vel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO [ACN000001] # 10, 1 PatientID
--------
C-Find RSP: MsgID: 1 [Status=Success]
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Data Set: Not Present
Releasing Association

Please guide me if I am proceeding wrongly.
Last edited by sivasankari on Tue, 2005-03-22, 07:54, edited 1 time in total.

sivasankari
Posts: 20
Joined: Thu, 2005-03-10, 11:28
Location: India
Contact:

not yet resolved!

#4 Post by sivasankari »

Hello Riesmeier,
I tried the code as per your suggestion.
findscu -v -P -k 0008,0052="PATIENT" -k 0010,0020="ACN000001" -k 0010,0010 --call COMMON localhost 104
I get the following output in my SCP,
Association Received (cactus:FINDSCU -> COMMON) Tue Mar 22 11:53:26 2005
Association Acknowledged (Max Send PDV: 16372)
Received Find SCP: C-Find RQ: MsgID: 1
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Priority: 2
Data Set: Present
Find SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLevel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO [ACN000001] # 10, 1 PatientID
Find SCP Response 1 [status: Success]
Association Release

This time I am getting response as “Data Set: Present”. But I wonder why it is not giving the patient’s name as ”SMITH^HAROLD”.
And in my SCU, I get the following output,
Requesting Association
Association Accepted (Max Send PDV: 16372)
Find SCU RQ: MsgID 1
REQUEST:

# Dicom-Data-Set
# Used TransferSyntax: UnknownTransferSyntax
(0008,0052) CS [PATIENT] # 8, 1 QueryRetrieveLe
vel
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO [ACN000001] # 10, 1 PatientID
--------
C-Find RSP: MsgID: 1 [Status=Success]
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Data Set: Not Present
Releasing Association

Please guide me if I am proceeding wrongly.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1459
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#5 Post by Marco Eichelberg »

It seems that imagectn simply did not find the patient ID in the database (the index.dat file). Did you set this up correctly according to the installation instructions? Just copying an image file into the database directory will not work.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest