Constructor
new Tag(group, element)
Name | Type | Description |
---|---|---|
group | string | The tag group as '####'. |
element | string | The tag element as '####'. |
- Source
Classes
Methods
equals(rhs) → {boolean}
Check for Tag equality.
Name | Type | Description |
---|---|---|
rhs | Tag | The other tag to compare to. |
- Source
True if both tags are equal.
- Type:
- boolean
getElement() → {string}
Get the tag element.
- Source
The tag element.
- Type:
- string
getGroup() → {string}
Get the tag group.
- Source
The tag group.
- Type:
- string
getGroupName() → {string}
Get the group name as defined in TagGroups.
- Source
The name.
- Type:
- string
getKey() → {string}
Get the group-element key used to store DICOM elements.
- Source
The key as '########'.
- Type:
- string
getNameFromDictionary() → {string|undefined}
Get the tag name from the dicom dictionary.
- Source
The VR.
- Type:
- string |
undefined
getVrFromDictionary() → {string|undefined}
Get the tag Value Representation (VR) from the dicom dictionary.
- Source
The VR.
- Type:
- string |
undefined
isPrivate() → {boolean}
Is the tag group a private tag group ?
See: http://dicom.nema.org/medical/dicom/2022a/output/html/part05.html#sect_7.8.
- Source
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.
- Source
True if this tag has a VR.
- Type:
- boolean
toString() → {string}
Get as string representation of the tag: 'key: name'.
- Source
A string representing the tag.
- Type:
- string