15.12.2012 Views

Digital Imaging and Communications in Medicine (DICOM)

Digital Imaging and Communications in Medicine (DICOM)

Digital Imaging and Communications in Medicine (DICOM)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.2 Special <strong>DICOM</strong> File Formats 227<br />

<strong>in</strong>stead of SUBDIR1\SUBDIR2\SUBDIR3\FNAME. However, the use of SOPs<br />

<strong>in</strong> file names can be problematic as well: SOP str<strong>in</strong>gs are long (up to 64 characters),<br />

<strong>and</strong> if used <strong>in</strong> several file name components, can easily outgrow what<br />

your software can h<strong>and</strong>le. Be prepared.<br />

No wonder that it has become virtually impossible to recognize a <strong>DICOM</strong><br />

file by its name. It can be practically anyth<strong>in</strong>g: with the “.dcm” extension or<br />

not; with UID nam<strong>in</strong>g syntax or a st<strong>and</strong>ard eight-character uppercase name.<br />

Moreover, different operat<strong>in</strong>g systems <strong>and</strong> media could have their own requirements<br />

on what a valid file name should be. Which is why look<strong>in</strong>g for the DICM<br />

prefix <strong>in</strong> a <strong>DICOM</strong> file header is the only reliable way of tell<strong>in</strong>g <strong>DICOM</strong> files<br />

from other files.<br />

10.2<br />

Special <strong>DICOM</strong> File Formats<br />

10.2.1<br />

<strong>DICOM</strong>DIR<br />

<strong>DICOM</strong>DIR is a very special <strong>DICOM</strong> file. While all other <strong>DICOM</strong> files store<br />

their own <strong>DICOM</strong> data objects, <strong>DICOM</strong>DIR stores the <strong>in</strong>formation about<br />

<strong>DICOM</strong> files <strong>in</strong> a given file directory (folder). Thus, <strong>DICOM</strong>DIR plays the role<br />

of a small <strong>DICOM</strong> database, or an <strong>in</strong>dex of <strong>DICOM</strong> files, placed <strong>in</strong> the root<br />

folder of the media.<br />

File <strong>in</strong>dex<strong>in</strong>g<br />

File <strong>in</strong>dex<strong>in</strong>g – creat<strong>in</strong>g a special file that conta<strong>in</strong>s the <strong>in</strong>formation about<br />

the other files <strong>in</strong> a particular folder – is a very common task <strong>in</strong> many software<br />

applications. Operat<strong>in</strong>g systems, email, <strong>and</strong> multimedia software all<br />

try to <strong>in</strong>dex the files on your computer. File <strong>in</strong>dex<strong>in</strong>g speeds up the access<br />

to the file data <strong>and</strong> improves search<strong>in</strong>g the files with user-specified search<br />

keys (such as keywords). In particular, if file search key values are stored <strong>in</strong><br />

the <strong>in</strong>dex file, only the <strong>in</strong>dex file needs to be searched.<br />

The flip side is that creat<strong>in</strong>g <strong>and</strong> ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g the <strong>in</strong>dex file takes process<strong>in</strong>g<br />

power, <strong>and</strong> the <strong>in</strong>dex file needs to be updated every time someth<strong>in</strong>g<br />

changes <strong>in</strong> the <strong>in</strong>dexed folder.<br />

Consequently, just like any <strong>DICOM</strong> database (see more <strong>in</strong> 10.5), <strong>DICOM</strong>DIR<br />

organizes all directory data <strong>in</strong>to four pr<strong>in</strong>cipal <strong>DICOM</strong> levels: Patient, Study, Series,<br />

<strong>and</strong> Image, as shown on Fig. 74. Therefore, for each file <strong>in</strong> the <strong>DICOM</strong>DIR<br />

folder, <strong>DICOM</strong>DIR will record four entries – patient, study, series, <strong>and</strong> image<br />

<strong>in</strong>formation – correspond<strong>in</strong>g to this file.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!