Sending custom error messages in dcmtk

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
cyril.mj
Posts: 9
Joined: Wed, 2018-07-11, 13:22

Sending custom error messages in dcmtk

#1 Post by cyril.mj »

Is sending custom error messages possible in dcmtk, if so how that can be achieved. My scenario here is that I want to define my own error messages and send that message to the scu if the find fails for some reason. Similarly I want to be able to do this for echo, move and store. If this is achievable, how can I do it?
Thanks and regards,
Cyril M Jose

cyril.mj
Posts: 9
Joined: Wed, 2018-07-11, 13:22

Re: Sending custom error messages in dcmtk

#2 Post by cyril.mj »

Could we use addStatusDetail function for this purpose, I couldn't find any examples using it though. Could anyone please help me with this, it is actually needed urgently for the project I am working on

thanks and regards,
Cyril M Jose

PS : I am a just a beginner in DICOM and DCMTk

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

Re: Sending custom error messages in dcmtk

#3 Post by Michael Onken »

Status Detail is only a regular DICOM dataset (i.e. a list of DICOM attributes) that is sent along with the status returned by an SCP, usually.

Common attributes that you add into this dataset are Error Comment (0000,0902) or Offending Element (0000,0901). The attributes allowed depend on the status code (Status attribute 0000,0900) returned. See part 7 Appendix C for the different status codes.

Best,
Michael

Post Reply

Who is online

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