===== Study file naming policy format ===== The policy is encoded in a text string. In it, keywords are replaced with identifiers obtained from a DICOM study image or attachment being stored. The string can also contain a directory separator. Characters that are not valid for file and directory names will be replaced. * The format for the date is YYYYMMDD where: * YYYY - Year (4 digits filled with 0) * MM - Month (2 digits filled with 0) * DD - Day (2 digits filled with 0) * Eg.: 20201202 = December 2nd, 2020 * The format for the date and time is YYYYMMDDHHNNSS where: * YYYYMMDD formatting same as for date * HH - Hour (2 digits filled with 0) * NN - Minute (2 digits filled with 0) * SS - Second (2 digits filled with 0) * Eg.: 19410106134501 = January 6th, 1941, 1:45:01 PM Keyword list: * //// - Unique job identifier (64-bit number) * //// - Current date * //// - Current date and time * //// - Institution ID (format //prefix#number//, eg. //sk#1//) * //// - Name of the institution * //// - Country of the seat of the institution * //// - District of the seat of the institution * //// - City of the seat of the institution * //// - Generated unique ID for the study (32-bit number) * //// - Generated unique ID for the study (64-bit number) * //// - Generated unique ID for the study (128-bit number) * //// - Patient name * //// - Patient ID * //// - Study ID (DICOM Study ID) * //// - Study UID (DICOM Study Instance UID) * //// - Study date * //// - Study date and time * //// - Generated unique ID for the series (32-bit number) * //// - Generated unique ID for the series (64-bit number) * //// - Generated unique ID for the series (128-bit number) * //// - Index of the series within the study (number from 0, at least 3 digits filled with 0) * //// - Series UID (DICOM Series Instance UID) * //// - Series number * //// - Series modality * //// - Series date * //// - Series date and time * //// - Generated unique ID for the image (32-bit number) * //// - Generated unique ID for the image (64-bit number) * //// - Generated unique ID for the image (128-bit number) * //// - Index of the image within the series (number from 0, at least 4 digits filled with 0) * //// - Index of the image within the whole study (number from 0, at least 8 digits filled with 0) * //// - Generated unique ID for the attachment (32-bit number) * //// - Generated unique ID for the attachment (64-bit number) * //// - Generated unique ID for the attachment (128-bit number) * //// - Index of the attachment within the study (number from 0, at least 4 digits filled with 0) * //// - Attachment name Eg.: * ///-.dcm// - creates a directory for the task ID and stores images in it in the format series index, image index. The first image of the first series will have the filename //000-0000.dcm//. * /// - ()/-// - creates a directory based on the study date, creates a subdirectory with the study UID, patient ID, and current date and time. Below it, it stores images in the format of index series and index of image without extension. * ///// - creates a directory for the task ID and saves attachments in it under their original name, eg. //report.pdf//.