Rename directory of stored images

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jsolomon
Posts: 8
Joined: Wed, 2007-01-17, 10:02

Rename directory of stored images

#1 Post by jsolomon »

Hello,
First, thank you for your software. I have been using the storescp application with the -ss option. I see that I am allowed to use a prefix such that the subdirectory containing my stored dicom files has a name <prefix>_<date>_<time>. I would like to replace the prefix with the value of a dicom tag such as patientid or patient name. Since these values are not known to me when I start up the storescp process, I am not able to set the prefix to these values. Can you suggest a method of using patient name as the prefix?

Thanks again,
Jeff

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 »

A new option like this has already been added to the internal development version of DCMTK:

Code: Select all

**** Changes from 2006.07.14 (eichelberg)

- Added new command line option --sort-on-patientsname that sorts images into
  study folders named by the patient's name followed by a timestamp.
  Thanks to Prashant Nair <e-mail-address-removed> for the contribution
  on which the implementation is based.
  Affects: dcmnet/apps/storescp.cc
           dcmnet/docs/storescp.man
In case you're interested, we could make a current CVS snapshot available to you. Just send an e-mail to dicom/at/offis/dot/de.

Post Reply

Who is online

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