Image and File attributes

Top  Previous  Next

In your search conditions, you can use the attributes from the DICOM tags, or from the DICOM file itself.

 

As we saw in this topic, to check a DICOM tag value, we use the Image.Tag('....') command.  For e.g.

 

attributes01

 

The above example will search for files containing the tag 0008,0060 (modality) with the value MR, basically searching for all MRI images.

 

 

The File attribute

 

The File attribute can be used if you want to search for files matching certain criteria.  For e.g.

 

file01

 

The above example will return all ultrasound DICOM files created on or after January 1, 2023.  Refer to this topic on how to work with dates.

 

You can use the following File attributes in the search conditions.  The example values assumes a file name of F:\DICOM images\00001.dcm.

 

Attribute

Description

Sample value

File.Source

The fully qualified file name.

F:\DICOM images\00001.dcm

File.Name

The file name portion of the fully qualified file name.

00001.dcm

File.Path

The path portion of the fully qualified file name.

F:\DICOM images\

File.Ext

The file extension.

.dcm

File.Size

The file size in bytes.

13268

File DateCreated

The file creation date value.

20230525

File.DateModified

The last file modified date value.

20231030