-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1480 from ivmartel/1474-data-element
1474 data element
- Loading branch information
Showing
9 changed files
with
363 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// doc imports | ||
/* eslint-disable no-unused-vars */ | ||
import {Tag} from './dicomTag'; | ||
/* eslint-enable no-unused-vars */ | ||
|
||
/** | ||
* DICOM data element. | ||
*/ | ||
export class DataElement { | ||
/** | ||
* The element Value Representation. | ||
* | ||
* @type {string} | ||
*/ | ||
vr; | ||
/** | ||
* The element value. | ||
* | ||
* @type {Array} | ||
*/ | ||
value; | ||
|
||
// [start] internal values | ||
// only present during parsing or writing otherwise not set | ||
|
||
/** | ||
* The element dicom tag. | ||
* | ||
* @type {Tag} | ||
*/ | ||
tag; | ||
|
||
/** | ||
* The element Value Length. | ||
* | ||
* @type {number} | ||
*/ | ||
vl; | ||
|
||
/** | ||
* Flag to know if defined or undefined sequence length. | ||
* | ||
* @type {boolean} | ||
*/ | ||
undefinedLength; | ||
|
||
/** | ||
* The element start offset. | ||
* | ||
* @type {number} | ||
*/ | ||
startOffset; | ||
|
||
/** | ||
* The element end offset. | ||
* | ||
* @type {number} | ||
*/ | ||
endOffset; | ||
|
||
/** | ||
* The sequence items. | ||
* | ||
* @type {Array} | ||
*/ | ||
items; | ||
|
||
// [end] internal values | ||
|
||
/** | ||
* @param {string} vr The element VR (Value Representation). | ||
*/ | ||
constructor(vr) { | ||
this.vr = vr; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.