You get two dicoms files from two different subjects to process, but you accidently rename the wrong one making two different subjects have the same filename. So, to tell them apart you can look into the scan date inside the dicoms file.
Or you accidently lost the information from the scan date, and you need to know when all the subjects in the study were scanned.
You can use the script below to get the scan date for all subjects in the project.
It needs two inputs: the timepoint where it needs to look into, and the path to the subjects' directory.
This code assumes that the subject ID is a 6 digits number.
This code will ouput a csv file in the temporary folder that contains the subject ID and the scan date in the format: month/day/year
To use it:
-
In the code, add the relative path from the subject directory to the variable 'path'
-
Run the program:
selectdate 2 /project/subjects/