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.

7.4 Query: F<strong>in</strong>d 141<br />

5. Sequence match<strong>in</strong>g. This is perhaps the most complex form of <strong>DICOM</strong> attribute<br />

match<strong>in</strong>g. It is typically employed when an entire sequence of attributes<br />

(formed with the SQ VR, see 5.3.10) is used to match data. For example,<br />

to match a modality-scheduled patient study, <strong>DICOM</strong> uses a sequence<br />

of attributes such as patient ID, study date, <strong>and</strong> accession number. Each<br />

attribute <strong>in</strong> this sequence can have either exact values, or can use one of the<br />

above match<strong>in</strong>g types. Group<strong>in</strong>g attributes <strong>in</strong>to an SQ sequence works as a<br />

logical “<strong>and</strong>” (mean<strong>in</strong>g that all attributes must match), as opposed to us<strong>in</strong>g<br />

the backslash (\) wildcard as a logical “or”.<br />

6. S<strong>in</strong>gle-value match<strong>in</strong>g. This simply means us<strong>in</strong>g the exact attribute value as<br />

the match<strong>in</strong>g parameter: us<strong>in</strong>g “Smith” for patient name, “20000201” for<br />

date, <strong>and</strong> so on. Naturally enough, s<strong>in</strong>gle-value-matched attributes must<br />

not conta<strong>in</strong> wildcards or ranges. S<strong>in</strong>gle-value match<strong>in</strong>g is commonly used<br />

for various IDs <strong>and</strong> UIDs, <strong>and</strong> <strong>in</strong> particular for hierarchical key attributes<br />

(see 5.6.3).<br />

All attributes <strong>in</strong> <strong>DICOM</strong> data match<strong>in</strong>g can be either required or optional.<br />

Required attributes, as the name suggests, must be present <strong>in</strong> the match<strong>in</strong>g<br />

request. If we have no idea what their values might be, we simply <strong>in</strong>sert<br />

them with blank values (universal match<strong>in</strong>g). This also implies that we are<br />

guaranteed to receive the matched values. Optional attributes may be <strong>in</strong>cluded<br />

if we are <strong>in</strong>terested <strong>in</strong> us<strong>in</strong>g them. The <strong>DICOM</strong> st<strong>and</strong>ard usually specifies required<br />

<strong>and</strong> optional attributes for each query type (such as C-F<strong>in</strong>d at the Patient,<br />

Study, Series, or Image level), but you always need to check the <strong>DICOM</strong><br />

Conformance Statements for the devices you are query<strong>in</strong>g; they commonly<br />

override more generic <strong>DICOM</strong> specifications. This is underst<strong>and</strong>able <strong>in</strong> part<br />

because attributes used on an ultrasound scanner will def<strong>in</strong>itely differ from<br />

those used on a CT teach<strong>in</strong>g archive. However, this always presents a certa<strong>in</strong><br />

implementation headache when you have to deal with different query attribute<br />

profiles for different devices.<br />

F<strong>in</strong>ally, nearly all match<strong>in</strong>g <strong>in</strong> <strong>DICOM</strong> is case-sensitive. Case-<strong>in</strong>sensitive<br />

matches are permitted for certa<strong>in</strong> attributes such as names (PN VR), where<br />

they can also be space- <strong>and</strong> accent-<strong>in</strong>sensitive. Personally, I doubt that casesensitivity<br />

br<strong>in</strong>gs any advantages to <strong>DICOM</strong> whatsoever: first, cases can be easily<br />

altered when typed, <strong>and</strong> second, they almost never matter. Worse, some<br />

major PACS <strong>in</strong>terfaces would require the users to enter certa<strong>in</strong> data us<strong>in</strong>g a<br />

certa<strong>in</strong> case: for example, typ<strong>in</strong>g patient names <strong>in</strong> uppercase only. This quickly<br />

turns <strong>in</strong>to a major annoyance when patient Smith cannot be found unless you<br />

type him as SMITH. Practically, it often forces users to “Caps Lock” their PACS<br />

keyboards, which, as we can easily guess, <strong>in</strong>evitably creates an abundance of<br />

other typ<strong>in</strong>g problems. Thus, whenever possible, <strong>DICOM</strong> <strong>and</strong> <strong>DICOM</strong> applications<br />

should not be case-sensitive.

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

Saved successfully!

Ooh no, something went wrong!