reject DICOM store request based on DICOM header information

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
mparamas
Posts: 19
Joined: Fri, 2005-09-30, 15:23

reject DICOM store request based on DICOM header information

#1 Post by mparamas »

Hi,

For research subjects we keep research project ID as Patient's Last Name. We keep a master list of all such IDs. For any incoming store requests containing invalid ID for Patient's Last Name, I would like to reject store request for the incoming DICOM study. Can this be done through -xcr script option? If yes, is there a way to pass reject message via storescp command-line to the sending station? Please let me know. Thanks.

Sundar

J. Riesmeier
DCMTK Developer
Posts: 2517
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: reject DICOM store request based on DICOM header informa

#2 Post by J. Riesmeier »

If I were you I would use the new command line tool dcmrecv (instead of storescp) as the basis and modify the code in class DcmStorageSCP accordingly.
The methods DcmStorageSCP::handleIncomingCommand() or DcmStorageSCP::checkAndProcessSTORERequest() are probably best suited.
This would also allow you for returning an appropriate DIMSE status code.
Can this be done through -xcr script option? If yes, is there a way to pass reject message via storescp command-line to the sending station
No, this cannot be done with executing a shell script since the C-STORE-RSP message has already been sent at that time.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests