Tag

Immutable tag.

Constructor

new Tag(group, element)

Parameters:
NameTypeDescription
groupstring

The tag group as '####'.

elementstring

The tag element as '####'.

Classes

Tag

Methods

equals(rhs) → {boolean}

Check for Tag equality.

Parameters:
NameTypeDescription
rhsTag

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 TagGroups.

Returns:

The name.

Type: 
string

getInfoFromDictionary() → {Array|undefined}

Get the tag info from the dicom dictionary.

Returns:

The info as [vr, multiplicity, name].

Type: 
Array | undefined

getKey() → {string}

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

Returns:

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

Type: 
string

getNameFromDictionary() → {string|undefined}

Get the tag name from the dicom dictionary.

Returns:

The VR.

Type: 
string | undefined

getVrFromDictionary() → {string|undefined}

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

Returns:

The VR.

Type: 
string | undefined

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 not the Item, ItemDelimitationItem nor SequenceDelimitationItem tags.

Returns:

True if this tag has a VR.

Type: 
boolean

toString() → {string}

Get as string representation of the tag: 'key: name'.

Returns:

A string representing the tag.

Type: 
string