Tag

dwv.dicom. Tag

new Tag(group, element)

Source:

Immutable tag.

Parameters:
Name Type Description
group string

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

element string

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

Methods

equals(rhs) → {boolean}

Source:

Check for Tag equality.

Parameters:
Name Type Description
rhs dwv.dicom.Tag

The other tag to compare to.

Returns:

True if both tags are equal.

Type
boolean

equals2(rhs) → {boolean}

Source:

Check for Tag equality.

Parameters:
Name Type Description
rhs object

The other tag to compare to provided as a simple object.

Returns:

True if both tags are equal.

Type
boolean

getElement() → {string}

Source:

Get the tag element.

Returns:

The tag element.

Type
string

getGroup() → {string}

Source:

Get the tag group.

Returns:

The tag group.

Type
string

getGroupName() → {string}

Source:

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

Returns:

The name.

Type
string

getInfoFromDictionary() → {Array}

Source:

Get the tag info from the dicom dictionary.

Returns:

The info as [vr, multiplicity, name].

Type
Array

getKey() → {string}

Source:

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

Returns:

The key.

Type
string

getKey2() → {string}

Source:

Get a simplified group-element key.

Returns:

The key.

Type
string

getNameFromDictionary() → {string}

Source:

Get the tag name from the dicom dictionary.

Returns:

The VR.

Type
string

getVrFromDictionary() → {string}

Source:

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

Returns:

The VR.

Type
string

isPrivate() → {boolean}

Source:

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}

Source:

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

Returns:

True if this tag has a VR.

Type
boolean