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
---------------
storescp unknown timestamp
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: storescp unknown timestamp
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
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
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: storescp unknown timestamp
When you run storescp in verbose mode (-v option), then it should print info messages like this:
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.
Code: Select all
I: creating new subdirectory for study: ./NAME_20220502_160819943
By default, these messages are printed to stderr, but you can use the --log-config option to modify the behavior of the logger.
Re: storescp unknown timestamp
Thanks a lot Marco, that helps!
Who is online
Users browsing this forum: Bing [Bot] and 1 guest