How to set Implementation class UID and Version name.

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
anilta
Posts: 60
Joined: Thu, 2014-04-10, 08:50

How to set Implementation class UID and Version name.

#1 Post by anilta »

We are validating our MWL service using DVTK.
In the validation session, we need to set Implementation Class UID and Implementation Version Name.

During association, we use function, ASC_createAssociationParameters, in assoc.cc, we can only use the DCMTK's UID and Version name,

Code: Select all

    strncpy((*params)->ourImplementationClassUID,
            OFFIS_IMPLEMENTATION_CLASS_UID,
            sizeof((*params)->ourImplementationClassUID)-1);
    strncpy((*params)->ourImplementationVersionName,
            OFFIS_DTK_IMPLEMENTATION_VERSION_NAME,
            sizeof((*params)->ourImplementationVersionName)-1);
There are no set functions to change these UID and Version Name (like we have ASC_setAPTitles, where we can change the AE Title's).

Is there a way to use our modality assigned UID and Version Name ?

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

Re: How to set Implementation class UID and Version name.

#2 Post by Michael Onken »

Hi,

this is not possible via API with the idea being that the DICOM network implementation that your modality uses is still DCMTK. That makes it possible for your communication partners to work around (hypothetic;) errors in DCMTK's code.

If you like to do it anyway, you would have to patch the source code that you quoted, or change the #defines of OFFIS_IMPLEMENTATION_CLASS_UID and OFFIS_DTK_IMPLEMENTATION_VERSION_NAME in dcmdata's dcuid.h to your own UID values.

Best regards,
Michael

anilta
Posts: 60
Joined: Thu, 2014-04-10, 08:50

Re: How to set Implementation class UID and Version name.

#3 Post by anilta »

Thanks Michael.

The reason makes me clear, and would like to retain the DCMTK provided constants in our design as well, to take advantage for work around's in case of DCMTK errors !!.

Best Regards,
Anil TA
GE Healthcare

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest