DWVv0.37.0

Tag

Source: dicomTag.js:8

Immutable tag.


Constructor

new Tag(group: string, element: string): Tag

Parameters

  • group (string) — The tag group as '####'.
  • element (string) — The tag element as '####'.

Instance Methods

getGroup(): string

Get the tag group.

Returns

  • string — The tag group.

getElement(): string

Get the tag element.

Returns

  • string — The tag element.

toString(): string

Get as string representation of the tag: '(group,element)'.

Returns

  • string — A string representing the tag.

equals(rhs: Tag): boolean

Check for Tag equality.

Parameters

  • rhs (Tag) — The other tag to compare to.

Returns

  • boolean — True if both tags are equal.

getKey(): string

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

Returns

  • string — The key as '########'.

isWithVR(): boolean

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

Returns

  • boolean — True if this tag has a VR.

isPrivate(): boolean

Is the tag group a private tag group ?

See: http://dicom.nema.org/medical/dicom/2024a/output/html/part05.html#sect_7.8.

Returns

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