: keyword = dicomlookup (group, element)
: [group, element] = dicomlookup (keyword)

Lookup an attribute in the DICOM data dictionary.

keyword = dicomlookup (group, element) will look in the current dicom dictionary for a specified group and element tag and returns string name of the attribute.

[group, element] = dicomlookup (keyword) will look in the current dicom dictionary for a specified keyword string and returns the group and element for keyword.

Inputs

keyword - string keyword name to look up a group, element value.
group - group value to look up (string or integer).
element - element value to look up (string or integer).

Outputs

keyword - string keyword name to looked up from a group, element value.
group, element - group and element value looked up from keyword.

Outputs

Look up tag name for 0x10 0x10:

> name = dicomlookup(0x10,0x10)
name = PatientName

Look up tag group and element value:

> [grp, elm] = dicomlookup('TransferSyntaxUID')
grp = 2
elm = 16

See also: dicomdict.

Package: dicom