findscu

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
swaroopcool21
Posts: 12
Joined: Wed, 2011-03-23, 12:40
Location: Alkmaar, The Netherlands
Contact:

findscu

#1 Post by swaroopcool21 »

Hi,
I am a newbie with dcmtk.

I have setup a DICOM server (conquest). I have inserted a few
dicom images into it. These are also viewable from itz web-interface.
I have a patient named `b_1tumour'.

I want to see this result with findscu. Please help me as to how to use it.
I referred to its man page. However, I am not able to understand what is
`dcmfile_in' dicom file.

Please help.
thanks!
---
Manohar Kuse
SenoCAD Research
Alkmaar, The Netherlands

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 »

... then you didn't read the NOTES section of the man page - at least not very carefully.

swaroopcool21
Posts: 12
Joined: Wed, 2011-03-23, 12:40
Location: Alkmaar, The Netherlands
Contact:

#3 Post by swaroopcool21 »

Hi again,

I went through the NOTES section carefully.
But the problem is that I dont get a response back from the dicom server.

I have a conquest running on localhost on port 5678. It
has data. I want to find the patient by the name `Patient_001^G_001'
My request file looks like following (which i call `req')

# query patient names and IDs
# (0008,0052) CS [PATIENT] # QueryRetrieveLevel
# (0010,0010) PN [Patient_001^G_001] # PatientName
# (0010,0020) LO [1190252445] # PatientID
I converted `req' to `req.dcm' with `dump2dcm'

After that, I have used the following command
findscu -P localhost 5678 req.dcm

However, I dont get any response from the server on this.
Please help me..
---
Manohar Kuse
SenoCAD Research
Alkmaar, The Netherlands

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

#4 Post by Michael Onken »

Hi,

Your query looks good, in general. I guess you are also sure that you use the correct patient ID, right? (then you do not need to send the patient name, anyway).

Please use -v and -d option in findscu and then insert the log in the forum so we see what is going on in case you do not understand the error given.

Best regards,
Michael

swaroopcool21
Posts: 12
Joined: Wed, 2011-03-23, 12:40
Location: Alkmaar, The Netherlands
Contact:

#5 Post by swaroopcool21 »

Hi again,

I have removed the patientname field from request file and i get a
response from server.

following is the response with "-v -d"

Now,
which line in this dump suggest that the requested patient was found.??
==============================================================
Request Parameters:
Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Our Implementation Version Name: OFFIS_DCMTK_354
Their Implementation Class UID:
Their Implementation Version Name:
Application Context Name: 1.2.840.10008.3.1.1.1
Calling Application Name: FINDSCU
Called Application Name: ANY-SCP
Responding Application Name: resp AP Title
Our Max PDU Receive Size: 16384
Their Max PDU Receive Size: 0
Presentation Contexts:
Context ID: 1 (Proposed)
Abstract Syntax: =FINDPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Proposed Transfer Syntax(es):
=LittleEndianExplicit
=BigEndianExplicit
=LittleEndianImplicit
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
Requesting Association
Constructing Associate RQ PDU
PDU Type: Associate Accept, PDU Length: 190 + 6 bytes PDU header
02 00 00 00 00 be 00 01 00 00 41 4e 59 2d 53 43
50 20 20 20 20 20 20 20 20 20 46 49 4e 44 53 43
55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
2e 31 50 00 00 3e 51 00 00 04 00 00 40 00 52 00
00 22 31 2e 32 2e 38 32 36 2e 30 2e 31 2e 33 36
38 30 30 34 33 2e 32 2e 31 33 35 2e 31 30 36 36
2e 31 30 31 55 00 00 0c 31 2e 34 2e 31 36 2f 4f
54 48 45 52
Association Parameters Negotiated:
Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.5.4
Our Implementation Version Name: OFFIS_DCMTK_354
Their Implementation Class UID: 1.2.826.0.1.3680043.2.135.1066.101
Their Implementation Version Name: 1.4.16/OTHER
Application Context Name: 1.2.840.10008.3.1.1.1
Calling Application Name: FINDSCU
Called Application Name: ANY-SCP
Responding Application Name: ANY-SCP
Our Max PDU Receive Size: 16384
Their Max PDU Receive Size: 16384
Presentation Contexts:
Context ID: 1 (Accepted)
Abstract Syntax: =FINDPatientRootQueryRetrieveInformationModel
Proposed SCP/SCU Role: Default
Accepted SCP/SCU Role: Default
Accepted Transfer Syntax: =LittleEndianExplicit
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
Association Accepted (Max Send PDV: 16372)
Find SCU RQ: MsgID 1
REQUEST:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLevel
(0010,0020) LO [1190252445] # 10, 1 PatientID
--------
DIMSE Command To Send:

# Dicom-Data-Set
# Used TransferSyntax: UnknownTransferSyntax
(0000,0000) UL 0 # 4, 1 CommandGroupLength
(0000,0002) UI =FINDPatientRootQueryRetrieveInformationModel # 28, 1 AffectedSOPClassUID
(0000,0100) US 32 # 2, 1 CommandField
(0000,0110) US 1 # 2, 1 MessageID
(0000,0700) US 2 # 2, 1 Priority
(0000,0800) US 1 # 2, 1 DataSetType
DIMSE sendDcmDataset: sending 88 bytes
DIMSE sendDcmDataset: sending 34 bytes
DIMSE receiveCommand
DIMSE receiveCommand: 1 pdv's (88 bytes), presID=1
DIMSE Command Received:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianImplicit
(0000,0002) UI =FINDPatientRootQueryRetrieveInformationModel # 28, 1 AffectedSOPClassUID
(0000,0100) US 32800 # 2, 1 CommandField
(0000,0120) US 1 # 2, 1 MessageIDBeingRespondedTo
(0000,0800) US 258 # 2, 1 DataSetType
(0000,0900) US 65280 # 2, 1 Status
DIMSE receiveFileData: 34 bytes read (last: YES)
RESPONSE: 1 (Pending)

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLevel
(0010,0020) LO [1190252445] # 10, 1 PatientID
--------
DIMSE receiveCommand
DIMSE receiveCommand: 1 pdv's (88 bytes), presID=1
DIMSE Command Received:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianImplicit
(0000,0002) UI =FINDPatientRootQueryRetrieveInformationModel # 28, 1 AffectedSOPClassUID
(0000,0100) US 32800 # 2, 1 CommandField
(0000,0120) US 1 # 2, 1 MessageIDBeingRespondedTo
(0000,0800) US 257 # 2, 1 DataSetType
(0000,0900) US 0 # 2, 1 Status
C-Find RSP: MsgID: 1 [Status=Success]
AffectedSOPClassUID: =FINDPatientRootQueryRetrieveInformationModel
Data Set: Not Present
Releasing Association

==============================================================
---
Manohar Kuse
SenoCAD Research
Alkmaar, The Netherlands

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

#6 Post by Michael Onken »

Hi,

well, seems like it works :-) This is your response:
# Used TransferSyntax: LittleEndianImplicit
(0000,0002) UI =FINDPatientRootQueryRetrieveInformationModel # 28, 1 AffectedSOPClassUID
(0000,0100) US 32800 # 2, 1 CommandField
(0000,0120) US 1 # 2, 1 MessageIDBeingRespondedTo
(0000,0800) US 258 # 2, 1 DataSetType
(0000,0900) US 65280 # 2, 1 Status
DIMSE receiveFileData: 34 bytes read (last: YES)
RESPONSE: 1 (Pending)

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianExplicit
(0008,0052) CS [PATIENT ] # 8, 1 QueryRetrieveLevel
(0010,0020) LO [1190252445] # 10, 1 PatientID
The response after that with status SUCCESS is always returned last, so one patient is found exactly.

:-)

Michael

P.S: You can also use option "-X" to write all responses to response files (rsp0001.dcm, ...) in DICOM format.

swaroopcool21
Posts: 12
Joined: Wed, 2011-03-23, 12:40
Location: Alkmaar, The Netherlands
Contact:

#7 Post by swaroopcool21 »

tried this,
with -X
findscu -X ew.dcm -d -v -P localhost 5678 req.dcm

but it gives error
"error: Invalid parameter value localhost"

please help with this options..
---
Manohar Kuse
SenoCAD Research
Alkmaar, The Netherlands

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

#8 Post by Jörg Riesmeier »

The -X option does not expect a parameter since the filenames are generated automatically:

Code: Select all

  -X    --extract
          extract responses to file (rsp0001.dcm, ...)
So your call to findscu is incorrect. The correct call would be:

Code: Select all

findscu -X -v -d -P localhost 5678 req.dcm

Post Reply

Who is online

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