dwv.dicom. Tag

new Tag(group, element)

Immutable tag.

Parameters:
NameTypeDescription
groupstring

The tag group as '0x####'.

elementstring

The tag element as '0x####'.

Methods

equals(rhs) → {boolean}

Check for Tag equality.

Parameters:
NameTypeDescription
rhsdwv.dicom.Tag

The other tag to compare to.

Returns:

True if both tags are equal.

Type: 
boolean

getElement() → {string}

Get the tag element.

Returns:

The tag element.

Type: 
string

getGroup() → {string}

Get the tag group.

Returns:

The tag group.

Type: 
string

getGroupName() → {string}

Get the group name as defined in dwv.dicom.TagGroups.

Returns:

The name.

Type: 
string

getInfoFromDictionary() → {Array}

Get the tag info from the dicom dictionary.

Returns:

The info as [vr, multiplicity, name].

Type: 
Array

getKey() → {string}

Get the group-element key used to store DICOM elements.

Returns:

The key as 'x########'.

Type: 
string

getKey2() → {string}

Get a simplified group-element key.

Returns:

The key as '########'.

Type: 
string

getNameFromDictionary() → {string}

Get the tag name from the dicom dictionary.

Returns:

The VR.

Type: 
string

getVrFromDictionary() → {string}

Get the tag Value Representation (VR) from the dicom dictionary.

Returns:

The VR.

Type: 
string

isPrivate() → {boolean}

Is the tag group a private tag group ? see: http://dicom.nema.org/medical/dicom/2015a/output/html/part05.html#sect_7.8

Returns:

True if the tag group is private, ie if its group is an odd number.

Type: 
boolean

isWithVR() → {boolean}

Does this tag have a VR. Basically the Item, ItemDelimitationItem and SequenceDelimitationItem tags.

Returns:

True if this tag has a VR.

Type: 
boolean