Hi all,
I'm looking for a DICOM library and DCMTK looks great
I just can't find an answer to this question :
Is it possible to send N-CREATE / N-DELETE commands with the API ?
I found C-xxx commands in the documentation but none N-xxx.
I read that it's only available in a licensed version of it but I found no description about it (other than the command line tools described on the main page).
Thanks a lot,
Regards
DIMSE messages available
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
that is actually true since in the public DCMTK no services do need N-DELETE and N-CREATE. However, we implemented both,e.g. commercial MPPS SCU and Storage Commitment SCU. Both quoted tools do that based on the DcmSCU class.
It is pretty easy. Best it to derive from DcmSCU and add a new function. Inspire yourself by looking into DcmSCU::sendStoreRequest(). You will need to setup a few member variables, and then call DcmSCU functions sendDIMSEMessage, receiveDIMSECommandand in case you get back an additional dataset, finally receiveDIMSEDataset.
Best regards,
Michael
P.S: We may add support for that in DcmSCU ourselves as soon as we need it in there.
that is actually true since in the public DCMTK no services do need N-DELETE and N-CREATE. However, we implemented both,e.g. commercial MPPS SCU and Storage Commitment SCU. Both quoted tools do that based on the DcmSCU class.
It is pretty easy. Best it to derive from DcmSCU and add a new function. Inspire yourself by looking into DcmSCU::sendStoreRequest(). You will need to setup a few member variables, and then call DcmSCU functions sendDIMSEMessage, receiveDIMSECommandand in case you get back an additional dataset, finally receiveDIMSEDataset.
Best regards,
Michael
P.S: We may add support for that in DcmSCU ourselves as soon as we need it in there.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
In fact, that's not true: For example, "dcmprscu" and "dcmprscp" from the public "dcmpstat" module use N-DELETE and N-CREATE.Michael Onken wrote:that is actually true since in the public DCMTK no services do need N-DELETE and N-CREATE.
However, they do not use the SCU class since it was not available at the time these two tools were developed (about 10 years ago).
Btw, 49 postings left ...
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Oops, sorry, then I was a little inaccurate At least in dcmnet there is no direct API for sending N-CREATE/N-DELETE. The underlying methods of course do support it and there are (forgot them;) "high level" applications that show how they can be used.
However, I would still recommend adding them to DcmSCU and using that class.
Michael
However, I would still recommend adding them to DcmSCU and using that class.
Michael
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest