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:
- <taskId> - Unique job identifier (64-bit number)
- <currentDate> - Current date
- <currentDatetime> - Current date and time
- <institutionId> - Institution ID (format prefix#number, eg. sk#1)
- <institutionName> - Name of the institution
- <institutionCountry> - Country of the seat of the institution
- <institutionCounty> - District of the seat of the institution
- <institutionCity> - City of the seat of the institution
- <studyUid32> - Generated unique ID for the study (32-bit number)
- <studyUid64> - Generated unique ID for the study (64-bit number)
- <studyUid128> - Generated unique ID for the study (128-bit number)
- <patientName> - Patient name
- <patientId> - Patient ID
- <studyId> - Study ID (DICOM Study ID)
- <studyUid> - Study UID (DICOM Study Instance UID)
- <studyDate> - Study date
- <studyDatetime> - Study date and time
- <seriesUid32> - Generated unique ID for the series (32-bit number)
- <seriesUid64> - Generated unique ID for the series (64-bit number)
- <seriesUid128> - Generated unique ID for the series (128-bit number)
- <seriesIndex> - Index of the series within the study (number from 0, at least 3 digits filled with 0)
- <seriesUid> - Series UID (DICOM Series Instance UID)
- <seriesNumber> - Series number
- <seriesModality> - Series modality
- <seriesDate> - Series date
- <seriesDatetime> - Series date and time
- <imageUid32> - Generated unique ID for the image (32-bit number)
- <imageUid64> - Generated unique ID for the image (64-bit number)
- <imageUid128> - Generated unique ID for the image (128-bit number)
- <imageIndex> - Index of the image within the series (number from 0, at least 4 digits filled with 0)
- <fileIndex> - Index of the image within the whole study (number from 0, at least 8 digits filled with 0)
- <attachmentUid32> - Generated unique ID for the attachment (32-bit number)
- <attachmentUid64> - Generated unique ID for the attachment (64-bit number)
- <attachmentUid128> - Generated unique ID for the attachment (128-bit number)
- <attachmentIndex> - Index of the attachment within the study (number from 0, at least 4 digits filled with 0)
- <attachmentName> - Attachment name
Eg.:
- <taskId>/<seriesIndex>-<imageIndex>.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.
- <studyDate>/<studyUid> - <patientId> (<currentDatetime>)/<seriesIndex>-<imageIndex> - 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.
- <taskId>/<attachmentName> - creates a directory for the task ID and saves attachments in it under their original name, eg. report.pdf.