dcmqrdb and Private SOP Class

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
martinrame
Posts: 347
Joined: Mon, 2009-02-23, 19:57

dcmqrdb and Private SOP Class

#1 Post by martinrame »

Hi, I'm trying to send a image to dcmqrscp using storescu, I had to add the presentation context to storescu.cfg, but dcmqrscp doesn't seems to be accepting it.

Does dcmqrscp allows to define custom presentation contexts like storescu.cfg does?.

This is the what storescu shows (I cut only the interesting part):

Code: Select all

...
Presentation Contexts:
  Context ID:        1 (Abstract Syntax Not Supported)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
  Context ID:        3 (Abstract Syntax Not Supported)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
  Context ID:        5 (Abstract Syntax Not Supported)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
  Context ID:        7 (Abstract Syntax Not Supported)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
storescu: No Acceptable Presentation Contexts
On the dcmqrdb side, this is what is shown on the screen:

Code: Select all

...
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:    1.2.276.0.7230010.3.0.3.5.4
Their Implementation Version Name: OFFIS_DCMTK_354
Application Context Name:    1.2.840.10008.3.1.1.1
Calling Application Name:    LOCAL
Called Application Name:     DCMQRSCP
Responding Application Name: 
Our Max PDU Receive Size: 16384
Their Max PDU Receive Size: 16384
Presentation Contexts:
  Context ID:        1 (Proposed)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
    Proposed Transfer Syntax(es):
      =LittleEndianExplicit
      =BigEndianExplicit
      =LittleEndianImplicit
  Context ID:        3 (Proposed)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
    Proposed Transfer Syntax(es):
      =JPEGBaseline
  Context ID:        5 (Proposed)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
    Proposed Transfer Syntax(es):
      =JPEGLossless:Non-hierarchical-1stOrderPrediction
  Context ID:        7 (Proposed)
    Abstract Syntax: 1.2.392.200036.9125.1.1.2
    Proposed SCP/SCU Role: Default
    Accepted SCP/SCU Role: Default
    Proposed Transfer Syntax(es):
      =RLELossless
Requested Extended Negotiation: none
Accepted Extended Negotiation: none
Constructing Associate AC PDU
DIMSE receiveCommand

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 »

Does dcmqrscp allows to define custom presentation contexts like storescu.cfg does?
No, unfortunately not. You'll need to modify the source code for this purpose.

martinrame
Posts: 347
Joined: Mon, 2009-02-23, 19:57

#3 Post by martinrame »

Thanks, I'll need a little help here.

I found that presentation contexts are listed in dcmdata/libsrc/dcuid.cc, in the array "dcmAllStorageSOPClassUIDs[]". Can I add my new presentation context to this array and that's all?.

ampeters
Posts: 1
Joined: Wed, 2010-07-14, 14:47

#4 Post by ampeters »

Did you get anywhere with this? I have a similar problem.

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

#5 Post by Michael Onken »

Hi,

indeed you have to add the SOP class to dcuid.cc and dcuid.h. By the way, there is a short howto on the wiki how to add a new SOP class consistently to DCMTK. Most of the files listed there are documentation files.

Best regards,
Michael

Post Reply

Who is online

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