How to query using FINDSCU for a specific study UID
Moderator: Moderator Team
How to query using FINDSCU for a specific study UID
I would like to query a PACS system for a specific study uid. So far, I've only figured out a way to dump ALL the UIDs on the PACS system, which is extremely cumbersome. This is what I'm using to do that:
findscu -S -aec ebp-da01FIR 10.183.4.239 104 -k QueryRetrieveLevel=STUDY -k (0020,000d)
If I had a list of study UIDs, one per line, in a text file, how would I search only for the SUIDs in the list. I only want to know whether they exist or not. I am using Windows 10.
Thanks!
findscu -S -aec ebp-da01FIR 10.183.4.239 104 -k QueryRetrieveLevel=STUDY -k (0020,000d)
If I had a list of study UIDs, one per line, in a text file, how would I search only for the SUIDs in the list. I only want to know whether they exist or not. I am using Windows 10.
Thanks!
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to query using FINDSCU for a specific study UID
If you know the value of Study Instance UID, you need to specify it on the command line, too: "findscu -S [...] -k (0020,000d)=1.2.3.4..."
Re: How to query using FINDSCU for a specific study UID
This is my command line:
for /f %i in (suid3.txt) do findscu -v -d -S aec ebp-da01FIR -k (0020,000d)="%i" 10.183.4.239.104
suid3.txt contains two SUIDs, one which should exist and one which should not, one per line:
2.16.840.1.114151.2.60.8.39875.4551.1414209
2.16.80.1.114151.2.60.8.39875.4551.1414209
The bottom one should not exist, as it consists of the top one less one character. The response I get is:
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 43 4e 4f 4b 4c 5f
D: 50 53 33 39 36 36 34 37 39 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209] # 44, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209 ] # 44, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 43 4e 4f 4b 4c 5f
D: 50 53 33 39 36 36 34 37 39 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
for /f %i in (suid3.txt) do findscu -v -d -S aec ebp-da01FIR -k (0020,000d)="%i" 10.183.4.239.104
suid3.txt contains two SUIDs, one which should exist and one which should not, one per line:
2.16.840.1.114151.2.60.8.39875.4551.1414209
2.16.80.1.114151.2.60.8.39875.4551.1414209
The bottom one should not exist, as it consists of the top one less one character. The response I get is:
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 43 4e 4f 4b 4c 5f
D: 50 53 33 39 36 36 34 37 39 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209] # 44, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209 ] # 44, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 43 4e 4f 4b 4c 5f
D: 50 53 33 39 36 36 34 37 39 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: CNOKL_PS3966479
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to query using FINDSCU for a specific study UID
Of course, you also need to specify the QueryRetrieveLevel (=STUDY) for your C-FIND-REQ.
By the way, there are two typos in your call of findscu: the "-" is missing for option "-aec" and the "." before "104" should probably be removed.
By the way, there are two typos in your call of findscu: the "-" is missing for option "-aec" and the "." before "104" should probably be removed.
Re: How to query using FINDSCU for a specific study UID
I changed the command to:
for /f %i in (suid3.txt) do findscu -v -d -S -aec ebp-da01FIR -k (0020,000d)="%i" 10.183.4.239 104
as you suggested. I believe the -S should indicate study level query, no? Is there a better way to specify it? The result appears to be the same:
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209] # 44, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209 ] # 44, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
for /f %i in (suid3.txt) do findscu -v -d -S -aec ebp-da01FIR -k (0020,000d)="%i" 10.183.4.239 104
as you suggested. I believe the -S should indicate study level query, no? Is there a better way to specify it? The result appears to be the same:
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209] # 44, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.840.1.114151.2.60.8.39875.4551.1414209 ] # 44, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 180 + 6 bytes PDU header
D: 02 00 00 00 00 b4 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 1b 01 00 00 00 40 00 00 13 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 32
D: 2e 31 50 00 00 34 51 00 00 04 00 00 80 00 52 00
D: 00 14 31 2e 32 2e 38 34 30 2e 31 31 33 37 30 34
D: 2e 37 2e 30 2e 32 55 00 00 10 44 43 4d 20 50 72
D: 6f 2d 31 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianExplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Accepted (Max Send PDV: 32756)
I: Sending Find Request
D: ===================== OUTGOING DIMSE MESSAGE ====================
D: Message Type : C-FIND RQ
D: Presentation Context ID : 1
D: Message ID : 1
D: Affected SOP Class UID : FINDStudyRootQueryRetrieveInformationModel
D: Data Set : present
D: Priority : medium
D: ======================= END DIMSE MESSAGE =======================
I: Request Identifiers:
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
I:
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0020,000d) UI [2.16.80.1.114151.2.60.8.39875.4551.1414209] # 42, 1 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
I: Peer Aborted Association
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to query using FINDSCU for a specific study UID
No, -S specifies the Q/R Information Model (as "Study Root"). The Q/R Level is specified by "-k QueryRetrieveLevel=STUDY". You need both the Information Model and the Level (see DICOM standard for details).I believe the -S should indicate study level query, no?
Re: How to query using FINDSCU for a specific study UID
So I've changed the query to this:
P:\>findscu -v -d -aec ebp-da01FIR -k QueryRetrieveLevel=STUDY -k (0020,000d)="2.16.80.1.114151.2.60.8.39875.4551.1414209" 10.183.4.239 104 1>>temp.txt
and still I get the same result. No difference between querying for the study which exists and the one which does not.
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 161 + 6 bytes PDU header
D: 02 00 00 00 00 a1 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 08 01 00 03 00 40 00 00 00 50
D: 00 00 34 51 00 00 04 00 00 80 00 52 00 00 14 31
D: 2e 32 2e 38 34 30 2e 31 31 33 37 30 34 2e 37 2e
D: 30 2e 32 55 00 00 10 44 43 4d 20 50 72 6f 2d 31
D: 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Abstract Syntax Not Supported)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
E: No Acceptable Presentation Contexts
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 161 + 6 bytes PDU header
D: 02 00 00 00 00 a1 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 08 01 00 03 00 40 00 00 00 50
D: 00 00 34 51 00 00 04 00 00 80 00 52 00 00 14 31
D: 2e 32 2e 38 34 30 2e 31 31 33 37 30 34 2e 37 2e
D: 30 2e 32 55 00 00 10 44 43 4d 20 50 72 6f 2d 31
D: 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Abstract Syntax Not Supported)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
E: No Acceptable Presentation Contexts
P:\>findscu -v -d -aec ebp-da01FIR -k QueryRetrieveLevel=STUDY -k (0020,000d)="2.16.80.1.114151.2.60.8.39875.4551.1414209" 10.183.4.239 104 1>>temp.txt
and still I get the same result. No difference between querying for the study which exists and the one which does not.
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 161 + 6 bytes PDU header
D: 02 00 00 00 00 a1 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 08 01 00 03 00 40 00 00 00 50
D: 00 00 34 51 00 00 04 00 00 80 00 52 00 00 14 31
D: 2e 32 2e 38 34 30 2e 31 31 33 37 30 34 2e 37 2e
D: 30 2e 32 55 00 00 10 44 43 4d 20 50 72 6f 2d 31
D: 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Abstract Syntax Not Supported)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
E: No Acceptable Presentation Contexts
D: $dcmtk: findscu v3.6.3 2018-02-05 $
D:
D: Request Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID:
D: Their Implementation Version Name:
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 0
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianExplicit
D: =BigEndianExplicit
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
I: Requesting Association
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: Constructing Associate RQ PDU
D: PDU Type: Associate Accept, PDU Length: 161 + 6 bytes PDU header
D: 02 00 00 00 00 a1 00 01 00 00 65 62 70 2d 64 61
D: 30 31 46 49 52 20 20 20 20 20 46 49 4e 44 53 43
D: 55 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 21 00 00 08 01 00 03 00 40 00 00 00 50
D: 00 00 34 51 00 00 04 00 00 80 00 52 00 00 14 31
D: 2e 32 2e 38 34 30 2e 31 31 33 37 30 34 2e 37 2e
D: 30 2e 32 55 00 00 10 44 43 4d 20 50 72 6f 2d 31
D: 32 2e 31 2e 30 2e 30
D: Parsing an A-ASSOCIATE PDU
D: Association Parameters Negotiated:
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.3
D: Our Implementation Version Name: OFFIS_DCMTK_363
D: Their Implementation Class UID: 1.2.840.113704.7.0.2
D: Their Implementation Version Name: DCM Pro-12.1.0.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: FINDSCU
D: Called Application Name: ebp-da01FIR
D: Responding Application Name: ebp-da01FIR
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 32768
D: Presentation Contexts:
D: Context ID: 1 (Abstract Syntax Not Supported)
D: Abstract Syntax: =FINDModalityWorklistInformationModel
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
E: No Acceptable Presentation Contexts
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to query using FINDSCU for a specific study UID
You are now using the "FINDModalityWorklistInformationModel", i.e. Modality Worklist Management and not Query/Retrieve, which is the default for findscu. You also have to specify option "-S" in order to select the Study Root Information Model.
As I already wrote: "You need both the Information Model and the Level (see DICOM standard for details)."
As I already wrote: "You need both the Information Model and the Level (see DICOM standard for details)."
Re: How to query using FINDSCU for a specific study UID
Thanks for reminding me. I fixed it:
P:\>for /f %i in (suid3.txt) do findscu -v -d -S -aec ebp-da01FIR -k QueryRetrieveLevel=STUDY -k (0020,000d)="%i" 10.183.4.239 104 >> temp.txt
and now I get a 190-line response, but except for the two lines that echo back the SUID, all of the lines are the same for the study that exists and the one that does not.
P:\>for /f %i in (suid3.txt) do findscu -v -d -S -aec ebp-da01FIR -k QueryRetrieveLevel=STUDY -k (0020,000d)="%i" 10.183.4.239 104 >> temp.txt
and now I get a 190-line response, but except for the two lines that echo back the SUID, all of the lines are the same for the study that exists and the one that does not.
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to query using FINDSCU for a specific study UID
I personally would remove the "-d" and the "-v" from the command line, now that it works.
Re: How to query using FINDSCU for a specific study UID
If I do that, I get no output whatsoever. Also, yielding the same output whether or not the study exists differs substantially from "working."
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to query using FINDSCU for a specific study UID
Which version of the DCMTK do you use? The current release (3.6.3) or a more recent snapshot (git version)?
-
- DCMTK Developer
- Posts: 2504
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to query using FINDSCU for a specific study UID
Do you see any output when using option "+sr"?
Who is online
Users browsing this forum: Baidu [Spider] and 1 guest