storescp unknown timestamp

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Jeromekem
Posts: 2
Joined: Mon, 2022-04-11, 12:24

storescp unknown timestamp

#1 Post by Jeromekem »

Dear DCMTK-Offis Forum,

Recently I configured a docker container with DCMTK installed (my dockerfile is added below). In my dockerfile, I use 'storescp' to write all my dicom files to a specified directory using '--sort-on-patientname'. The folders now look like this: _<patientid>__<date>__<timestamp>
In python, we are running queries on our DICOMsql database, where <patientid> and <date> can be found. Unfortunately, the exact timestamp used in the DCMTK cannot be found in our database for as far as I know.

Do any of you know where these timestamps are logged? I would really like to find these timestamps, so that I can open the correct files from the correct folders with python.
I hope to hear from you :)

Greetings,
Jeroen


Dockerfile:
------------
FROM debian
RUN apt update
RUN apt install dcmtk -y
CMD storescp --output-directory /mnt/oogergo/eyened/dicom/ --sort-on-patientname --filename-extension .dcm --log-config /mnt/oogergo/eyened/dicom/log/log2file.cfg 14000
---------------

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

Re: storescp unknown timestamp

#2 Post by Michael Onken »

Hi,

I don't fully understand the question. So the timestamp is in the directory name. Where else do you like to find it? Of course I don't know anything about your SQL database...

BR, Michael

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1437
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: storescp unknown timestamp

#3 Post by Marco Eichelberg »

When you run storescp in verbose mode (-v option), then it should print info messages like this:

Code: Select all

I: creating new subdirectory for study: ./NAME_20220502_160819943
You can try parsing these messages to identify the precise directory names.
By default, these messages are printed to stderr, but you can use the --log-config option to modify the behavior of the logger.

Jeromekem
Posts: 2
Joined: Mon, 2022-04-11, 12:24

Re: storescp unknown timestamp

#4 Post by Jeromekem »

Thanks a lot Marco, that helps!

Post Reply

Who is online

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