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.

66<br />

Chapter 5 Parlez-Vous <strong>DICOM</strong>?<br />

<strong>DICOM</strong> UIDs are str<strong>in</strong>gs such as “1.2.840.10008.1.2” that are built from<br />

numerical components separated by periods; that is, they conform to the UI<br />

VR type (see UI type <strong>in</strong> Table 2 <strong>in</strong> 5.3). UID str<strong>in</strong>gs are supposed to be globally<br />

unique to guarantee dist<strong>in</strong>ction across multiple countries, sites, vendors, <strong>and</strong><br />

equipment. In our globalized universe, this is the only way to ensure that your<br />

image or transaction does not run the risk of be<strong>in</strong>g confused with any other, no<br />

matter where it comes from. Therefore, <strong>DICOM</strong> uses the follow<strong>in</strong>g UID encod<strong>in</strong>g<br />

convention:<br />

UID = .<br />

Here, the “” portion of the UID uniquely identifies an organization<br />

(i.e., manufacturer, research organization, NEMA, <strong>and</strong> so on). Ideally, each organization<br />

is supposed to apply <strong>and</strong> receive its own root ID (which does not<br />

always happen) to guarantee that this root is not <strong>in</strong> use (see Annex C, <strong>DICOM</strong><br />

PS3.5, for the root registration rules). Also, the “1.2.840.10008” str<strong>in</strong>g is reserved<br />

as the universal “” for all <strong>DICOM</strong> transaction UIDs, <strong>and</strong> cannot<br />

be used elsewhere.<br />

Tip: recogniz<strong>in</strong>g <strong>DICOM</strong> files<br />

Open an unknown file <strong>in</strong> WordPad <strong>and</strong> search it for 1.2.840.10008. If this<br />

str<strong>in</strong>g is found, you are likely deal<strong>in</strong>g with a <strong>DICOM</strong> file.<br />

The four DICM letters at the very top of the file (characters 129–132, count<strong>in</strong>g<br />

from the file start) are another way of identify<strong>in</strong>g <strong>DICOM</strong> files. However,<br />

some old or <strong>in</strong>correct <strong>DICOM</strong> implementations might not write them,<br />

while multiple UID prefixes like 1.2.840.10008 should be easier to spot.<br />

The “” portion of the UID is also composed of several numeric components,<br />

<strong>and</strong> “shall be unique with<strong>in</strong> the scope of the ” (see section 9<br />

<strong>in</strong> <strong>DICOM</strong> PS3.5). While roots are relatively short, these are the suffixes that<br />

are used to capture the uniqueness of the <strong>in</strong>stance. For example, if you build a<br />

suffix like:<br />

...<br />

you could be pretty sure that no one <strong>in</strong> your enterprise will have the same UID.<br />

This is why all 64 UID-type characters come <strong>in</strong> so h<strong>and</strong>y; the more that are<br />

used, the lower the chance of hav<strong>in</strong>g two equal UIDs.<br />

For the same reason, UIDs are often used as <strong>DICOM</strong> file names. This is not<br />

really <strong>DICOM</strong>-compliant (see 10.1.4): true <strong>DICOM</strong> file names should come<br />

from eight-character components conta<strong>in</strong><strong>in</strong>g only capital letters, digits, <strong>and</strong><br />

underscore characters (for example, DIR1\SKW12AB5). However, if the eightcharacter<br />

format is m<strong>and</strong>atory for file-export<strong>in</strong>g applications (writ<strong>in</strong>g <strong>DICOM</strong><br />

files to external, removable media such as CDs/DVDs or flash drives, see<br />

Chap. 10), UID-based names are widely used <strong>in</strong>ternally by nearly all <strong>DICOM</strong><br />

applications to store their images on local hard drives. The UID-based <strong>DICOM</strong>

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

Saved successfully!

Ooh no, something went wrong!