dcmqrdb (dcmqrscp------eFilm)

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
santosh
Posts: 61
Joined: Tue, 2007-07-31, 09:27
Location: Bangalore (India)

dcmqrdb (dcmqrscp------eFilm)

#1 Post by santosh »

Hi team,

I am unable to retrieve the dicom images even though i get a list of patient when i query the server ...i am running the dcmqrscp and scu is eFilm..
I run the server using the command line

dcmqrscp.exe -v -c D:\temp\dcmqrscp.cfg -dhl

the configuration file is as follows..

#-----------------------------------------------------------------------
#
# Example configuration file for the dcmqrdb and dcmqrti applications.
#
#-----------------------------------------------------------------------

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

HostTable BEGIN
#
# The HostTable defines symbolic names for collections of network
# DICOM Application Entities. A symbolic name can represent a single
# application entity or it can represent a group of application entities.
# Each DICOM application entity is defined by a triple consisting of
# Application Entitiy Title, host name and TCP/IP port number.
#
# Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), ... |
# SymbolicName = SymbolicName, ...
#
# NOTE: in the current implementation you cannot substitute an IP address
# for a hostname.
#
offis1 = (OFFIS, localhost, 8600)
medsphere1 = (MEDSPHERE, localhost,9600)
medsphere = (MedSphere, localhost,8600)
findscu = (FINDSCU, localhost, 8600)
movescu = (MOVESCU, localhost, 8600)
storescu = (STORESCU, localhost, 8600)
medsphere2 = (MedSphere, MACHINE3, 4006)
medsphere3 = (MedSphere, machine1, 4006)
medsphere4 = (MedSphere, tapesh, 8600)

ANY = offis1 , medsphere1 , medsphere , findscu , movescu , storescu , medsphere2 , medsphere3 , medsphere4

#
HostTable END

VendorTable BEGIN
#
# The VendorTable is used by the dcmqrdb and dcmqrti applications.
# You can give a vendor name (r.h.s. entry below) to the dcmqrti
# program and it will talk to all hosts and AEs of the vendor.
# The dcmqrdb program can use the vendor table to restrict move destination
# to hosts belonging to a vendor.
# Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
# as the vendor name to display above images.
#
# The format:
# VendorName = SymbolicName
# The symbolic name should be defined in the HostTable.
#
"MedSphere CT Company" = ANY
#
VendorTable END

AETable BEGIN
#
# Each row of the AETable defines an Application Entities (AE) Title known
# to the dcmqrdb application. Each AE Title represents a separate
# image database located in the specified file system directory (storage area).
# Each AE Title has read/write, quota and peer access restrictions.
#
# Entry Format: AETitle StorageArea Access Quota Peers
# AccessFormat: R | RW | W
# Quota Format: ( maxStudies, maxBytesPerStudy )
# Peers Format: ( Hostname, AETitle, Portnumber ), ... |
# Entry in HostTable |
# ANY
#
#COMMON /home/dicom/db/COMMON R (200, 1024mb) ANY
#ACME_STORE /home/dicom/db/ACME_STORE RW (9, 1024mb) acmeCTcompany
#UNITED_STORE /home/dicom/db/UNITED_STORE RW (9, 1024mb) unitedMRcompany
OFFIS D:\temp\OFFIS RW (6, 1024mb) ANY
Azuriah D:\temp\Azuriah RW (6, 1024mb) ANY
medsphere D:\temp\MEDSPHERE RW (200, 1024mb) ANY
DicomEye D:\temp\DicomEye RW (200, 1024mb) ANY
DicomPrint D:\temp\DicomPrint RW (200, 1024mb) ANY
#
AETable END

......In this file please let me know whts the purpose of the port in the host table entry i.e SymbolicName = ( AETitle, HostName, Portnumber )...........

-----------------------------------------------------------------------------------
I have configured the Efilm for query/retrieve in which as follows the configuration of remote device is like this

Description: QueryRetrieve
AE title: OFFIS
hostname: testing
port : 104
type: research server
-----------------------------------------------------------------------------

the output of the dcmqrscp is



D:\svn-third-party\external\dcmtkSource\3.5.4\dcmtk\dcmqrdb\apps\debug>dcmqrscp.exe -v -c D:\temp\dcmqrscp.cfg -dhl
Association Received (192.168.0.105:MedSphere -> OFFIS) Wed Sep 26 17:28:35 2007
Association Acknowledged (Max Send PDV: 16372)
Received Echo SCP RQ: MsgID 17
Association Release
Association Received (192.168.0.105:MedSphere -> OFFIS) Wed Sep 26 17:28:54 2007
Association Acknowledged (Max Send PDV: 16372)
Received Find SCP: C-Find RQ: MsgID: 19
AffectedSOPClassUID: =FINDStudyRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Find SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianImplicit
(0008,0000) UL 86 # 4, 1 IdentifyingGroupLength
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0030) TM (no value available) # 0, 0 StudyTime
(0008,0050) SH (no value available) # 0, 0 AccessionNumber
(0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
(0008,0056) CS (no value available) # 0, 0 InstanceAvailability
(0008,0061) CS (no value available) # 0, 0 ModalitiesInStudy
(0008,0080) LO (no value available) # 0, 0 InstitutionName
(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName
(0008,1030) LO (no value available) # 0, 0 StudyDescription
(0008,1040) LO (no value available) # 0, 0 InstitutionalDepartmentName
(0010,0000) UL 32 # 4, 1 PatientGroupLength
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate
(0010,0040) CS (no value available) # 0, 0 PatientsSex
(0020,0000) UL 16 # 4, 1 ImageGroupLength
(0020,000d) UI (no value available) # 0, 0 StudyInstanceUID
(0020,0010) SH (no value available) # 0, 0 StudyID
Find SCP Response 1 [status: Pending]
Find SCP Response 2 [status: Pending]
Find SCP Response 3 [status: Pending]
Find SCP Response 4 [status: Pending]
Find SCP Response 5 [status: Success]
Association Release
Association Received (192.168.0.105:MedSphere -> OFFIS) Wed Sep 26 17:29:05 2007
DcmQueryRetrieve: WARNING: Move PresCtx but no Find (accepting for now)
Association Acknowledged (Max Send PDV: 16372)
Received Move SCP: C-Move RQ: MsgID: 21
AffectedSOPClassUID: =MOVEStudyRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Move Destination: MedSphere
Move SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianImplicit
(0008,0000) UL 54 # 4, 1 IdentifyingGroupLength
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0030) TM (no value available) # 0, 0 StudyTime
(0008,0050) SH (no value available) # 0, 0 AccessionNumber
(0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName
(0008,1030) LO (no value available) # 0, 0 StudyDescription
(0010,0000) UL 32 # 4, 1 PatientGroupLength
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate
(0010,0040) CS (no value available) # 0, 0 PatientsSex
(0020,0000) UL 66 # 4, 1 ImageGroupLength
(0020,000d) UI [1.2.840.113619.2.22.288.10010.911.20040316.253041] # 50, 1 StudyInstanceUID
(0020,0010) SH (no value available) # 0, 0 StudyID
Requesting Sub-Association
Store SCU RQ: MsgID 1, (CT)
XMIT:..........................
Move SCP: Received Store SCU RSP [Status=Success]
Move SCP Response 1 [status: Pending]
Releasing Sub-Association
Move SCP Response 2 [status: Success]
Association Release
Association Received (192.168.0.105:MedSphere -> OFFIS) Wed Sep 26 17:29:44 2007
Association Acknowledged (Max Send PDV: 16372)
Received Find SCP: C-Find RQ: MsgID: 23
AffectedSOPClassUID: =FINDStudyRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Find SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianImplicit
(0008,0000) UL 86 # 4, 1 IdentifyingGroupLength
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0030) TM (no value available) # 0, 0 StudyTime
(0008,0050) SH (no value available) # 0, 0 AccessionNumber
(0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
(0008,0056) CS (no value available) # 0, 0 InstanceAvailability
(0008,0061) CS (no value available) # 0, 0 ModalitiesInStudy
(0008,0080) LO (no value available) # 0, 0 InstitutionName
(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName
(0008,1030) LO (no value available) # 0, 0 StudyDescription
(0008,1040) LO (no value available) # 0, 0 InstitutionalDepartmentName
(0010,0000) UL 32 # 4, 1 PatientGroupLength
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate
(0010,0040) CS (no value available) # 0, 0 PatientsSex
(0020,0000) UL 16 # 4, 1 ImageGroupLength
(0020,000d) UI (no value available) # 0, 0 StudyInstanceUID
(0020,0010) SH (no value available) # 0, 0 StudyID
Find SCP Response 1 [status: Pending]
Find SCP Response 2 [status: Pending]
Find SCP Response 3 [status: Pending]
Find SCP Response 4 [status: Pending]
Find SCP Response 5 [status: Success]
Association Release
Association Received (192.168.0.105:MedSphere -> OFFIS) Wed Sep 26 17:29:51 2007
DcmQueryRetrieve: WARNING: Move PresCtx but no Find (accepting for now)
Association Acknowledged (Max Send PDV: 16372)
Received Move SCP: C-Move RQ: MsgID: 25
AffectedSOPClassUID: =MOVEStudyRootQueryRetrieveInformationModel
Priority: 0
Data Set: Present
Move Destination: MedSphere
Move SCP Request Identifiers:

# Dicom-Data-Set
# Used TransferSyntax: LittleEndianImplicit
(0008,0000) UL 54 # 4, 1 IdentifyingGroupLength
(0008,0020) DA (no value available) # 0, 0 StudyDate
(0008,0030) TM (no value available) # 0, 0 StudyTime
(0008,0050) SH (no value available) # 0, 0 AccessionNumber
(0008,0052) CS [STUDY] # 6, 1 QueryRetrieveLevel
(0008,0090) PN (no value available) # 0, 0 ReferringPhysiciansName
(0008,1030) LO (no value available) # 0, 0 StudyDescription
(0010,0000) UL 32 # 4, 1 PatientGroupLength
(0010,0010) PN (no value available) # 0, 0 PatientsName
(0010,0020) LO (no value available) # 0, 0 PatientID
(0010,0030) DA (no value available) # 0, 0 PatientsBirthDate
(0010,0040) CS (no value available) # 0, 0 PatientsSex
(0020,0000) UL 60 # 4, 1 ImageGroupLength
(0020,000d) UI [1.2.392.200046.100.2.1.1.178.20060711120344] # 44, 1 StudyInstanceUID
(0020,0010) SH (no value available) # 0, 0 StudyID
Requesting Sub-Association
Store SCU RQ: MsgID 1, (CR)
XMIT:.......................................................................................................................................................
............................................................................................................................................................
............................................................................................................................................................
.....................
Move SCP: Received Store SCU RSP [Status=Success]
Move SCP Response 1 [status: Pending]
Releasing Sub-Association
Move SCP Response 2 [status: Success]
Association Release

please let me know the problem with this.....
one more thing i can retrive the images using localhost configuration...


Thanks in advance
Santosh S B

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

#2 Post by Marco Eichelberg »

The move request is not well-formed. Most of the keys absolutely do not belong there. For a STUDY level move in Study Root Q/R you must only submit the Q/R level and the Study Instance UID, nothing else.

santosh
Posts: 61
Joined: Tue, 2007-07-31, 09:27
Location: Bangalore (India)

#3 Post by santosh »

Hi Marco,

I am not framing the move request, as eFilm acts as my SCU i directly click the tab "retrieve" while running the dcmqrscp..

Thanks
Santosh S B

nielkk
Posts: 3
Joined: Thu, 2009-08-27, 12:39
Location: India

#4 Post by nielkk »

I am also having a similar problem while querying. I can able to get the patient list, but not getting the images when trying to retrieve a particular patient images. I am using dcmqrscp[dcmtk3.5.4] and Efilm. I saw many cases in net that dcmqrscp is not sending the images. Like to get some expert opinions.

Like to know what is the minimal configuration to get the images.

Pls help me guys.

Thanks.
Dicom Maniac :)

santosh
Posts: 61
Joined: Tue, 2007-07-31, 09:27
Location: Bangalore (India)

#5 Post by santosh »

You need to do the following configuration while setting up the EFILM->dcmqrscp.

First change the dcmqrscp.cfg,
add the following details in the HostTable BEGIN section

MergeEfilm = (EFILM, QUERYSYSTEM, 4006)
any = MergeEfilm

EFILM = AE title of the efilm.
QUERYSYSTEM = Hostname of the system from where you are running the EFILM.
Note : You need to map this host name with the ip address were you are running the dcmqrscp.exe in the hosts file (C:\WINDOWS\system32\drivers\etc\hosts)

4006 = Port number on which EFILM is listening for incoming dicom images.

Now at the end of the dcmqrscp.cfg file you will find the AETable BEGIN
section add the following details in this section

DCMTK_QR D:\svn-main\build\DicomData RW (1000, 1024mb) any

DCMTK_QR = AE-Title of the dcmqrscp.exe you want to assign.

D:\svn-main\build\DicomData: Path were your index.dat and dicom data is placed.

Now start the server using the following command line
cmqrscp.exe -v -d -vv --prefer-lossless --propose-lossless -c D:\main\conf\dcmqrscp.cfg 5678

As my dicom images are stored in the Jpeg-Lossless format i use the --propose-lossless and --prefer-lossless option you can ignore these options if not required.

Now your server is listening for incoming queries on 5678 port.

Configuring the efilm

Create a dicom node in the efilm query and retrieve the studies from the database. This works for me, else let me know the detailed error written by the dcmqrscp.exe.

Thanks
Santosh S.B
Santosh S B

nielkk
Posts: 3
Joined: Thu, 2009-08-27, 12:39
Location: India

#6 Post by nielkk »

Thanks santosh. Let me try. Will post the details here.
Dicom Maniac :)

nielkk
Posts: 3
Joined: Thu, 2009-08-27, 12:39
Location: India

#7 Post by nielkk »

@santosh

Thanks.

I was using the dcmtk code. When i run the dcmqrscp project in release mode its working fine for me. But there was some problem while running in debug mode.
Dicom Maniac :)

Post Reply

Who is online

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