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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

226<br />

Chapter 10 <strong>DICOM</strong> Media: Files, Folders, <strong>and</strong> <strong>DICOM</strong>DIRs<br />

follow<strong>in</strong>g characters: uppercase letters from A to Z, digits from 0 to 9, or the<br />

underscore character.<br />

The <strong>DICOM</strong> file ID nam<strong>in</strong>g convention looks like a bit disoriented attempt<br />

to marry file names <strong>and</strong> <strong>DICOM</strong> UIDs. <strong>DICOM</strong> UIDs with UI (see 5.5.8)<br />

VR format are used to identify all unique str<strong>in</strong>gs, but they do not use letters<br />

or underscores; they can conta<strong>in</strong> only digits separated by periods, such as<br />

1.2.840.10008.1.1. <strong>DICOM</strong> file IDs, on the contrary, are del<strong>in</strong>eated by separators<br />

(usually slashes, although <strong>DICOM</strong> does not specify any particular character),<br />

<strong>and</strong> their eight 8-character components with 7 separators <strong>in</strong> between can<br />

exceed the 64-character length of UIDs.<br />

F<strong>in</strong>ally (<strong>and</strong> this is for you, my dear <strong>DICOM</strong> software developers), as you<br />

should remember, the typical file ID component separator, the backslash (\),<br />

also happens to be an official <strong>DICOM</strong> wildcard character (see 5.3.2), mean<strong>in</strong>g<br />

“logical or”. In other words, accord<strong>in</strong>g to <strong>DICOM</strong>, file ID “SUBDIR1\SUB-<br />

DIR2\SUBDIR3\FNAME” would <strong>in</strong> any other <strong>DICOM</strong> str<strong>in</strong>g mean “SUBDIR1<br />

or SUBDIR2 or SUBDIR3 or FNAME”, which of course is a completely different<br />

th<strong>in</strong>g. Break<strong>in</strong>g backslashed file names <strong>in</strong>to separate “or’d” components is<br />

one of the most widespread file-name-related bugs <strong>in</strong> <strong>DICOM</strong> software. The<br />

only simple remedy to use forward slashes (/) <strong>in</strong> all file names.<br />

Then comes the question of the legendary “.dcm” extension, which is commonly<br />

attached to <strong>DICOM</strong> file names by countless <strong>DICOM</strong> programs. In operat<strong>in</strong>g<br />

systems, each file extension can be associated with a particular fileprocess<strong>in</strong>g<br />

program, so .dcm comes <strong>in</strong> very h<strong>and</strong>y <strong>in</strong> this respect: click<strong>in</strong>g on<br />

a .dcm file <strong>in</strong> your file manager will immediately launch your <strong>DICOM</strong> application.<br />

On the other h<strong>and</strong>, accord<strong>in</strong>g to the File ID syntax from Fig. 73 there is<br />

no .dcm. Moreover, <strong>in</strong> various parts of the <strong>DICOM</strong> st<strong>and</strong>ard the .dcm file name<br />

extension is either prohibited or required. I guess the <strong>in</strong>trigu<strong>in</strong>g question of<br />

us<strong>in</strong>g .dcm is still debated <strong>in</strong> the corridors at <strong>DICOM</strong> WG meet<strong>in</strong>gs.<br />

As a result of all this, people tak<strong>in</strong>g <strong>DICOM</strong> File ID conventions seriously<br />

should be prepared to see many wonderful surprises <strong>in</strong> the real world. Probably<br />

for this very reason, many <strong>DICOM</strong> implementations simply use <strong>DICOM</strong> SOP<br />

UIDs (uniquely identify<strong>in</strong>g each <strong>DICOM</strong> object <strong>in</strong>stance) as file names, <strong>and</strong><br />

you may very frequently see someth<strong>in</strong>g like:<br />

1.2.840.10008.234.2354.437345.79086/1.2.840.10008.8.4568.243.09.dcm<br />

Fig. 73 <strong>DICOM</strong> file ID

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

Saved successfully!

Ooh no, something went wrong!