dwv 0.31.0-beta.12 → 0.31.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dwv.js +1452 -1246
- package/dist/dwv.min.js +2 -2
- package/package.json +3 -3
package/dist/dwv.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! dwv 0.31.0-beta.
|
|
1
|
+
/*! dwv 0.31.0-beta.14 2022-09-23 10:16:00 */
|
|
2
2
|
// Inspired from umdjs
|
|
3
3
|
// See https://github.com/umdjs/umd/blob/master/templates/returnExports.js
|
|
4
4
|
(function (root, factory) {
|
|
@@ -2300,10 +2300,10 @@ dwv.ctrl.LoadController = function (defaultCharacterSet) {
|
|
|
2300
2300
|
} catch (error) {
|
|
2301
2301
|
self.onerror({
|
|
2302
2302
|
error: error,
|
|
2303
|
-
|
|
2303
|
+
loadid: loadId
|
|
2304
2304
|
});
|
|
2305
2305
|
self.onloadend({
|
|
2306
|
-
|
|
2306
|
+
loadid: loadId
|
|
2307
2307
|
});
|
|
2308
2308
|
return;
|
|
2309
2309
|
}
|
|
@@ -3311,6 +3311,16 @@ dwv.dicom.DataReader = function (buffer, isLittleEndian) {
|
|
|
3311
3311
|
return view.getUint32(byteOffset, isLittleEndian);
|
|
3312
3312
|
};
|
|
3313
3313
|
|
|
3314
|
+
/**
|
|
3315
|
+
* Read BigUint64 (8 bytes) data.
|
|
3316
|
+
*
|
|
3317
|
+
* @param {number} byteOffset The offset to start reading from.
|
|
3318
|
+
* @returns {number} The read data.
|
|
3319
|
+
*/
|
|
3320
|
+
this.readBigUint64 = function (byteOffset) {
|
|
3321
|
+
return view.getBigUint64(byteOffset, isLittleEndian);
|
|
3322
|
+
};
|
|
3323
|
+
|
|
3314
3324
|
/**
|
|
3315
3325
|
* Read Int32 (4 bytes) data.
|
|
3316
3326
|
*
|
|
@@ -3321,6 +3331,16 @@ dwv.dicom.DataReader = function (buffer, isLittleEndian) {
|
|
|
3321
3331
|
return view.getInt32(byteOffset, isLittleEndian);
|
|
3322
3332
|
};
|
|
3323
3333
|
|
|
3334
|
+
/**
|
|
3335
|
+
* Read BigInt64 (8 bytes) data.
|
|
3336
|
+
*
|
|
3337
|
+
* @param {number} byteOffset The offset to start reading from.
|
|
3338
|
+
* @returns {number} The read data.
|
|
3339
|
+
*/
|
|
3340
|
+
this.readBigInt64 = function (byteOffset) {
|
|
3341
|
+
return view.getBigInt64(byteOffset, isLittleEndian);
|
|
3342
|
+
};
|
|
3343
|
+
|
|
3324
3344
|
/**
|
|
3325
3345
|
* Read Float32 (4 bytes) data.
|
|
3326
3346
|
*
|
|
@@ -3465,6 +3485,32 @@ dwv.dicom.DataReader = function (buffer, isLittleEndian) {
|
|
|
3465
3485
|
return data;
|
|
3466
3486
|
};
|
|
3467
3487
|
|
|
3488
|
+
/**
|
|
3489
|
+
* Read Uint64 array.
|
|
3490
|
+
*
|
|
3491
|
+
* @param {number} byteOffset The offset to start reading from.
|
|
3492
|
+
* @param {number} size The size of the array.
|
|
3493
|
+
* @returns {Array} The read data.
|
|
3494
|
+
*/
|
|
3495
|
+
this.readUint64Array = function (byteOffset, size) {
|
|
3496
|
+
var bpe = BigUint64Array.BYTES_PER_ELEMENT;
|
|
3497
|
+
var arraySize = size / bpe;
|
|
3498
|
+
var data = null;
|
|
3499
|
+
// byteOffset should be a multiple of BigUint64Array.BYTES_PER_ELEMENT (=8)
|
|
3500
|
+
if (byteOffset % bpe === 0) {
|
|
3501
|
+
data = new BigUint64Array(buffer, byteOffset, arraySize);
|
|
3502
|
+
if (needFlip) {
|
|
3503
|
+
dwv.dicom.flipArrayEndianness(data);
|
|
3504
|
+
}
|
|
3505
|
+
} else {
|
|
3506
|
+
data = new BigUint64Array(arraySize);
|
|
3507
|
+
for (var i = 0; i < arraySize; ++i) {
|
|
3508
|
+
data[i] = this.readBigUint64(byteOffset + bpe * i);
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
return data;
|
|
3512
|
+
};
|
|
3513
|
+
|
|
3468
3514
|
/**
|
|
3469
3515
|
* Read Int32 array.
|
|
3470
3516
|
*
|
|
@@ -3491,6 +3537,32 @@ dwv.dicom.DataReader = function (buffer, isLittleEndian) {
|
|
|
3491
3537
|
return data;
|
|
3492
3538
|
};
|
|
3493
3539
|
|
|
3540
|
+
/**
|
|
3541
|
+
* Read Int64 array.
|
|
3542
|
+
*
|
|
3543
|
+
* @param {number} byteOffset The offset to start reading from.
|
|
3544
|
+
* @param {number} size The size of the array.
|
|
3545
|
+
* @returns {Array} The read data.
|
|
3546
|
+
*/
|
|
3547
|
+
this.readInt64Array = function (byteOffset, size) {
|
|
3548
|
+
var bpe = BigInt64Array.BYTES_PER_ELEMENT;
|
|
3549
|
+
var arraySize = size / bpe;
|
|
3550
|
+
var data = null;
|
|
3551
|
+
// byteOffset should be a multiple of BigInt64Array.BYTES_PER_ELEMENT (=8)
|
|
3552
|
+
if (byteOffset % bpe === 0) {
|
|
3553
|
+
data = new BigInt64Array(buffer, byteOffset, arraySize);
|
|
3554
|
+
if (needFlip) {
|
|
3555
|
+
dwv.dicom.flipArrayEndianness(data);
|
|
3556
|
+
}
|
|
3557
|
+
} else {
|
|
3558
|
+
data = new BigInt64Array(arraySize);
|
|
3559
|
+
for (var i = 0; i < arraySize; ++i) {
|
|
3560
|
+
data[i] = this.readBigInt64(byteOffset + bpe * i);
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
return data;
|
|
3564
|
+
};
|
|
3565
|
+
|
|
3494
3566
|
/**
|
|
3495
3567
|
* Read Float32 array.
|
|
3496
3568
|
*
|
|
@@ -3695,6 +3767,18 @@ dwv.dicom.DataWriter = function (buffer, isLittleEndian) {
|
|
|
3695
3767
|
return byteOffset + Uint32Array.BYTES_PER_ELEMENT;
|
|
3696
3768
|
};
|
|
3697
3769
|
|
|
3770
|
+
/**
|
|
3771
|
+
* Write Uint64 data.
|
|
3772
|
+
*
|
|
3773
|
+
* @param {number} byteOffset The offset to start writing from.
|
|
3774
|
+
* @param {number} value The data to write.
|
|
3775
|
+
* @returns {number} The new offset position.
|
|
3776
|
+
*/
|
|
3777
|
+
this.writeUint64 = function (byteOffset, value) {
|
|
3778
|
+
view.setBigUint64(byteOffset, value, isLittleEndian);
|
|
3779
|
+
return byteOffset + BigUint64Array.BYTES_PER_ELEMENT;
|
|
3780
|
+
};
|
|
3781
|
+
|
|
3698
3782
|
/**
|
|
3699
3783
|
* Write Int32 data.
|
|
3700
3784
|
*
|
|
@@ -3707,6 +3791,18 @@ dwv.dicom.DataWriter = function (buffer, isLittleEndian) {
|
|
|
3707
3791
|
return byteOffset + Int32Array.BYTES_PER_ELEMENT;
|
|
3708
3792
|
};
|
|
3709
3793
|
|
|
3794
|
+
/**
|
|
3795
|
+
* Write Int64 data.
|
|
3796
|
+
*
|
|
3797
|
+
* @param {number} byteOffset The offset to start writing from.
|
|
3798
|
+
* @param {number} value The data to write.
|
|
3799
|
+
* @returns {number} The new offset position.
|
|
3800
|
+
*/
|
|
3801
|
+
this.writeInt64 = function (byteOffset, value) {
|
|
3802
|
+
view.setBigInt64(byteOffset, value, isLittleEndian);
|
|
3803
|
+
return byteOffset + BigInt64Array.BYTES_PER_ELEMENT;
|
|
3804
|
+
};
|
|
3805
|
+
|
|
3710
3806
|
/**
|
|
3711
3807
|
* Write Float32 data.
|
|
3712
3808
|
*
|
|
@@ -3866,6 +3962,20 @@ dwv.dicom.DataWriter.prototype.writeUint32Array = function (byteOffset, array) {
|
|
|
3866
3962
|
return byteOffset;
|
|
3867
3963
|
};
|
|
3868
3964
|
|
|
3965
|
+
/**
|
|
3966
|
+
* Write Uint64 array.
|
|
3967
|
+
*
|
|
3968
|
+
* @param {number} byteOffset The offset to start writing from.
|
|
3969
|
+
* @param {Array} array The array to write.
|
|
3970
|
+
* @returns {number} The new offset position.
|
|
3971
|
+
*/
|
|
3972
|
+
dwv.dicom.DataWriter.prototype.writeUint64Array = function (byteOffset, array) {
|
|
3973
|
+
for (var i = 0, len = array.length; i < len; ++i) {
|
|
3974
|
+
byteOffset = this.writeUint64(byteOffset, array[i]);
|
|
3975
|
+
}
|
|
3976
|
+
return byteOffset;
|
|
3977
|
+
};
|
|
3978
|
+
|
|
3869
3979
|
/**
|
|
3870
3980
|
* Write Int32 array.
|
|
3871
3981
|
*
|
|
@@ -3880,6 +3990,20 @@ dwv.dicom.DataWriter.prototype.writeInt32Array = function (byteOffset, array) {
|
|
|
3880
3990
|
return byteOffset;
|
|
3881
3991
|
};
|
|
3882
3992
|
|
|
3993
|
+
/**
|
|
3994
|
+
* Write Int64 array.
|
|
3995
|
+
*
|
|
3996
|
+
* @param {number} byteOffset The offset to start writing from.
|
|
3997
|
+
* @param {Array} array The array to write.
|
|
3998
|
+
* @returns {number} The new offset position.
|
|
3999
|
+
*/
|
|
4000
|
+
dwv.dicom.DataWriter.prototype.writeInt64Array = function (byteOffset, array) {
|
|
4001
|
+
for (var i = 0, len = array.length; i < len; ++i) {
|
|
4002
|
+
byteOffset = this.writeInt64(byteOffset, array[i]);
|
|
4003
|
+
}
|
|
4004
|
+
return byteOffset;
|
|
4005
|
+
};
|
|
4006
|
+
|
|
3883
4007
|
/**
|
|
3884
4008
|
* Write Float32 array.
|
|
3885
4009
|
*
|
|
@@ -4569,7 +4693,7 @@ dwv.dicom = dwv.dicom || {};
|
|
|
4569
4693
|
* @returns {string} The version of the library.
|
|
4570
4694
|
*/
|
|
4571
4695
|
dwv.getVersion = function () {
|
|
4572
|
-
return '0.31.0-beta.
|
|
4696
|
+
return '0.31.0-beta.14';
|
|
4573
4697
|
};
|
|
4574
4698
|
|
|
4575
4699
|
/**
|
|
@@ -4996,14 +5120,7 @@ dwv.dicom.getTypedArray = function (bitsAllocated, pixelRepresentation, size) {
|
|
|
4996
5120
|
* @returns {boolean} True if this VR has a 32-bit VL.
|
|
4997
5121
|
*/
|
|
4998
5122
|
dwv.dicom.is32bitVLVR = function (vr) {
|
|
4999
|
-
|
|
5000
|
-
return (vr === 'OB' ||
|
|
5001
|
-
vr === 'OW' ||
|
|
5002
|
-
vr === 'OF' ||
|
|
5003
|
-
vr === 'ox' ||
|
|
5004
|
-
vr === 'UT' ||
|
|
5005
|
-
vr === 'SQ' ||
|
|
5006
|
-
vr === 'UN');
|
|
5123
|
+
return dwv.dicom.vr32bitVL.includes(vr);
|
|
5007
5124
|
};
|
|
5008
5125
|
|
|
5009
5126
|
/**
|
|
@@ -5377,6 +5494,7 @@ dwv.dicom.DicomParser.prototype.interpretElement = function (
|
|
|
5377
5494
|
var data = null;
|
|
5378
5495
|
var isPixelDataTag = dwv.dicom.isPixelDataTag(
|
|
5379
5496
|
new dwv.dicom.Tag(tag.group, tag.element));
|
|
5497
|
+
var vrType = dwv.dicom.vrTypes[vr];
|
|
5380
5498
|
if (isPixelDataTag && vl === 'u/l') {
|
|
5381
5499
|
// implicit pixel data sequence
|
|
5382
5500
|
data = [];
|
|
@@ -5386,18 +5504,12 @@ dwv.dicom.DicomParser.prototype.interpretElement = function (
|
|
|
5386
5504
|
pixelRepresentation, bitsAllocated));
|
|
5387
5505
|
}
|
|
5388
5506
|
} else if (isPixelDataTag &&
|
|
5389
|
-
(vr === 'OB' || vr === 'OW' || vr === '
|
|
5507
|
+
(vr === 'OB' || vr === 'OW' || vr === 'ox')) {
|
|
5390
5508
|
// check bits allocated and VR
|
|
5391
|
-
|
|
5509
|
+
// https://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/sect_A.2.html
|
|
5510
|
+
if (bitsAllocated > 8 && vr !== 'OW') {
|
|
5392
5511
|
dwv.logger.warn(
|
|
5393
|
-
'Reading DICOM pixel data with vr
|
|
5394
|
-
' and bitsAllocated=8 (should be 16).'
|
|
5395
|
-
);
|
|
5396
|
-
}
|
|
5397
|
-
if (bitsAllocated === 16 && vr === 'OB') {
|
|
5398
|
-
dwv.logger.warn(
|
|
5399
|
-
'Reading DICOM pixel data with vr=OB' +
|
|
5400
|
-
' and bitsAllocated=16 (should be 8).'
|
|
5512
|
+
'Reading DICOM pixel data with bitsAllocated>8 and vr is not OW.'
|
|
5401
5513
|
);
|
|
5402
5514
|
}
|
|
5403
5515
|
// read
|
|
@@ -5431,27 +5543,44 @@ dwv.dicom.DicomParser.prototype.interpretElement = function (
|
|
|
5431
5543
|
} else {
|
|
5432
5544
|
throw new Error('Unsupported bits allocated: ' + bitsAllocated);
|
|
5433
5545
|
}
|
|
5434
|
-
} else if (
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5546
|
+
} else if (typeof vrType !== 'undefined') {
|
|
5547
|
+
if (vrType === 'Uint8') {
|
|
5548
|
+
data = reader.readUint8Array(offset, vl);
|
|
5549
|
+
} else if (vrType === 'Uint16') {
|
|
5550
|
+
data = reader.readUint16Array(offset, vl);
|
|
5551
|
+
} else if (vrType === 'Uint32') {
|
|
5552
|
+
data = reader.readUint32Array(offset, vl);
|
|
5553
|
+
} else if (vrType === 'Uint64') {
|
|
5554
|
+
data = reader.readUint64Array(offset, vl);
|
|
5555
|
+
} else if (vrType === 'Int16') {
|
|
5556
|
+
data = reader.readInt16Array(offset, vl);
|
|
5557
|
+
} else if (vrType === 'Int32') {
|
|
5558
|
+
data = reader.readInt32Array(offset, vl);
|
|
5559
|
+
} else if (vrType === 'Int64') {
|
|
5560
|
+
data = reader.readInt64Array(offset, vl);
|
|
5561
|
+
} else if (vrType === 'Float32') {
|
|
5562
|
+
data = reader.readFloat32Array(offset, vl);
|
|
5563
|
+
} else if (vrType === 'Float64') {
|
|
5564
|
+
data = reader.readFloat64Array(offset, vl);
|
|
5565
|
+
} else if (vrType === 'string') {
|
|
5566
|
+
if (dwv.dicom.charSetString.includes(vr)) {
|
|
5567
|
+
data = reader.readSpecialString(offset, vl);
|
|
5568
|
+
} else {
|
|
5569
|
+
data = reader.readString(offset, vl);
|
|
5570
|
+
}
|
|
5571
|
+
data = data.split('\\');
|
|
5572
|
+
} else {
|
|
5573
|
+
throw Error('Unknown VR type: ' + vrType);
|
|
5574
|
+
}
|
|
5575
|
+
} else if (vr === 'ox') {
|
|
5576
|
+
// OB or OW
|
|
5577
|
+
if (bitsAllocated === 8) {
|
|
5578
|
+
data = reader.readUint8Array(offset, vl);
|
|
5579
|
+
} else {
|
|
5580
|
+
data = reader.readUint16Array(offset, vl);
|
|
5581
|
+
}
|
|
5454
5582
|
} else if (vr === 'xs') {
|
|
5583
|
+
// US or SS
|
|
5455
5584
|
if (pixelRepresentation === 0) {
|
|
5456
5585
|
data = reader.readUint16Array(offset, vl);
|
|
5457
5586
|
} else {
|
|
@@ -5471,9 +5600,6 @@ dwv.dicom.DicomParser.prototype.interpretElement = function (
|
|
|
5471
5600
|
str += ')';
|
|
5472
5601
|
data.push(str);
|
|
5473
5602
|
}
|
|
5474
|
-
} else if (vr === 'UN') {
|
|
5475
|
-
// not available
|
|
5476
|
-
data = reader.readUint8Array(offset, vl);
|
|
5477
5603
|
} else if (vr === 'SQ') {
|
|
5478
5604
|
// sequence
|
|
5479
5605
|
data = [];
|
|
@@ -5491,14 +5617,7 @@ dwv.dicom.DicomParser.prototype.interpretElement = function (
|
|
|
5491
5617
|
data.push(itemData);
|
|
5492
5618
|
}
|
|
5493
5619
|
} else {
|
|
5494
|
-
|
|
5495
|
-
if (vr === 'SH' || vr === 'LO' || vr === 'ST' ||
|
|
5496
|
-
vr === 'PN' || vr === 'LT' || vr === 'UT') {
|
|
5497
|
-
data = reader.readSpecialString(offset, vl);
|
|
5498
|
-
} else {
|
|
5499
|
-
data = reader.readString(offset, vl);
|
|
5500
|
-
}
|
|
5501
|
-
data = data.split('\\');
|
|
5620
|
+
dwv.logger.warn('Unknown VR: ' + vr);
|
|
5502
5621
|
}
|
|
5503
5622
|
|
|
5504
5623
|
return data;
|
|
@@ -5841,7 +5960,7 @@ dwv.dicom.Tag.prototype.isWithVR = function () {
|
|
|
5841
5960
|
*/
|
|
5842
5961
|
dwv.dicom.Tag.prototype.isPrivate = function () {
|
|
5843
5962
|
// group is in the '0x####' form
|
|
5844
|
-
var groupNumber = parseInt(this.getGroup().substring(2),
|
|
5963
|
+
var groupNumber = parseInt(this.getGroup().substring(2), 16);
|
|
5845
5964
|
return groupNumber % 2 === 1;
|
|
5846
5965
|
};
|
|
5847
5966
|
|
|
@@ -6095,31 +6214,17 @@ dwv.dicom.isEven = function (number) {
|
|
|
6095
6214
|
return number % 2 === 0;
|
|
6096
6215
|
};
|
|
6097
6216
|
|
|
6098
|
-
/**
|
|
6099
|
-
* Is the input VR a non string VR.
|
|
6100
|
-
*
|
|
6101
|
-
* @param {string} vr The element VR.
|
|
6102
|
-
* @returns {boolean} True if the VR is a non string one.
|
|
6103
|
-
*/
|
|
6104
|
-
dwv.dicom.isNonStringVr = function (vr) {
|
|
6105
|
-
return vr === 'UN' ||
|
|
6106
|
-
vr === 'SQ' ||
|
|
6107
|
-
vr === 'AT' ||
|
|
6108
|
-
dwv.dicom.isTypedArrayVr(vr);
|
|
6109
|
-
};
|
|
6110
|
-
|
|
6111
6217
|
/**
|
|
6112
6218
|
* Is the input VR a VR that stores data in a typed array.
|
|
6219
|
+
* TODO: include ox and xs?
|
|
6113
6220
|
*
|
|
6114
6221
|
* @param {string} vr The element VR.
|
|
6115
6222
|
* @returns {boolean} True if the VR is a typed array one.
|
|
6116
6223
|
*/
|
|
6117
6224
|
dwv.dicom.isTypedArrayVr = function (vr) {
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
vr === 'UL' || vr === 'SL' ||
|
|
6122
|
-
vr === 'FL' || vr === 'FD';
|
|
6225
|
+
var vrType = dwv.dicom.vrTypes[vr];
|
|
6226
|
+
return typeof vrType !== 'undefined' &&
|
|
6227
|
+
vrType !== 'string';
|
|
6123
6228
|
};
|
|
6124
6229
|
|
|
6125
6230
|
/**
|
|
@@ -6129,7 +6234,9 @@ dwv.dicom.isTypedArrayVr = function (vr) {
|
|
|
6129
6234
|
* @returns {boolean} True if the VR is a string one.
|
|
6130
6235
|
*/
|
|
6131
6236
|
dwv.dicom.isStringVr = function (vr) {
|
|
6132
|
-
|
|
6237
|
+
var vrType = dwv.dicom.vrTypes[vr];
|
|
6238
|
+
return typeof vrType !== 'undefined' &&
|
|
6239
|
+
vrType === 'string';
|
|
6133
6240
|
};
|
|
6134
6241
|
|
|
6135
6242
|
/**
|
|
@@ -6418,8 +6525,10 @@ dwv.dicom.DicomWriter.prototype.writeDataElementItems = function (
|
|
|
6418
6525
|
*/
|
|
6419
6526
|
dwv.dicom.DicomWriter.prototype.writeDataElementValue = function (
|
|
6420
6527
|
writer, vr, vl, byteOffset, value, isImplicit) {
|
|
6421
|
-
|
|
6422
|
-
if (
|
|
6528
|
+
|
|
6529
|
+
if (vr === 'NONE') {
|
|
6530
|
+
// nothing to do!
|
|
6531
|
+
} else if (value instanceof Uint8Array) {
|
|
6423
6532
|
// binary data has been expanded 8 times at read
|
|
6424
6533
|
if (value.length === 8 * vl) {
|
|
6425
6534
|
byteOffset = writer.writeBinaryArray(byteOffset, value);
|
|
@@ -6436,30 +6545,46 @@ dwv.dicom.DicomWriter.prototype.writeDataElementValue = function (
|
|
|
6436
6545
|
byteOffset = writer.writeUint32Array(byteOffset, value);
|
|
6437
6546
|
} else if (value instanceof Int32Array) {
|
|
6438
6547
|
byteOffset = writer.writeInt32Array(byteOffset, value);
|
|
6548
|
+
} else if (value instanceof BigUint64Array) {
|
|
6549
|
+
byteOffset = writer.writeUint64Array(byteOffset, value);
|
|
6550
|
+
} else if (value instanceof BigInt64Array) {
|
|
6551
|
+
byteOffset = writer.writeInt64Array(byteOffset, value);
|
|
6439
6552
|
} else {
|
|
6440
6553
|
// switch according to VR if input type is undefined
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6554
|
+
var vrType = dwv.dicom.vrTypes[vr];
|
|
6555
|
+
if (typeof vrType !== 'undefined') {
|
|
6556
|
+
if (vrType === 'Uint8') {
|
|
6557
|
+
byteOffset = writer.writeUint8Array(byteOffset, value);
|
|
6558
|
+
} else if (vrType === 'Uint16') {
|
|
6559
|
+
byteOffset = writer.writeUint16Array(byteOffset, value);
|
|
6560
|
+
} else if (vrType === 'Int16') {
|
|
6561
|
+
byteOffset = writer.writeInt16Array(byteOffset, value);
|
|
6562
|
+
} else if (vrType === 'Uint32') {
|
|
6563
|
+
byteOffset = writer.writeUint32Array(byteOffset, value);
|
|
6564
|
+
} else if (vrType === 'Int32') {
|
|
6565
|
+
byteOffset = writer.writeInt32Array(byteOffset, value);
|
|
6566
|
+
} else if (vrType === 'Uint64') {
|
|
6567
|
+
byteOffset = writer.writeUint64Array(byteOffset, value);
|
|
6568
|
+
} else if (vrType === 'Int64') {
|
|
6569
|
+
byteOffset = writer.writeInt64Array(byteOffset, value);
|
|
6570
|
+
} else if (vrType === 'Float32') {
|
|
6571
|
+
byteOffset = writer.writeFloat32Array(byteOffset, value);
|
|
6572
|
+
} else if (vrType === 'Float64') {
|
|
6573
|
+
byteOffset = writer.writeFloat64Array(byteOffset, value);
|
|
6574
|
+
} else if (vrType === 'string') {
|
|
6575
|
+
// join if array
|
|
6576
|
+
if (Array.isArray(value)) {
|
|
6577
|
+
value = value.join('\\');
|
|
6578
|
+
}
|
|
6579
|
+
// write
|
|
6580
|
+
if (dwv.dicom.charSetString.includes(vr)) {
|
|
6581
|
+
byteOffset = writer.writeSpecialString(byteOffset, value);
|
|
6582
|
+
} else {
|
|
6583
|
+
byteOffset = writer.writeString(byteOffset, value);
|
|
6584
|
+
}
|
|
6585
|
+
} else {
|
|
6586
|
+
throw Error('Unknown VR type: ' + vrType);
|
|
6587
|
+
}
|
|
6463
6588
|
} else if (vr === 'SQ') {
|
|
6464
6589
|
byteOffset = this.writeDataElementItems(
|
|
6465
6590
|
writer, byteOffset, value, isImplicit);
|
|
@@ -6474,17 +6599,7 @@ dwv.dicom.DicomWriter.prototype.writeDataElementValue = function (
|
|
|
6474
6599
|
byteOffset = writer.writeUint16Array(byteOffset, atValue);
|
|
6475
6600
|
}
|
|
6476
6601
|
} else {
|
|
6477
|
-
|
|
6478
|
-
if (Array.isArray(value)) {
|
|
6479
|
-
value = value.join('\\');
|
|
6480
|
-
}
|
|
6481
|
-
// write
|
|
6482
|
-
if (vr === 'SH' || vr === 'LO' || vr === 'ST' ||
|
|
6483
|
-
vr === 'PN' || vr === 'LT' || vr === 'UT') {
|
|
6484
|
-
byteOffset = writer.writeSpecialString(byteOffset, value);
|
|
6485
|
-
} else {
|
|
6486
|
-
byteOffset = writer.writeString(byteOffset, value);
|
|
6487
|
-
}
|
|
6602
|
+
dwv.logger.warn('Unknown VR: ' + vr);
|
|
6488
6603
|
}
|
|
6489
6604
|
}
|
|
6490
6605
|
// return new offset
|
|
@@ -6929,18 +7044,29 @@ dwv.dicom.setElementValue = function (element, value, isImplicit) {
|
|
|
6929
7044
|
size = element.value.length;
|
|
6930
7045
|
|
|
6931
7046
|
// convert size to bytes
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
7047
|
+
var vrType = dwv.dicom.vrTypes[element.vr];
|
|
7048
|
+
if (typeof vrType !== 'undefined') {
|
|
7049
|
+
if (vrType === 'Uint8') {
|
|
7050
|
+
size *= Uint8Array.BYTES_PER_ELEMENT;
|
|
7051
|
+
} else if (vrType === 'Uint16') {
|
|
7052
|
+
size *= Uint16Array.BYTES_PER_ELEMENT;
|
|
7053
|
+
} else if (vrType === 'Int16') {
|
|
7054
|
+
size *= Int16Array.BYTES_PER_ELEMENT;
|
|
7055
|
+
} else if (vrType === 'Uint32') {
|
|
7056
|
+
size *= Uint32Array.BYTES_PER_ELEMENT;
|
|
7057
|
+
} else if (vrType === 'Int32') {
|
|
7058
|
+
size *= Int32Array.BYTES_PER_ELEMENT;
|
|
7059
|
+
} else if (vrType === 'Float32') {
|
|
7060
|
+
size *= Float32Array.BYTES_PER_ELEMENT;
|
|
7061
|
+
} else if (vrType === 'Float64') {
|
|
7062
|
+
size *= Float64Array.BYTES_PER_ELEMENT;
|
|
7063
|
+
} else if (vrType === 'Uint64') {
|
|
7064
|
+
size *= BigUint64Array.BYTES_PER_ELEMENT;
|
|
7065
|
+
} else if (vrType === 'Int64') {
|
|
7066
|
+
size *= BigInt64Array.BYTES_PER_ELEMENT;
|
|
7067
|
+
} else {
|
|
7068
|
+
throw Error('Unknown VR type: ' + vrType);
|
|
7069
|
+
}
|
|
6944
7070
|
}
|
|
6945
7071
|
} else {
|
|
6946
7072
|
if (value instanceof Array) {
|
|
@@ -7015,24 +7141,22 @@ var dwv = dwv || {};
|
|
|
7015
7141
|
dwv.dicom = dwv.dicom || {};
|
|
7016
7142
|
|
|
7017
7143
|
/**
|
|
7018
|
-
* DICOM tag dictionary.
|
|
7019
|
-
* Generated using xml standard conversion
|
|
7020
|
-
* from {@link https://github.com/ivmartel/dcmbench/tree/master/view/part06}
|
|
7021
|
-
* with {@link http://medical.nema.org/medical/dicom/current/source/docbook/part06/part06.xml}
|
|
7144
|
+
* DICOM tag dictionary 2022a.
|
|
7145
|
+
* Generated using xml standard conversion from {@link https://github.com/ivmartel/dcmStdToJs} v0.1.0.
|
|
7022
7146
|
* Conversion changes:
|
|
7023
|
-
* - (vr)
|
|
7024
|
-
* - added
|
|
7147
|
+
* - (vr) 'See Note' -> 'NONE', 'OB or OW' -> 'ox', 'US or SS' -> 'xs'
|
|
7148
|
+
* - added 'GenericGroupLength' element to each group
|
|
7025
7149
|
* Local changes:
|
|
7026
7150
|
* - tag numbers with 'xx' were replaced with '00', 'xxx' with '001' and
|
|
7027
7151
|
* 'xxxx' with '0004'
|
|
7028
7152
|
*/
|
|
7029
7153
|
dwv.dicom.dictionary = {
|
|
7030
7154
|
'0x0000': {
|
|
7031
|
-
'0x0000': ['UL', '1', '
|
|
7155
|
+
'0x0000': ['UL', '1', 'CommandGroupLength'],
|
|
7032
7156
|
'0x0001': ['UL', '1', 'CommandLengthToEnd'],
|
|
7033
7157
|
'0x0002': ['UI', '1', 'AffectedSOPClassUID'],
|
|
7034
7158
|
'0x0003': ['UI', '1', 'RequestedSOPClassUID'],
|
|
7035
|
-
'0x0010': ['
|
|
7159
|
+
'0x0010': ['SH', '1', 'CommandRecognitionCode'],
|
|
7036
7160
|
'0x0100': ['US', '1', 'CommandField'],
|
|
7037
7161
|
'0x0110': ['US', '1', 'MessageID'],
|
|
7038
7162
|
'0x0120': ['US', '1', 'MessageIDBeingRespondedTo'],
|
|
@@ -7041,43 +7165,36 @@ dwv.dicom.dictionary = {
|
|
|
7041
7165
|
'0x0400': ['AE', '1', 'FindLocation'],
|
|
7042
7166
|
'0x0600': ['AE', '1', 'MoveDestination'],
|
|
7043
7167
|
'0x0700': ['US', '1', 'Priority'],
|
|
7044
|
-
'0x0800': ['US', '1', '
|
|
7168
|
+
'0x0800': ['US', '1', 'CommandDataSetType'],
|
|
7045
7169
|
'0x0850': ['US', '1', 'NumberOfMatches'],
|
|
7046
7170
|
'0x0860': ['US', '1', 'ResponseSequenceNumber'],
|
|
7047
7171
|
'0x0900': ['US', '1', 'Status'],
|
|
7048
7172
|
'0x0901': ['AT', '1-n', 'OffendingElement'],
|
|
7049
7173
|
'0x0902': ['LO', '1', 'ErrorComment'],
|
|
7050
7174
|
'0x0903': ['US', '1', 'ErrorID'],
|
|
7051
|
-
'0x0904': ['OT', '1-n', 'ErrorInformation'],
|
|
7052
7175
|
'0x1000': ['UI', '1', 'AffectedSOPInstanceUID'],
|
|
7053
7176
|
'0x1001': ['UI', '1', 'RequestedSOPInstanceUID'],
|
|
7054
7177
|
'0x1002': ['US', '1', 'EventTypeID'],
|
|
7055
|
-
'0x1003': ['OT', '1-n', 'EventInformation'],
|
|
7056
7178
|
'0x1005': ['AT', '1-n', 'AttributeIdentifierList'],
|
|
7057
|
-
'0x1007': ['AT', '1-n', 'ModificationList'],
|
|
7058
7179
|
'0x1008': ['US', '1', 'ActionTypeID'],
|
|
7059
|
-
'0x1009': ['OT', '1-n', 'ActionInformation'],
|
|
7060
|
-
'0x1013': ['UI', '1-n', 'SuccessfulSOPInstanceUIDList'],
|
|
7061
|
-
'0x1014': ['UI', '1-n', 'FailedSOPInstanceUIDList'],
|
|
7062
|
-
'0x1015': ['UI', '1-n', 'WarningSOPInstanceUIDList'],
|
|
7063
7180
|
'0x1020': ['US', '1', 'NumberOfRemainingSuboperations'],
|
|
7064
7181
|
'0x1021': ['US', '1', 'NumberOfCompletedSuboperations'],
|
|
7065
7182
|
'0x1022': ['US', '1', 'NumberOfFailedSuboperations'],
|
|
7066
7183
|
'0x1023': ['US', '1', 'NumberOfWarningSuboperations'],
|
|
7067
7184
|
'0x1030': ['AE', '1', 'MoveOriginatorApplicationEntityTitle'],
|
|
7068
7185
|
'0x1031': ['US', '1', 'MoveOriginatorMessageID'],
|
|
7069
|
-
'0x4000': ['
|
|
7070
|
-
'0x4010': ['
|
|
7186
|
+
'0x4000': ['LT', '1', 'DialogReceiver'],
|
|
7187
|
+
'0x4010': ['LT', '1', 'TerminalType'],
|
|
7071
7188
|
'0x5010': ['SH', '1', 'MessageSetID'],
|
|
7072
|
-
'0x5020': ['SH', '1', '
|
|
7073
|
-
'0x5110': ['
|
|
7074
|
-
'0x5120': ['
|
|
7189
|
+
'0x5020': ['SH', '1', 'EndMessageID'],
|
|
7190
|
+
'0x5110': ['LT', '1', 'DisplayFormat'],
|
|
7191
|
+
'0x5120': ['LT', '1', 'PagePositionID'],
|
|
7075
7192
|
'0x5130': ['CS', '1', 'TextFormatID'],
|
|
7076
7193
|
'0x5140': ['CS', '1', 'NormalReverse'],
|
|
7077
7194
|
'0x5150': ['CS', '1', 'AddGrayScale'],
|
|
7078
7195
|
'0x5160': ['CS', '1', 'Borders'],
|
|
7079
7196
|
'0x5170': ['IS', '1', 'Copies'],
|
|
7080
|
-
'0x5180': ['CS', '1', '
|
|
7197
|
+
'0x5180': ['CS', '1', 'CommandMagnificationType'],
|
|
7081
7198
|
'0x5190': ['CS', '1', 'Erase'],
|
|
7082
7199
|
'0x51A0': ['CS', '1', 'Print'],
|
|
7083
7200
|
'0x51B0': ['US', '1-n', 'Overlays']
|
|
@@ -7093,6 +7210,16 @@ dwv.dicom.dictionary = {
|
|
|
7093
7210
|
'0x0016': ['AE', '1', 'SourceApplicationEntityTitle'],
|
|
7094
7211
|
'0x0017': ['AE', '1', 'SendingApplicationEntityTitle'],
|
|
7095
7212
|
'0x0018': ['AE', '1', 'ReceivingApplicationEntityTitle'],
|
|
7213
|
+
'0x0026': ['UR', '1', 'SourcePresentationAddress'],
|
|
7214
|
+
'0x0027': ['UR', '1', 'SendingPresentationAddress'],
|
|
7215
|
+
'0x0028': ['UR', '1', 'ReceivingPresentationAddress'],
|
|
7216
|
+
'0x0031': ['OB', '1', 'RTVMetaInformationVersion'],
|
|
7217
|
+
'0x0032': ['UI', '1', 'RTVCommunicationSOPClassUID'],
|
|
7218
|
+
'0x0033': ['UI', '1', 'RTVCommunicationSOPInstanceUID'],
|
|
7219
|
+
'0x0035': ['OB', '1', 'RTVSourceIdentifier'],
|
|
7220
|
+
'0x0036': ['OB', '1', 'RTVFlowIdentifier'],
|
|
7221
|
+
'0x0037': ['UL', '1', 'RTVFlowRTPSamplingRate'],
|
|
7222
|
+
'0x0038': ['FD', '1', 'RTVFlowActualFrameDuration'],
|
|
7096
7223
|
'0x0100': ['UI', '1', 'PrivateInformationCreatorUID'],
|
|
7097
7224
|
'0x0102': ['OB', '1', 'PrivateInformation']
|
|
7098
7225
|
},
|
|
@@ -7154,11 +7281,13 @@ dwv.dicom.dictionary = {
|
|
|
7154
7281
|
'0x0052': ['CS', '1', 'QueryRetrieveLevel'],
|
|
7155
7282
|
'0x0053': ['CS', '1', 'QueryRetrieveView'],
|
|
7156
7283
|
'0x0054': ['AE', '1-n', 'RetrieveAETitle'],
|
|
7284
|
+
'0x0055': ['AE', '1', 'StationAETitle'],
|
|
7157
7285
|
'0x0056': ['CS', '1', 'InstanceAvailability'],
|
|
7158
7286
|
'0x0058': ['UI', '1-n', 'FailedSOPInstanceUIDList'],
|
|
7159
7287
|
'0x0060': ['CS', '1', 'Modality'],
|
|
7160
7288
|
'0x0061': ['CS', '1-n', 'ModalitiesInStudy'],
|
|
7161
7289
|
'0x0062': ['UI', '1-n', 'SOPClassesInStudy'],
|
|
7290
|
+
'0x0063': ['SQ', '1', 'AnatomicRegionsInStudyCodeSequence'],
|
|
7162
7291
|
'0x0064': ['CS', '1', 'ConversionType'],
|
|
7163
7292
|
'0x0068': ['CS', '1', 'PresentationIntentType'],
|
|
7164
7293
|
'0x0070': ['LO', '1', 'Manufacturer'],
|
|
@@ -7180,9 +7309,12 @@ dwv.dicom.dictionary = {
|
|
|
7180
7309
|
'0x0106': ['DT', '1', 'ContextGroupVersion'],
|
|
7181
7310
|
'0x0107': ['DT', '1', 'ContextGroupLocalVersion'],
|
|
7182
7311
|
'0x0108': ['LT', '1', 'ExtendedCodeMeaning'],
|
|
7312
|
+
'0x0109': ['SQ', '1', 'CodingSchemeResourcesSequence'],
|
|
7313
|
+
'0x010A': ['CS', '1', 'CodingSchemeURLType'],
|
|
7183
7314
|
'0x010B': ['CS', '1', 'ContextGroupExtensionFlag'],
|
|
7184
7315
|
'0x010C': ['UI', '1', 'CodingSchemeUID'],
|
|
7185
7316
|
'0x010D': ['UI', '1', 'ContextGroupExtensionCreatorUID'],
|
|
7317
|
+
'0x010E': ['UR', '1', 'CodingSchemeURL'],
|
|
7186
7318
|
'0x010F': ['CS', '1', 'ContextIdentifier'],
|
|
7187
7319
|
'0x0110': ['SQ', '1', 'CodingSchemeIdentificationSequence'],
|
|
7188
7320
|
'0x0112': ['LO', '1', 'CodingSchemeRegistry'],
|
|
@@ -7194,15 +7326,31 @@ dwv.dicom.dictionary = {
|
|
|
7194
7326
|
'0x0119': ['UC', '1', 'LongCodeValue'],
|
|
7195
7327
|
'0x0120': ['UR', '1', 'URNCodeValue'],
|
|
7196
7328
|
'0x0121': ['SQ', '1', 'EquivalentCodeSequence'],
|
|
7329
|
+
'0x0122': ['LO', '1', 'MappingResourceName'],
|
|
7330
|
+
'0x0123': ['SQ', '1', 'ContextGroupIdentificationSequence'],
|
|
7331
|
+
'0x0124': ['SQ', '1', 'MappingResourceIdentificationSequence'],
|
|
7197
7332
|
'0x0201': ['SH', '1', 'TimezoneOffsetFromUTC'],
|
|
7333
|
+
'0x0202': ['', '', ''],
|
|
7334
|
+
'0x0220': ['SQ', '1', 'ResponsibleGroupCodeSequence'],
|
|
7335
|
+
'0x0221': ['CS', '1', 'EquipmentModality'],
|
|
7336
|
+
'0x0222': ['LO', '1', 'ManufacturerRelatedModelGroup'],
|
|
7198
7337
|
'0x0300': ['SQ', '1', 'PrivateDataElementCharacteristicsSequence'],
|
|
7199
7338
|
'0x0301': ['US', '1', 'PrivateGroupReference'],
|
|
7200
7339
|
'0x0302': ['LO', '1', 'PrivateCreatorReference'],
|
|
7201
7340
|
'0x0303': ['CS', '1', 'BlockIdentifyingInformationStatus'],
|
|
7202
7341
|
'0x0304': ['US', '1-n', 'NonidentifyingPrivateElements'],
|
|
7203
|
-
'0x0306': ['US', '1-n', 'IdentifyingPrivateElements'],
|
|
7204
7342
|
'0x0305': ['SQ', '1', 'DeidentificationActionSequence'],
|
|
7343
|
+
'0x0306': ['US', '1-n', 'IdentifyingPrivateElements'],
|
|
7205
7344
|
'0x0307': ['CS', '1', 'DeidentificationAction'],
|
|
7345
|
+
'0x0308': ['US', '1', 'PrivateDataElement'],
|
|
7346
|
+
'0x0309': ['UL', '1-3', 'PrivateDataElementValueMultiplicity'],
|
|
7347
|
+
'0x030A': ['CS', '1', 'PrivateDataElementValueRepresentation'],
|
|
7348
|
+
'0x030B': ['UL', '1-2', 'PrivateDataElementNumberOfItems'],
|
|
7349
|
+
'0x030C': ['UC', '1', 'PrivateDataElementName'],
|
|
7350
|
+
'0x030D': ['UC', '1', 'PrivateDataElementKeyword'],
|
|
7351
|
+
'0x030E': ['UT', '1', 'PrivateDataElementDescription'],
|
|
7352
|
+
'0x030F': ['UT', '1', 'PrivateDataElementEncoding'],
|
|
7353
|
+
'0x0310': ['SQ', '1', 'PrivateDataElementDefinitionSequence'],
|
|
7206
7354
|
'0x1000': ['AE', '1', 'NetworkID'],
|
|
7207
7355
|
'0x1010': ['SH', '1', 'StationName'],
|
|
7208
7356
|
'0x1030': ['LO', '1', 'StudyDescription'],
|
|
@@ -7210,6 +7358,7 @@ dwv.dicom.dictionary = {
|
|
|
7210
7358
|
'0x103E': ['LO', '1', 'SeriesDescription'],
|
|
7211
7359
|
'0x103F': ['SQ', '1', 'SeriesDescriptionCodeSequence'],
|
|
7212
7360
|
'0x1040': ['LO', '1', 'InstitutionalDepartmentName'],
|
|
7361
|
+
'0x1041': ['SQ', '1', 'InstitutionalDepartmentTypeCodeSequence'],
|
|
7213
7362
|
'0x1048': ['PN', '1-n', 'PhysiciansOfRecord'],
|
|
7214
7363
|
'0x1049': ['SQ', '1', 'PhysiciansOfRecordIdentificationSequence'],
|
|
7215
7364
|
'0x1050': ['PN', '1-n', 'PerformingPhysicianName'],
|
|
@@ -7236,6 +7385,7 @@ dwv.dicom.dictionary = {
|
|
|
7236
7385
|
'0x114B': ['SQ', '1', 'ReferencedRealWorldValueMappingInstanceSequence'],
|
|
7237
7386
|
'0x1150': ['UI', '1', 'ReferencedSOPClassUID'],
|
|
7238
7387
|
'0x1155': ['UI', '1', 'ReferencedSOPInstanceUID'],
|
|
7388
|
+
'0x1156': ['SQ', '1', 'DefinitionSourceSequence'],
|
|
7239
7389
|
'0x115A': ['UI', '1-n', 'SOPClassesSupported'],
|
|
7240
7390
|
'0x1160': ['IS', '1-n', 'ReferencedFrameNumber'],
|
|
7241
7391
|
'0x1161': ['UL', '1-n', 'SimpleFrameList'],
|
|
@@ -7249,6 +7399,7 @@ dwv.dicom.dictionary = {
|
|
|
7249
7399
|
'0x1197': ['US', '1', 'FailureReason'],
|
|
7250
7400
|
'0x1198': ['SQ', '1', 'FailedSOPSequence'],
|
|
7251
7401
|
'0x1199': ['SQ', '1', 'ReferencedSOPSequence'],
|
|
7402
|
+
'0x119A': ['SQ', '1', 'OtherFailuresSequence'],
|
|
7252
7403
|
'0x1200': ['SQ', '1', 'StudiesContainingOtherReferencedInstancesSequence'],
|
|
7253
7404
|
'0x1250': ['SQ', '1', 'RelatedSeriesSequence'],
|
|
7254
7405
|
'0x2110': ['CS', '1', 'LossyImageCompressionRetired'],
|
|
@@ -7291,6 +7442,7 @@ dwv.dicom.dictionary = {
|
|
|
7291
7442
|
'0x225A': ['SQ', '1', 'AnatomicStructureSpaceOrRegionModifierCodeSequenceTrial'],
|
|
7292
7443
|
'0x225C': ['SQ', '1', 'OnAxisBackgroundAnatomicStructureCodeSequenceTrial'],
|
|
7293
7444
|
'0x3001': ['SQ', '1', 'AlternateRepresentationSequence'],
|
|
7445
|
+
'0x3002': ['UI', '1-n', 'AvailableTransferSyntaxUID'],
|
|
7294
7446
|
'0x3010': ['UI', '1-n', 'IrradiationEventUID'],
|
|
7295
7447
|
'0x3011': ['SQ', '1', 'SourceIrradiationEventSequence'],
|
|
7296
7448
|
'0x3012': ['UI', '1', 'RadiopharmaceuticalAdministrationEventUID'],
|
|
@@ -7320,14 +7472,32 @@ dwv.dicom.dictionary = {
|
|
|
7320
7472
|
'0x0021': ['LO', '1', 'IssuerOfPatientID'],
|
|
7321
7473
|
'0x0022': ['CS', '1', 'TypeOfPatientID'],
|
|
7322
7474
|
'0x0024': ['SQ', '1', 'IssuerOfPatientIDQualifiersSequence'],
|
|
7475
|
+
'0x0026': ['SQ', '1', 'SourcePatientGroupIdentificationSequence'],
|
|
7476
|
+
'0x0027': ['SQ', '1', 'GroupOfPatientsIdentificationSequence'],
|
|
7477
|
+
'0x0028': ['US', '3', 'SubjectRelativePositionInImage'],
|
|
7323
7478
|
'0x0030': ['DA', '1', 'PatientBirthDate'],
|
|
7324
7479
|
'0x0032': ['TM', '1', 'PatientBirthTime'],
|
|
7480
|
+
'0x0033': ['LO', '1', 'PatientBirthDateInAlternativeCalendar'],
|
|
7481
|
+
'0x0034': ['LO', '1', 'PatientDeathDateInAlternativeCalendar'],
|
|
7482
|
+
'0x0035': ['CS', '1', 'PatientAlternativeCalendar'],
|
|
7325
7483
|
'0x0040': ['CS', '1', 'PatientSex'],
|
|
7326
7484
|
'0x0050': ['SQ', '1', 'PatientInsurancePlanCodeSequence'],
|
|
7327
7485
|
'0x0101': ['SQ', '1', 'PatientPrimaryLanguageCodeSequence'],
|
|
7328
7486
|
'0x0102': ['SQ', '1', 'PatientPrimaryLanguageModifierCodeSequence'],
|
|
7329
7487
|
'0x0200': ['CS', '1', 'QualityControlSubject'],
|
|
7330
7488
|
'0x0201': ['SQ', '1', 'QualityControlSubjectTypeCodeSequence'],
|
|
7489
|
+
'0x0212': ['UC', '1', 'StrainDescription'],
|
|
7490
|
+
'0x0213': ['LO', '1', 'StrainNomenclature'],
|
|
7491
|
+
'0x0214': ['LO', '1', 'StrainStockNumber'],
|
|
7492
|
+
'0x0215': ['SQ', '1', 'StrainSourceRegistryCodeSequence'],
|
|
7493
|
+
'0x0216': ['SQ', '1', 'StrainStockSequence'],
|
|
7494
|
+
'0x0217': ['LO', '1', 'StrainSource'],
|
|
7495
|
+
'0x0218': ['UT', '1', 'StrainAdditionalInformation'],
|
|
7496
|
+
'0x0219': ['SQ', '1', 'StrainCodeSequence'],
|
|
7497
|
+
'0x0221': ['SQ', '1', 'GeneticModificationsSequence'],
|
|
7498
|
+
'0x0222': ['UC', '1', 'GeneticModificationsDescription'],
|
|
7499
|
+
'0x0223': ['LO', '1', 'GeneticModificationsNomenclature'],
|
|
7500
|
+
'0x0229': ['SQ', '1', 'GeneticModificationsCodeSequence'],
|
|
7331
7501
|
'0x1000': ['LO', '1-n', 'OtherPatientIDs'],
|
|
7332
7502
|
'0x1001': ['PN', '1-n', 'OtherPatientNames'],
|
|
7333
7503
|
'0x1002': ['SQ', '1', 'OtherPatientIDsSequence'],
|
|
@@ -7335,6 +7505,9 @@ dwv.dicom.dictionary = {
|
|
|
7335
7505
|
'0x1010': ['AS', '1', 'PatientAge'],
|
|
7336
7506
|
'0x1020': ['DS', '1', 'PatientSize'],
|
|
7337
7507
|
'0x1021': ['SQ', '1', 'PatientSizeCodeSequence'],
|
|
7508
|
+
'0x1022': ['DS', '1', 'PatientBodyMassIndex'],
|
|
7509
|
+
'0x1023': ['DS', '1', 'MeasuredAPDimension'],
|
|
7510
|
+
'0x1024': ['DS', '1', 'MeasuredLateralDimension'],
|
|
7338
7511
|
'0x1030': ['DS', '1', 'PatientWeight'],
|
|
7339
7512
|
'0x1040': ['LO', '1', 'PatientAddress'],
|
|
7340
7513
|
'0x1050': ['LO', '1-n', 'InsurancePlanIdentification'],
|
|
@@ -7382,6 +7555,8 @@ dwv.dicom.dictionary = {
|
|
|
7382
7555
|
'0x0042': ['LO', '1', 'ClinicalTrialSubjectReadingID'],
|
|
7383
7556
|
'0x0050': ['LO', '1', 'ClinicalTrialTimePointID'],
|
|
7384
7557
|
'0x0051': ['ST', '1', 'ClinicalTrialTimePointDescription'],
|
|
7558
|
+
'0x0052': ['FD', '1', 'LongitudinalTemporalOffsetFromEvent'],
|
|
7559
|
+
'0x0053': ['CS', '1', 'LongitudinalTemporalEventType'],
|
|
7385
7560
|
'0x0060': ['LO', '1', 'ClinicalTrialCoordinatingCenterName'],
|
|
7386
7561
|
'0x0062': ['CS', '1', 'PatientIdentityRemoved'],
|
|
7387
7562
|
'0x0063': ['LO', '1-n', 'DeidentificationMethod'],
|
|
@@ -7392,25 +7567,36 @@ dwv.dicom.dictionary = {
|
|
|
7392
7567
|
'0x0082': ['LO', '1', 'ClinicalTrialProtocolEthicsCommitteeApprovalNumber'],
|
|
7393
7568
|
'0x0083': ['SQ', '1', 'ConsentForClinicalTrialUseSequence'],
|
|
7394
7569
|
'0x0084': ['CS', '1', 'DistributionType'],
|
|
7395
|
-
'0x0085': ['CS', '1', 'ConsentForDistributionFlag']
|
|
7570
|
+
'0x0085': ['CS', '1', 'ConsentForDistributionFlag'],
|
|
7571
|
+
'0x0086': ['DA', '1', 'EthicsCommitteeApprovalEffectivenessStartDate'],
|
|
7572
|
+
'0x0087': ['DA', '1', 'EthicsCommitteeApprovalEffectivenessEndDate']
|
|
7396
7573
|
},
|
|
7397
7574
|
'0x0014': {
|
|
7398
7575
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
7399
|
-
'0x0023': ['ST', '1
|
|
7400
|
-
'0x0024': ['ST', '1
|
|
7401
|
-
'0x0025': ['ST', '1
|
|
7402
|
-
'0x0028': ['ST', '1
|
|
7576
|
+
'0x0023': ['ST', '1', 'CADFileFormat'],
|
|
7577
|
+
'0x0024': ['ST', '1', 'ComponentReferenceSystem'],
|
|
7578
|
+
'0x0025': ['ST', '1', 'ComponentManufacturingProcedure'],
|
|
7579
|
+
'0x0028': ['ST', '1', 'ComponentManufacturer'],
|
|
7403
7580
|
'0x0030': ['DS', '1-n', 'MaterialThickness'],
|
|
7404
7581
|
'0x0032': ['DS', '1-n', 'MaterialPipeDiameter'],
|
|
7405
7582
|
'0x0034': ['DS', '1-n', 'MaterialIsolationDiameter'],
|
|
7406
|
-
'0x0042': ['ST', '1
|
|
7407
|
-
'0x0044': ['ST', '1
|
|
7408
|
-
'0x0045': ['ST', '1
|
|
7583
|
+
'0x0042': ['ST', '1', 'MaterialGrade'],
|
|
7584
|
+
'0x0044': ['ST', '1', 'MaterialPropertiesDescription'],
|
|
7585
|
+
'0x0045': ['ST', '1', 'MaterialPropertiesFileFormatRetired'],
|
|
7409
7586
|
'0x0046': ['LT', '1', 'MaterialNotes'],
|
|
7410
7587
|
'0x0050': ['CS', '1', 'ComponentShape'],
|
|
7411
7588
|
'0x0052': ['CS', '1', 'CurvatureType'],
|
|
7412
7589
|
'0x0054': ['DS', '1', 'OuterDiameter'],
|
|
7413
7590
|
'0x0056': ['DS', '1', 'InnerDiameter'],
|
|
7591
|
+
'0x0100': ['LO', '1-n', 'ComponentWelderIDs'],
|
|
7592
|
+
'0x0101': ['CS', '1', 'SecondaryApprovalStatus'],
|
|
7593
|
+
'0x0102': ['DA', '1', 'SecondaryReviewDate'],
|
|
7594
|
+
'0x0103': ['TM', '1', 'SecondaryReviewTime'],
|
|
7595
|
+
'0x0104': ['PN', '1', 'SecondaryReviewerName'],
|
|
7596
|
+
'0x0105': ['ST', '1', 'RepairID'],
|
|
7597
|
+
'0x0106': ['SQ', '1', 'MultipleComponentApprovalSequence'],
|
|
7598
|
+
'0x0107': ['CS', '1-n', 'OtherApprovalStatus'],
|
|
7599
|
+
'0x0108': ['CS', '1-n', 'OtherSecondaryApprovalStatus'],
|
|
7414
7600
|
'0x1010': ['ST', '1', 'ActualEnvironmentalConditions'],
|
|
7415
7601
|
'0x1020': ['DA', '1', 'ExpiryDate'],
|
|
7416
7602
|
'0x1040': ['ST', '1', 'EnvironmentalConditions'],
|
|
@@ -7462,6 +7648,8 @@ dwv.dicom.dictionary = {
|
|
|
7462
7648
|
'0x3077': ['TM', '1', 'TimeOfGainCalibration'],
|
|
7463
7649
|
'0x3080': ['OB', '1', 'BadPixelImage'],
|
|
7464
7650
|
'0x3099': ['LT', '1', 'CalibrationNotes'],
|
|
7651
|
+
'0x3100': ['LT', '1', 'LinearityCorrectionTechnique'],
|
|
7652
|
+
'0x3101': ['LT', '1', 'BeamHardeningCorrectionTechnique'],
|
|
7465
7653
|
'0x4002': ['SQ', '1', 'PulserEquipmentSequence'],
|
|
7466
7654
|
'0x4004': ['CS', '1', 'PulserType'],
|
|
7467
7655
|
'0x4006': ['LT', '1', 'PulserNotes'],
|
|
@@ -7542,9 +7730,9 @@ dwv.dicom.dictionary = {
|
|
|
7542
7730
|
'0x409C': ['DS', '1', 'TranslationRateX'],
|
|
7543
7731
|
'0x409D': ['DS', '1', 'TranslationRateY'],
|
|
7544
7732
|
'0x409F': ['DS', '1', 'ChannelOverlap'],
|
|
7545
|
-
'0x40A0': ['LO', '1', 'ImageQualityIndicatorType'],
|
|
7546
|
-
'0x40A1': ['LO', '1', 'ImageQualityIndicatorMaterial'],
|
|
7547
|
-
'0x40A2': ['LO', '1', 'ImageQualityIndicatorSize'],
|
|
7733
|
+
'0x40A0': ['LO', '1-n', 'ImageQualityIndicatorType'],
|
|
7734
|
+
'0x40A1': ['LO', '1-n', 'ImageQualityIndicatorMaterial'],
|
|
7735
|
+
'0x40A2': ['LO', '1-n', 'ImageQualityIndicatorSize'],
|
|
7548
7736
|
'0x5002': ['IS', '1', 'LINACEnergy'],
|
|
7549
7737
|
'0x5004': ['IS', '1', 'LINACOutput'],
|
|
7550
7738
|
'0x5100': ['US', '1', 'ActiveAperture'],
|
|
@@ -7580,6 +7768,119 @@ dwv.dicom.dictionary = {
|
|
|
7580
7768
|
'0x511E': ['CS', '1', 'WedgeCurve'],
|
|
7581
7769
|
'0x511F': ['DS', '1', 'RadiusAlongWedge']
|
|
7582
7770
|
},
|
|
7771
|
+
'0x0016': {
|
|
7772
|
+
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
7773
|
+
'0x0001': ['DS', '1', 'WhitePoint'],
|
|
7774
|
+
'0x0002': ['DS', '3', 'PrimaryChromaticities'],
|
|
7775
|
+
'0x0003': ['UT', '1', 'BatteryLevel'],
|
|
7776
|
+
'0x0004': ['DS', '1', 'ExposureTimeInSeconds'],
|
|
7777
|
+
'0x0005': ['DS', '1', 'FNumber'],
|
|
7778
|
+
'0x0006': ['IS', '1', 'OECFRows'],
|
|
7779
|
+
'0x0007': ['IS', '1', 'OECFColumns'],
|
|
7780
|
+
'0x0008': ['UC', '1-n', 'OECFColumnNames'],
|
|
7781
|
+
'0x0009': ['DS', '1-n', 'OECFValues'],
|
|
7782
|
+
'0x000A': ['IS', '1', 'SpatialFrequencyResponseRows'],
|
|
7783
|
+
'0x000B': ['IS', '1', 'SpatialFrequencyResponseColumns'],
|
|
7784
|
+
'0x000C': ['UC', '1-n', 'SpatialFrequencyResponseColumnNames'],
|
|
7785
|
+
'0x000D': ['DS', '1-n', 'SpatialFrequencyResponseValues'],
|
|
7786
|
+
'0x000E': ['IS', '1', 'ColorFilterArrayPatternRows'],
|
|
7787
|
+
'0x000F': ['IS', '1', 'ColorFilterArrayPatternColumns'],
|
|
7788
|
+
'0x0010': ['DS', '1-n', 'ColorFilterArrayPatternValues'],
|
|
7789
|
+
'0x0011': ['US', '1', 'FlashFiringStatus'],
|
|
7790
|
+
'0x0012': ['US', '1', 'FlashReturnStatus'],
|
|
7791
|
+
'0x0013': ['US', '1', 'FlashMode'],
|
|
7792
|
+
'0x0014': ['US', '1', 'FlashFunctionPresent'],
|
|
7793
|
+
'0x0015': ['US', '1', 'FlashRedEyeMode'],
|
|
7794
|
+
'0x0016': ['US', '1', 'ExposureProgram'],
|
|
7795
|
+
'0x0017': ['UT', '1', 'SpectralSensitivity'],
|
|
7796
|
+
'0x0018': ['IS', '1', 'PhotographicSensitivity'],
|
|
7797
|
+
'0x0019': ['IS', '1', 'SelfTimerMode'],
|
|
7798
|
+
'0x001A': ['US', '1', 'SensitivityType'],
|
|
7799
|
+
'0x001B': ['IS', '1', 'StandardOutputSensitivity'],
|
|
7800
|
+
'0x001C': ['IS', '1', 'RecommendedExposureIndex'],
|
|
7801
|
+
'0x001D': ['IS', '1', 'ISOSpeed'],
|
|
7802
|
+
'0x001E': ['IS', '1', 'ISOSpeedLatitudeyyy'],
|
|
7803
|
+
'0x001F': ['IS', '1', 'ISOSpeedLatitudezzz'],
|
|
7804
|
+
'0x0020': ['UT', '1', 'EXIFVersion'],
|
|
7805
|
+
'0x0021': ['DS', '1', 'ShutterSpeedValue'],
|
|
7806
|
+
'0x0022': ['DS', '1', 'ApertureValue'],
|
|
7807
|
+
'0x0023': ['DS', '1', 'BrightnessValue'],
|
|
7808
|
+
'0x0024': ['DS', '1', 'ExposureBiasValue'],
|
|
7809
|
+
'0x0025': ['DS', '1', 'MaxApertureValue'],
|
|
7810
|
+
'0x0026': ['DS', '1', 'SubjectDistance'],
|
|
7811
|
+
'0x0027': ['US', '1', 'MeteringMode'],
|
|
7812
|
+
'0x0028': ['US', '1', 'LightSource'],
|
|
7813
|
+
'0x0029': ['DS', '1', 'FocalLength'],
|
|
7814
|
+
'0x002A': ['IS', '2-4', 'SubjectArea'],
|
|
7815
|
+
'0x002B': ['OB', '1', 'MakerNote'],
|
|
7816
|
+
'0x0030': ['DS', '1', 'Temperature'],
|
|
7817
|
+
'0x0031': ['DS', '1', 'Humidity'],
|
|
7818
|
+
'0x0032': ['DS', '1', 'Pressure'],
|
|
7819
|
+
'0x0033': ['DS', '1', 'WaterDepth'],
|
|
7820
|
+
'0x0034': ['DS', '1', 'Acceleration'],
|
|
7821
|
+
'0x0035': ['DS', '1', 'CameraElevationAngle'],
|
|
7822
|
+
'0x0036': ['DS', '1-2', 'FlashEnergy'],
|
|
7823
|
+
'0x0037': ['IS', '2', 'SubjectLocation'],
|
|
7824
|
+
'0x0038': ['DS', '1', 'PhotographicExposureIndex'],
|
|
7825
|
+
'0x0039': ['US', '1', 'SensingMethod'],
|
|
7826
|
+
'0x003A': ['US', '1', 'FileSource'],
|
|
7827
|
+
'0x003B': ['US', '1', 'SceneType'],
|
|
7828
|
+
'0x0041': ['US', '1', 'CustomRendered'],
|
|
7829
|
+
'0x0042': ['US', '1', 'ExposureMode'],
|
|
7830
|
+
'0x0043': ['US', '1', 'WhiteBalance'],
|
|
7831
|
+
'0x0044': ['DS', '1', 'DigitalZoomRatio'],
|
|
7832
|
+
'0x0045': ['IS', '1', 'FocalLengthIn35mmFilm'],
|
|
7833
|
+
'0x0046': ['US', '1', 'SceneCaptureType'],
|
|
7834
|
+
'0x0047': ['US', '1', 'GainControl'],
|
|
7835
|
+
'0x0048': ['US', '1', 'Contrast'],
|
|
7836
|
+
'0x0049': ['US', '1', 'Saturation'],
|
|
7837
|
+
'0x004A': ['US', '1', 'Sharpness'],
|
|
7838
|
+
'0x004B': ['OB', '1', 'DeviceSettingDescription'],
|
|
7839
|
+
'0x004C': ['US', '1', 'SubjectDistanceRange'],
|
|
7840
|
+
'0x004D': ['UT', '1', 'CameraOwnerName'],
|
|
7841
|
+
'0x004E': ['DS', '4', 'LensSpecification'],
|
|
7842
|
+
'0x004F': ['UT', '1', 'LensMake'],
|
|
7843
|
+
'0x0050': ['UT', '1', 'LensModel'],
|
|
7844
|
+
'0x0051': ['UT', '1', 'LensSerialNumber'],
|
|
7845
|
+
'0x0061': ['CS', '1', 'InteroperabilityIndex'],
|
|
7846
|
+
'0x0062': ['OB', '1', 'InteroperabilityVersion'],
|
|
7847
|
+
'0x0070': ['OB', '1', 'GPSVersionID'],
|
|
7848
|
+
'0x0071': ['CS', '1', 'GPSLatitudeRef'],
|
|
7849
|
+
'0x0072': ['DS', '3', 'GPSLatitude'],
|
|
7850
|
+
'0x0073': ['CS', '1', 'GPSLongitudeRef'],
|
|
7851
|
+
'0x0074': ['DS', '3', 'GPSLongitude'],
|
|
7852
|
+
'0x0075': ['US', '1', 'GPSAltitudeRef'],
|
|
7853
|
+
'0x0076': ['DS', '1', 'GPSAltitude'],
|
|
7854
|
+
'0x0077': ['DT', '1', 'GPSTimeStamp'],
|
|
7855
|
+
'0x0078': ['UT', '1', 'GPSSatellites'],
|
|
7856
|
+
'0x0079': ['CS', '1', 'GPSStatus'],
|
|
7857
|
+
'0x007A': ['CS', '1', 'GPSMeasureMode'],
|
|
7858
|
+
'0x007B': ['DS', '1', 'GPSDOP'],
|
|
7859
|
+
'0x007C': ['CS', '1', 'GPSSpeedRef'],
|
|
7860
|
+
'0x007D': ['DS', '1', 'GPSSpeed'],
|
|
7861
|
+
'0x007E': ['CS', '1', 'GPSTrackRef'],
|
|
7862
|
+
'0x007F': ['DS', '1', 'GPSTrack'],
|
|
7863
|
+
'0x0080': ['CS', '1', 'GPSImgDirectionRef'],
|
|
7864
|
+
'0x0081': ['DS', '1', 'GPSImgDirection'],
|
|
7865
|
+
'0x0082': ['UT', '1', 'GPSMapDatum'],
|
|
7866
|
+
'0x0083': ['CS', '1', 'GPSDestLatitudeRef'],
|
|
7867
|
+
'0x0084': ['DS', '3', 'GPSDestLatitude'],
|
|
7868
|
+
'0x0085': ['CS', '1', 'GPSDestLongitudeRef'],
|
|
7869
|
+
'0x0086': ['DS', '3', 'GPSDestLongitude'],
|
|
7870
|
+
'0x0087': ['CS', '1', 'GPSDestBearingRef'],
|
|
7871
|
+
'0x0088': ['DS', '1', 'GPSDestBearing'],
|
|
7872
|
+
'0x0089': ['CS', '1', 'GPSDestDistanceRef'],
|
|
7873
|
+
'0x008A': ['DS', '1', 'GPSDestDistance'],
|
|
7874
|
+
'0x008B': ['OB', '1', 'GPSProcessingMethod'],
|
|
7875
|
+
'0x008C': ['OB', '1', 'GPSAreaInformation'],
|
|
7876
|
+
'0x008D': ['DT', '1', 'GPSDateStamp'],
|
|
7877
|
+
'0x008E': ['IS', '1', 'GPSDifferential'],
|
|
7878
|
+
'0x1001': ['CS', '1', 'LightSourcePolarization'],
|
|
7879
|
+
'0x1002': ['DS', '1', 'EmitterColorTemperature'],
|
|
7880
|
+
'0x1003': ['CS', '1', 'ContactMethod'],
|
|
7881
|
+
'0x1004': ['CS', '1-n', 'ImmersionMedia'],
|
|
7882
|
+
'0x1005': ['DS', '1', 'OpticalMagnificationFactor']
|
|
7883
|
+
},
|
|
7583
7884
|
'0x0018': {
|
|
7584
7885
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
7585
7886
|
'0x0010': ['LO', '1', 'ContrastBolusAgent'],
|
|
@@ -7613,6 +7914,7 @@ dwv.dicom.dictionary = {
|
|
|
7613
7914
|
'0x0042': ['CS', '1', 'InitialCineRunState'],
|
|
7614
7915
|
'0x0050': ['DS', '1', 'SliceThickness'],
|
|
7615
7916
|
'0x0060': ['DS', '1', 'KVP'],
|
|
7917
|
+
'0x0061': ['DS', '1', ''],
|
|
7616
7918
|
'0x0070': ['IS', '1', 'CountsAccumulated'],
|
|
7617
7919
|
'0x0071': ['CS', '1', 'AcquisitionTerminationCondition'],
|
|
7618
7920
|
'0x0072': ['DS', '1', 'EffectiveDuration'],
|
|
@@ -7642,6 +7944,9 @@ dwv.dicom.dictionary = {
|
|
|
7642
7944
|
'0x1006': ['LO', '1', 'GridID'],
|
|
7643
7945
|
'0x1007': ['LO', '1', 'CassetteID'],
|
|
7644
7946
|
'0x1008': ['LO', '1', 'GantryID'],
|
|
7947
|
+
'0x1009': ['UT', '1', 'UniqueDeviceIdentifier'],
|
|
7948
|
+
'0x100A': ['SQ', '1', 'UDISequence'],
|
|
7949
|
+
'0x100B': ['UI', '1-n', 'ManufacturerDeviceClassUID'],
|
|
7645
7950
|
'0x1010': ['LO', '1', 'SecondaryCaptureDeviceID'],
|
|
7646
7951
|
'0x1011': ['LO', '1', 'HardcopyCreationDeviceID'],
|
|
7647
7952
|
'0x1012': ['DA', '1', 'DateOfSecondaryCapture'],
|
|
@@ -7747,10 +8052,31 @@ dwv.dicom.dictionary = {
|
|
|
7747
8052
|
'0x1191': ['CS', '1', 'AnodeTargetMaterial'],
|
|
7748
8053
|
'0x11A0': ['DS', '1', 'BodyPartThickness'],
|
|
7749
8054
|
'0x11A2': ['DS', '1', 'CompressionForce'],
|
|
8055
|
+
'0x11A3': ['DS', '1', 'CompressionPressure'],
|
|
7750
8056
|
'0x11A4': ['LO', '1', 'PaddleDescription'],
|
|
8057
|
+
'0x11A5': ['DS', '1', 'CompressionContactArea'],
|
|
8058
|
+
'0x11B0': ['LO', '1', 'AcquisitionMode'],
|
|
8059
|
+
'0x11B1': ['LO', '1', 'DoseModeName'],
|
|
8060
|
+
'0x11B2': ['CS', '1', 'AcquiredSubtractionMaskFlag'],
|
|
8061
|
+
'0x11B3': ['CS', '1', 'FluoroscopyPersistenceFlag'],
|
|
8062
|
+
'0x11B4': ['CS', '1', 'FluoroscopyLastImageHoldPersistenceFlag'],
|
|
8063
|
+
'0x11B5': ['IS', '1', 'UpperLimitNumberOfPersistentFluoroscopyFrames'],
|
|
8064
|
+
'0x11B6': ['CS', '1', 'ContrastBolusAutoInjectionTriggerFlag'],
|
|
8065
|
+
'0x11B7': ['FD', '1', 'ContrastBolusInjectionDelay'],
|
|
8066
|
+
'0x11B8': ['SQ', '1', 'XAAcquisitionPhaseDetailsSequence'],
|
|
8067
|
+
'0x11B9': ['FD', '1', 'XAAcquisitionFrameRate'],
|
|
8068
|
+
'0x11BA': ['SQ', '1', 'XAPlaneDetailsSequence'],
|
|
8069
|
+
'0x11BB': ['LO', '1', 'AcquisitionFieldOfViewLabel'],
|
|
8070
|
+
'0x11BC': ['SQ', '1', 'XRayFilterDetailsSequence'],
|
|
8071
|
+
'0x11BD': ['FD', '1', 'XAAcquisitionDuration'],
|
|
8072
|
+
'0x11BE': ['CS', '1', 'ReconstructionPipelineType'],
|
|
8073
|
+
'0x11BF': ['SQ', '1', 'ImageFilterDetailsSequence'],
|
|
8074
|
+
'0x11C0': ['CS', '1', 'AppliedMaskSubtractionFlag'],
|
|
8075
|
+
'0x11C1': ['SQ', '1', 'RequestedSeriesDescriptionCodeSequence'],
|
|
7751
8076
|
'0x1200': ['DA', '1-n', 'DateOfLastCalibration'],
|
|
7752
8077
|
'0x1201': ['TM', '1-n', 'TimeOfLastCalibration'],
|
|
7753
8078
|
'0x1202': ['DT', '1', 'DateTimeOfLastCalibration'],
|
|
8079
|
+
'0x1203': ['DT', '1', 'CalibrationDateTime'],
|
|
7754
8080
|
'0x1210': ['SH', '1-n', 'ConvolutionKernel'],
|
|
7755
8081
|
'0x1240': ['IS', '1-n', 'UpperLowerPixelValues'],
|
|
7756
8082
|
'0x1242': ['IS', '1', 'ActualFrameDuration'],
|
|
@@ -7760,6 +8086,8 @@ dwv.dicom.dictionary = {
|
|
|
7760
8086
|
'0x1251': ['SH', '1', 'TransmitCoilName'],
|
|
7761
8087
|
'0x1260': ['SH', '1', 'PlateType'],
|
|
7762
8088
|
'0x1261': ['LO', '1', 'PhosphorType'],
|
|
8089
|
+
'0x1271': ['FD', '1', 'WaterEquivalentDiameter'],
|
|
8090
|
+
'0x1272': ['SQ', '1', 'WaterEquivalentDiameterCalculationMethodCodeSequence'],
|
|
7763
8091
|
'0x1300': ['DS', '1', 'ScanVelocity'],
|
|
7764
8092
|
'0x1301': ['CS', '1-n', 'WholeBodyTechnique'],
|
|
7765
8093
|
'0x1302': ['IS', '1', 'ScanLength'],
|
|
@@ -7769,6 +8097,7 @@ dwv.dicom.dictionary = {
|
|
|
7769
8097
|
'0x1315': ['CS', '1', 'VariableFlipAngleFlag'],
|
|
7770
8098
|
'0x1316': ['DS', '1', 'SAR'],
|
|
7771
8099
|
'0x1318': ['DS', '1', 'dBdt'],
|
|
8100
|
+
'0x1320': ['FL', '1', 'B1rms'],
|
|
7772
8101
|
'0x1400': ['LO', '1', 'AcquisitionDeviceProcessingDescription'],
|
|
7773
8102
|
'0x1401': ['LO', '1', 'AcquisitionDeviceProcessingCode'],
|
|
7774
8103
|
'0x1402': ['CS', '1', 'CassetteOrientation'],
|
|
@@ -7804,6 +8133,15 @@ dwv.dicom.dictionary = {
|
|
|
7804
8133
|
'0x1622': ['US', '1', 'ShutterPresentationValue'],
|
|
7805
8134
|
'0x1623': ['US', '1', 'ShutterOverlayGroup'],
|
|
7806
8135
|
'0x1624': ['US', '3', 'ShutterPresentationColorCIELabValue'],
|
|
8136
|
+
'0x1630': ['CS', '1', 'OutlineShapeType'],
|
|
8137
|
+
'0x1631': ['FD', '1', 'OutlineLeftVerticalEdge'],
|
|
8138
|
+
'0x1632': ['FD', '1', 'OutlineRightVerticalEdge'],
|
|
8139
|
+
'0x1633': ['FD', '1', 'OutlineUpperHorizontalEdge'],
|
|
8140
|
+
'0x1634': ['FD', '1', 'OutlineLowerHorizontalEdge'],
|
|
8141
|
+
'0x1635': ['FD', '2', 'CenterOfCircularOutline'],
|
|
8142
|
+
'0x1636': ['FD', '1', 'DiameterOfCircularOutline'],
|
|
8143
|
+
'0x1637': ['UL', '1', 'NumberOfPolygonalVertices'],
|
|
8144
|
+
'0x1638': ['OF', '1', 'VerticesOfThePolygonalOutline'],
|
|
7807
8145
|
'0x1700': ['CS', '1-3', 'CollimatorShape'],
|
|
7808
8146
|
'0x1702': ['IS', '1', 'CollimatorLeftVerticalEdge'],
|
|
7809
8147
|
'0x1704': ['IS', '1', 'CollimatorRightVerticalEdge'],
|
|
@@ -7840,6 +8178,7 @@ dwv.dicom.dictionary = {
|
|
|
7840
8178
|
'0x4000': ['LT', '1', 'AcquisitionComments'],
|
|
7841
8179
|
'0x5000': ['SH', '1-n', 'OutputPower'],
|
|
7842
8180
|
'0x5010': ['LO', '1-n', 'TransducerData'],
|
|
8181
|
+
'0x5011': ['SQ', '1', 'TransducerIdentificationSequence'],
|
|
7843
8182
|
'0x5012': ['DS', '1', 'FocusDepth'],
|
|
7844
8183
|
'0x5020': ['LO', '1', 'ProcessingFunction'],
|
|
7845
8184
|
'0x5021': ['LO', '1', 'PostprocessingFunction'],
|
|
@@ -7904,6 +8243,7 @@ dwv.dicom.dictionary = {
|
|
|
7904
8243
|
'0x6058': ['UL', '1-n', 'TableOfPixelValues'],
|
|
7905
8244
|
'0x605A': ['FL', '1-n', 'TableOfParameterValues'],
|
|
7906
8245
|
'0x6060': ['FL', '1-n', 'RWaveTimeVector'],
|
|
8246
|
+
'0x6070': ['US', '1', 'ActiveImageAreaOverlayGroup'],
|
|
7907
8247
|
'0x7000': ['CS', '1', 'DetectorConditionsNominalFlag'],
|
|
7908
8248
|
'0x7001': ['DS', '1', 'DetectorTemperature'],
|
|
7909
8249
|
'0x7004': ['CS', '1', 'DetectorType'],
|
|
@@ -8132,7 +8472,7 @@ dwv.dicom.dictionary = {
|
|
|
8132
8472
|
'0x9320': ['SH', '1', 'ImageFilter'],
|
|
8133
8473
|
'0x9321': ['SQ', '1', 'CTExposureSequence'],
|
|
8134
8474
|
'0x9322': ['FD', '2', 'ReconstructionPixelSpacing'],
|
|
8135
|
-
'0x9323': ['CS', '1', 'ExposureModulationType'],
|
|
8475
|
+
'0x9323': ['CS', '1-n', 'ExposureModulationType'],
|
|
8136
8476
|
'0x9324': ['FD', '1', 'EstimatedDoseSaving'],
|
|
8137
8477
|
'0x9325': ['SQ', '1', 'CTXRayDetailsSequence'],
|
|
8138
8478
|
'0x9326': ['SQ', '1', 'CTPositionSequence'],
|
|
@@ -8157,6 +8497,42 @@ dwv.dicom.dictionary = {
|
|
|
8157
8497
|
'0x9352': ['FL', '3', 'CalciumScoringMassFactorDevice'],
|
|
8158
8498
|
'0x9353': ['FL', '1', 'EnergyWeightingFactor'],
|
|
8159
8499
|
'0x9360': ['SQ', '1', 'CTAdditionalXRaySourceSequence'],
|
|
8500
|
+
'0x9361': ['CS', '1', 'MultienergyCTAcquisition'],
|
|
8501
|
+
'0x9362': ['SQ', '1', 'MultienergyCTAcquisitionSequence'],
|
|
8502
|
+
'0x9363': ['SQ', '1', 'MultienergyCTProcessingSequence'],
|
|
8503
|
+
'0x9364': ['SQ', '1', 'MultienergyCTCharacteristicsSequence'],
|
|
8504
|
+
'0x9365': ['SQ', '1', 'MultienergyCTXRaySourceSequence'],
|
|
8505
|
+
'0x9366': ['US', '1', 'XRaySourceIndex'],
|
|
8506
|
+
'0x9367': ['UC', '1', 'XRaySourceID'],
|
|
8507
|
+
'0x9368': ['CS', '1', 'MultienergySourceTechnique'],
|
|
8508
|
+
'0x9369': ['DT', '1', 'SourceStartDateTime'],
|
|
8509
|
+
'0x936A': ['DT', '1', 'SourceEndDateTime'],
|
|
8510
|
+
'0x936B': ['US', '1', 'SwitchingPhaseNumber'],
|
|
8511
|
+
'0x936C': ['DS', '1', 'SwitchingPhaseNominalDuration'],
|
|
8512
|
+
'0x936D': ['DS', '1', 'SwitchingPhaseTransitionDuration'],
|
|
8513
|
+
'0x936E': ['DS', '1', 'EffectiveBinEnergy'],
|
|
8514
|
+
'0x936F': ['SQ', '1', 'MultienergyCTXRayDetectorSequence'],
|
|
8515
|
+
'0x9370': ['US', '1', 'XRayDetectorIndex'],
|
|
8516
|
+
'0x9371': ['UC', '1', 'XRayDetectorID'],
|
|
8517
|
+
'0x9372': ['CS', '1', 'MultienergyDetectorType'],
|
|
8518
|
+
'0x9373': ['ST', '1', 'XRayDetectorLabel'],
|
|
8519
|
+
'0x9374': ['DS', '1', 'NominalMaxEnergy'],
|
|
8520
|
+
'0x9375': ['DS', '1', 'NominalMinEnergy'],
|
|
8521
|
+
'0x9376': ['US', '1-n', 'ReferencedXRayDetectorIndex'],
|
|
8522
|
+
'0x9377': ['US', '1-n', 'ReferencedXRaySourceIndex'],
|
|
8523
|
+
'0x9378': ['US', '1-n', 'ReferencedPathIndex'],
|
|
8524
|
+
'0x9379': ['SQ', '1', 'MultienergyCTPathSequence'],
|
|
8525
|
+
'0x937A': ['US', '1', 'MultienergyCTPathIndex'],
|
|
8526
|
+
'0x937B': ['UT', '1', 'MultienergyAcquisitionDescription'],
|
|
8527
|
+
'0x937C': ['FD', '1', 'MonoenergeticEnergyEquivalent'],
|
|
8528
|
+
'0x937D': ['SQ', '1', 'MaterialCodeSequence'],
|
|
8529
|
+
'0x937E': ['CS', '1', 'DecompositionMethod'],
|
|
8530
|
+
'0x937F': ['UT', '1', 'DecompositionDescription'],
|
|
8531
|
+
'0x9380': ['SQ', '1', 'DecompositionAlgorithmIdentificationSequence'],
|
|
8532
|
+
'0x9381': ['SQ', '1', 'DecompositionMaterialSequence'],
|
|
8533
|
+
'0x9382': ['SQ', '1', 'MaterialAttenuationSequence'],
|
|
8534
|
+
'0x9383': ['DS', '1', 'PhotonEnergy'],
|
|
8535
|
+
'0x9384': ['DS', '1', 'XRayMassAttenuationCoefficient'],
|
|
8160
8536
|
'0x9401': ['SQ', '1', 'ProjectionPixelCalibrationSequence'],
|
|
8161
8537
|
'0x9402': ['FL', '1', 'DistanceSourceToIsocenter'],
|
|
8162
8538
|
'0x9403': ['FL', '1', 'DistanceObjectToTableTop'],
|
|
@@ -8258,6 +8634,10 @@ dwv.dicom.dictionary = {
|
|
|
8258
8634
|
'0x9605': ['FD', '1', 'DiffusionBValueYY'],
|
|
8259
8635
|
'0x9606': ['FD', '1', 'DiffusionBValueYZ'],
|
|
8260
8636
|
'0x9607': ['FD', '1', 'DiffusionBValueZZ'],
|
|
8637
|
+
'0x9621': ['SQ', '1', 'FunctionalMRSequence'],
|
|
8638
|
+
'0x9622': ['CS', '1', 'FunctionalSettlingPhaseFramesPresent'],
|
|
8639
|
+
'0x9623': ['DT', '1', 'FunctionalSyncPulse'],
|
|
8640
|
+
'0x9624': ['CS', '1', 'SettlingPhaseFrame'],
|
|
8261
8641
|
'0x9701': ['DT', '1', 'DecayCorrectionDateTime'],
|
|
8262
8642
|
'0x9715': ['FD', '1', 'StartDensityThreshold'],
|
|
8263
8643
|
'0x9716': ['FD', '1', 'StartRelativeDensityDifferenceThreshold'],
|
|
@@ -8315,6 +8695,65 @@ dwv.dicom.dictionary = {
|
|
|
8315
8695
|
'0x980E': ['SQ', '1', 'TransducerBeamSteeringCodeSequence'],
|
|
8316
8696
|
'0x980F': ['SQ', '1', 'TransducerApplicationCodeSequence'],
|
|
8317
8697
|
'0x9810': ['xs', '1', 'ZeroVelocityPixelValue'],
|
|
8698
|
+
'0x9900': ['LO', '1', 'ReferenceLocationLabel'],
|
|
8699
|
+
'0x9901': ['UT', '1', 'ReferenceLocationDescription'],
|
|
8700
|
+
'0x9902': ['SQ', '1', 'ReferenceBasisCodeSequence'],
|
|
8701
|
+
'0x9903': ['SQ', '1', 'ReferenceGeometryCodeSequence'],
|
|
8702
|
+
'0x9904': ['DS', '1', 'OffsetDistance'],
|
|
8703
|
+
'0x9905': ['CS', '1', 'OffsetDirection'],
|
|
8704
|
+
'0x9906': ['SQ', '1', 'PotentialScheduledProtocolCodeSequence'],
|
|
8705
|
+
'0x9907': ['SQ', '1', 'PotentialRequestedProcedureCodeSequence'],
|
|
8706
|
+
'0x9908': ['UC', '1-n', 'PotentialReasonsForProcedure'],
|
|
8707
|
+
'0x9909': ['SQ', '1', 'PotentialReasonsForProcedureCodeSequence'],
|
|
8708
|
+
'0x990A': ['UC', '1-n', 'PotentialDiagnosticTasks'],
|
|
8709
|
+
'0x990B': ['SQ', '1', 'ContraindicationsCodeSequence'],
|
|
8710
|
+
'0x990C': ['SQ', '1', 'ReferencedDefinedProtocolSequence'],
|
|
8711
|
+
'0x990D': ['SQ', '1', 'ReferencedPerformedProtocolSequence'],
|
|
8712
|
+
'0x990E': ['SQ', '1', 'PredecessorProtocolSequence'],
|
|
8713
|
+
'0x990F': ['UT', '1', 'ProtocolPlanningInformation'],
|
|
8714
|
+
'0x9910': ['UT', '1', 'ProtocolDesignRationale'],
|
|
8715
|
+
'0x9911': ['SQ', '1', 'PatientSpecificationSequence'],
|
|
8716
|
+
'0x9912': ['SQ', '1', 'ModelSpecificationSequence'],
|
|
8717
|
+
'0x9913': ['SQ', '1', 'ParametersSpecificationSequence'],
|
|
8718
|
+
'0x9914': ['SQ', '1', 'InstructionSequence'],
|
|
8719
|
+
'0x9915': ['US', '1', 'InstructionIndex'],
|
|
8720
|
+
'0x9916': ['LO', '1', 'InstructionText'],
|
|
8721
|
+
'0x9917': ['UT', '1', 'InstructionDescription'],
|
|
8722
|
+
'0x9918': ['CS', '1', 'InstructionPerformedFlag'],
|
|
8723
|
+
'0x9919': ['DT', '1', 'InstructionPerformedDateTime'],
|
|
8724
|
+
'0x991A': ['UT', '1', 'InstructionPerformanceComment'],
|
|
8725
|
+
'0x991B': ['SQ', '1', 'PatientPositioningInstructionSequence'],
|
|
8726
|
+
'0x991C': ['SQ', '1', 'PositioningMethodCodeSequence'],
|
|
8727
|
+
'0x991D': ['SQ', '1', 'PositioningLandmarkSequence'],
|
|
8728
|
+
'0x991E': ['UI', '1', 'TargetFrameOfReferenceUID'],
|
|
8729
|
+
'0x991F': ['SQ', '1', 'AcquisitionProtocolElementSpecificationSequence'],
|
|
8730
|
+
'0x9920': ['SQ', '1', 'AcquisitionProtocolElementSequence'],
|
|
8731
|
+
'0x9921': ['US', '1', 'ProtocolElementNumber'],
|
|
8732
|
+
'0x9922': ['LO', '1', 'ProtocolElementName'],
|
|
8733
|
+
'0x9923': ['UT', '1', 'ProtocolElementCharacteristicsSummary'],
|
|
8734
|
+
'0x9924': ['UT', '1', 'ProtocolElementPurpose'],
|
|
8735
|
+
'0x9930': ['CS', '1', 'AcquisitionMotion'],
|
|
8736
|
+
'0x9931': ['SQ', '1', 'AcquisitionStartLocationSequence'],
|
|
8737
|
+
'0x9932': ['SQ', '1', 'AcquisitionEndLocationSequence'],
|
|
8738
|
+
'0x9933': ['SQ', '1', 'ReconstructionProtocolElementSpecificationSequence'],
|
|
8739
|
+
'0x9934': ['SQ', '1', 'ReconstructionProtocolElementSequence'],
|
|
8740
|
+
'0x9935': ['SQ', '1', 'StorageProtocolElementSpecificationSequence'],
|
|
8741
|
+
'0x9936': ['SQ', '1', 'StorageProtocolElementSequence'],
|
|
8742
|
+
'0x9937': ['LO', '1', 'RequestedSeriesDescription'],
|
|
8743
|
+
'0x9938': ['US', '1-n', 'SourceAcquisitionProtocolElementNumber'],
|
|
8744
|
+
'0x9939': ['US', '1-n', 'SourceAcquisitionBeamNumber'],
|
|
8745
|
+
'0x993A': ['US', '1-n', 'SourceReconstructionProtocolElementNumber'],
|
|
8746
|
+
'0x993B': ['SQ', '1', 'ReconstructionStartLocationSequence'],
|
|
8747
|
+
'0x993C': ['SQ', '1', 'ReconstructionEndLocationSequence'],
|
|
8748
|
+
'0x993D': ['SQ', '1', 'ReconstructionAlgorithmSequence'],
|
|
8749
|
+
'0x993E': ['SQ', '1', 'ReconstructionTargetCenterLocationSequence'],
|
|
8750
|
+
'0x9941': ['UT', '1', 'ImageFilterDescription'],
|
|
8751
|
+
'0x9942': ['FD', '1', 'CTDIvolNotificationTrigger'],
|
|
8752
|
+
'0x9943': ['FD', '1', 'DLPNotificationTrigger'],
|
|
8753
|
+
'0x9944': ['CS', '1', 'AutoKVPSelectionType'],
|
|
8754
|
+
'0x9945': ['FD', '1', 'AutoKVPUpperBound'],
|
|
8755
|
+
'0x9946': ['FD', '1', 'AutoKVPLowerBound'],
|
|
8756
|
+
'0x9947': ['CS', '1', 'ProtocolDefinedPatientPosition'],
|
|
8318
8757
|
'0xA001': ['SQ', '1', 'ContributingEquipmentSequence'],
|
|
8319
8758
|
'0xA002': ['DT', '1', 'ContributionDateTime'],
|
|
8320
8759
|
'0xA003': ['ST', '1', 'ContributionDescription']
|
|
@@ -8360,6 +8799,7 @@ dwv.dicom.dictionary = {
|
|
|
8360
8799
|
'0x1004': ['IS', '1', 'AcquisitionsInStudy'],
|
|
8361
8800
|
'0x1005': ['IS', '1', 'ImagesInStudy'],
|
|
8362
8801
|
'0x1020': ['LO', '1-n', 'Reference'],
|
|
8802
|
+
'0x103F': ['LO', '1', 'TargetPositionReferenceIndicator'],
|
|
8363
8803
|
'0x1040': ['LO', '1', 'PositionReferenceIndicator'],
|
|
8364
8804
|
'0x1041': ['DS', '1', 'SliceLocation'],
|
|
8365
8805
|
'0x1070': ['IS', '1-n', 'OtherStudyNumbers'],
|
|
@@ -8507,10 +8947,18 @@ dwv.dicom.dictionary = {
|
|
|
8507
8947
|
'0x1029': ['LO', '1', 'IOLFormulaDetail'],
|
|
8508
8948
|
'0x1033': ['FL', '1', 'KeratometerIndex'],
|
|
8509
8949
|
'0x1035': ['SQ', '1', 'SourceOfOphthalmicAxialLengthCodeSequence'],
|
|
8950
|
+
'0x1036': ['SQ', '1', 'SourceOfCornealSizeDataCodeSequence'],
|
|
8510
8951
|
'0x1037': ['FL', '1', 'TargetRefraction'],
|
|
8511
8952
|
'0x1039': ['CS', '1', 'RefractiveProcedureOccurred'],
|
|
8512
8953
|
'0x1040': ['SQ', '1', 'RefractiveSurgeryTypeCodeSequence'],
|
|
8513
8954
|
'0x1044': ['SQ', '1', 'OphthalmicUltrasoundMethodCodeSequence'],
|
|
8955
|
+
'0x1045': ['SQ', '1', 'SurgicallyInducedAstigmatismSequence'],
|
|
8956
|
+
'0x1046': ['CS', '1', 'TypeOfOpticalCorrection'],
|
|
8957
|
+
'0x1047': ['SQ', '1', 'ToricIOLPowerSequence'],
|
|
8958
|
+
'0x1048': ['SQ', '1', 'PredictedToricErrorSequence'],
|
|
8959
|
+
'0x1049': ['CS', '1', 'PreSelectedForImplantation'],
|
|
8960
|
+
'0x104A': ['SQ', '1', 'ToricIOLPowerForExactEmmetropiaSequence'],
|
|
8961
|
+
'0x104B': ['SQ', '1', 'ToricIOLPowerForExactTargetRefractionSequence'],
|
|
8514
8962
|
'0x1050': ['SQ', '1', 'OphthalmicAxialLengthMeasurementsSequence'],
|
|
8515
8963
|
'0x1053': ['FL', '1', 'IOLPower'],
|
|
8516
8964
|
'0x1054': ['FL', '1', 'PredictedRefractiveError'],
|
|
@@ -8532,6 +8980,9 @@ dwv.dicom.dictionary = {
|
|
|
8532
8980
|
'0x1125': ['SQ', '1', 'AnteriorChamberDepthDefinitionCodeSequence'],
|
|
8533
8981
|
'0x1127': ['SQ', '1', 'LensThicknessSequence'],
|
|
8534
8982
|
'0x1128': ['SQ', '1', 'AnteriorChamberDepthSequence'],
|
|
8983
|
+
'0x112A': ['SQ', '1', 'CalculationCommentSequence'],
|
|
8984
|
+
'0x112B': ['CS', '1', 'CalculationCommentType'],
|
|
8985
|
+
'0x112C': ['LT', '1', 'CalculationComment'],
|
|
8535
8986
|
'0x1130': ['FL', '1', 'LensThickness'],
|
|
8536
8987
|
'0x1131': ['FL', '1', 'AnteriorChamberDepth'],
|
|
8537
8988
|
'0x1132': ['SQ', '1', 'SourceOfLensThicknessDataCodeSequence'],
|
|
@@ -8588,7 +9039,26 @@ dwv.dicom.dictionary = {
|
|
|
8588
9039
|
'0x1528': ['FL', '1', 'XCoordinatesCenterPixelViewAngle'],
|
|
8589
9040
|
'0x1529': ['FL', '1', 'YCoordinatesCenterPixelViewAngle'],
|
|
8590
9041
|
'0x1530': ['UL', '1', 'NumberOfMapPoints'],
|
|
8591
|
-
'0x1531': ['OF', '1', 'TwoDimensionalToThreeDimensionalMapData']
|
|
9042
|
+
'0x1531': ['OF', '1', 'TwoDimensionalToThreeDimensionalMapData'],
|
|
9043
|
+
'0x1612': ['SQ', '1', 'DerivationAlgorithmSequence'],
|
|
9044
|
+
'0x1615': ['SQ', '1', 'OphthalmicImageTypeCodeSequence'],
|
|
9045
|
+
'0x1616': ['LO', '1', 'OphthalmicImageTypeDescription'],
|
|
9046
|
+
'0x1618': ['SQ', '1', 'ScanPatternTypeCodeSequence'],
|
|
9047
|
+
'0x1620': ['SQ', '1', 'ReferencedSurfaceMeshIdentificationSequence'],
|
|
9048
|
+
'0x1622': ['CS', '1', 'OphthalmicVolumetricPropertiesFlag'],
|
|
9049
|
+
'0x1624': ['FL', '1', 'OphthalmicAnatomicReferencePointXCoordinate'],
|
|
9050
|
+
'0x1626': ['FL', '1', 'OphthalmicAnatomicReferencePointYCoordinate'],
|
|
9051
|
+
'0x1628': ['SQ', '1', 'OphthalmicEnFaceImageQualityRatingSequence'],
|
|
9052
|
+
'0x1630': ['DS', '1', 'QualityThreshold'],
|
|
9053
|
+
'0x1640': ['SQ', '1', 'OCTBscanAnalysisAcquisitionParametersSequence'],
|
|
9054
|
+
'0x1642': ['UL', '1', 'NumberOfBscansPerFrame'],
|
|
9055
|
+
'0x1643': ['FL', '1', 'BscanSlabThickness'],
|
|
9056
|
+
'0x1644': ['FL', '1', 'DistanceBetweenBscanSlabs'],
|
|
9057
|
+
'0x1645': ['FL', '1', 'BscanCycleTime'],
|
|
9058
|
+
'0x1646': ['FL', '1-n', 'BscanCycleTimeVector'],
|
|
9059
|
+
'0x1649': ['FL', '1', 'AscanRate'],
|
|
9060
|
+
'0x1650': ['FL', '1', 'BscanRate'],
|
|
9061
|
+
'0x1658': ['UL', '1', 'SurfaceMeshZPixelOffset']
|
|
8592
9062
|
},
|
|
8593
9063
|
'0x0024': {
|
|
8594
9064
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -8816,6 +9286,10 @@ dwv.dicom.dictionary = {
|
|
|
8816
9286
|
'0x1221': ['OW', '1', 'SegmentedRedPaletteColorLookupTableData'],
|
|
8817
9287
|
'0x1222': ['OW', '1', 'SegmentedGreenPaletteColorLookupTableData'],
|
|
8818
9288
|
'0x1223': ['OW', '1', 'SegmentedBluePaletteColorLookupTableData'],
|
|
9289
|
+
'0x1224': ['OW', '1', 'SegmentedAlphaPaletteColorLookupTableData'],
|
|
9290
|
+
'0x1230': ['SQ', '1', 'StoredValueColorRangeSequence'],
|
|
9291
|
+
'0x1231': ['FD', '1', 'MinimumStoredValueMapped'],
|
|
9292
|
+
'0x1232': ['FD', '1', 'MaximumStoredValueMapped'],
|
|
8819
9293
|
'0x1300': ['CS', '1', 'BreastImplantPresent'],
|
|
8820
9294
|
'0x1350': ['CS', '1', 'PartialView'],
|
|
8821
9295
|
'0x1351': ['ST', '1', 'PartialViewDescription'],
|
|
@@ -8836,6 +9310,7 @@ dwv.dicom.dictionary = {
|
|
|
8836
9310
|
'0x140F': ['CS', '1', 'RGBLUTTransferFunction'],
|
|
8837
9311
|
'0x1410': ['CS', '1', 'AlphaLUTTransferFunction'],
|
|
8838
9312
|
'0x2000': ['OB', '1', 'ICCProfile'],
|
|
9313
|
+
'0x2002': ['CS', '1', 'ColorSpace'],
|
|
8839
9314
|
'0x2110': ['CS', '1', 'LossyImageCompression'],
|
|
8840
9315
|
'0x2112': ['DS', '1-n', 'LossyImageCompressionRatio'],
|
|
8841
9316
|
'0x2114': ['CS', '1-n', 'LossyImageCompressionMethod'],
|
|
@@ -8966,9 +9441,27 @@ dwv.dicom.dictionary = {
|
|
|
8966
9441
|
'0x1055': ['CS', '1', 'StudyComponentStatusID'],
|
|
8967
9442
|
'0x1060': ['LO', '1', 'RequestedProcedureDescription'],
|
|
8968
9443
|
'0x1064': ['SQ', '1', 'RequestedProcedureCodeSequence'],
|
|
9444
|
+
'0x1065': ['SQ', '1', 'RequestedLateralityCodeSequence'],
|
|
9445
|
+
'0x1066': ['UT', '1', 'ReasonForVisit'],
|
|
9446
|
+
'0x1067': ['SQ', '1', 'ReasonForVisitCodeSequence'],
|
|
8969
9447
|
'0x1070': ['LO', '1', 'RequestedContrastAgent'],
|
|
8970
9448
|
'0x4000': ['LT', '1', 'StudyComments']
|
|
8971
9449
|
},
|
|
9450
|
+
'0x0034': {
|
|
9451
|
+
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
9452
|
+
'0x0001': ['SQ', '1', 'FlowIdentifierSequence'],
|
|
9453
|
+
'0x0002': ['OB', '1', 'FlowIdentifier'],
|
|
9454
|
+
'0x0003': ['UI', '1', 'FlowTransferSyntaxUID'],
|
|
9455
|
+
'0x0004': ['UL', '1', 'FlowRTPSamplingRate'],
|
|
9456
|
+
'0x0005': ['OB', '1', 'SourceIdentifier'],
|
|
9457
|
+
'0x0007': ['OB', '1', 'FrameOriginTimestamp'],
|
|
9458
|
+
'0x0008': ['CS', '1', 'IncludesImagingSubject'],
|
|
9459
|
+
'0x0009': ['SQ', '1', 'FrameUsefulnessGroupSequence'],
|
|
9460
|
+
'0x000A': ['SQ', '1', 'RealTimeBulkDataFlowSequence'],
|
|
9461
|
+
'0x000B': ['SQ', '1', 'CameraPositionGroupSequence'],
|
|
9462
|
+
'0x000C': ['CS', '1', 'IncludesInformation'],
|
|
9463
|
+
'0x000D': ['SQ', '1', 'TimeOfFrameGroupSequence']
|
|
9464
|
+
},
|
|
8972
9465
|
'0x0038': {
|
|
8973
9466
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
8974
9467
|
'0x0004': ['SQ', '1', 'ReferencedPatientAliasSequence'],
|
|
@@ -9041,7 +9534,14 @@ dwv.dicom.dictionary = {
|
|
|
9041
9534
|
'0x0248': ['FL', '1', 'AbsoluteChannelDisplayScale'],
|
|
9042
9535
|
'0x0300': ['SQ', '1', 'MultiplexedAudioChannelsDescriptionCodeSequence'],
|
|
9043
9536
|
'0x0301': ['IS', '1', 'ChannelIdentificationCode'],
|
|
9044
|
-
'0x0302': ['CS', '1', 'ChannelMode']
|
|
9537
|
+
'0x0302': ['CS', '1', 'ChannelMode'],
|
|
9538
|
+
'0x0310': ['UI', '1', 'MultiplexGroupUID'],
|
|
9539
|
+
'0x0311': ['DS', '1', 'PowerlineFrequency'],
|
|
9540
|
+
'0x0312': ['SQ', '1', 'ChannelImpedanceSequence'],
|
|
9541
|
+
'0x0313': ['DS', '1', 'ImpedanceValue'],
|
|
9542
|
+
'0x0314': ['DT', '1', 'ImpedanceMeasurementDateTime'],
|
|
9543
|
+
'0x0315': ['DS', '1', 'ImpedanceMeasurementFrequency'],
|
|
9544
|
+
'0x0316': ['CS', '1', 'ImpedanceMeasurementCurrentType']
|
|
9045
9545
|
},
|
|
9046
9546
|
'0x0040': {
|
|
9047
9547
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9127,15 +9627,16 @@ dwv.dicom.dictionary = {
|
|
|
9127
9627
|
'0x0554': ['UI', '1', 'SpecimenUID'],
|
|
9128
9628
|
'0x0555': ['SQ', '1', 'AcquisitionContextSequence'],
|
|
9129
9629
|
'0x0556': ['ST', '1', 'AcquisitionContextDescription'],
|
|
9130
|
-
'0x059A': ['SQ', '1', 'SpecimenTypeCodeSequence'],
|
|
9131
9630
|
'0x0560': ['SQ', '1', 'SpecimenDescriptionSequence'],
|
|
9132
9631
|
'0x0562': ['SQ', '1', 'IssuerOfTheSpecimenIdentifierSequence'],
|
|
9632
|
+
'0x059A': ['SQ', '1', 'SpecimenTypeCodeSequence'],
|
|
9133
9633
|
'0x0600': ['LO', '1', 'SpecimenShortDescription'],
|
|
9134
9634
|
'0x0602': ['UT', '1', 'SpecimenDetailedDescription'],
|
|
9135
9635
|
'0x0610': ['SQ', '1', 'SpecimenPreparationSequence'],
|
|
9136
9636
|
'0x0612': ['SQ', '1', 'SpecimenPreparationStepContentItemSequence'],
|
|
9137
9637
|
'0x0620': ['SQ', '1', 'SpecimenLocalizationContentItemSequence'],
|
|
9138
9638
|
'0x06FA': ['LO', '1', 'SlideIdentifier'],
|
|
9639
|
+
'0x0710': ['SQ', '1', 'WholeSlideMicroscopyImageFrameTypeSequence'],
|
|
9139
9640
|
'0x071A': ['SQ', '1', 'ImageCenterPointCoordinatesSequence'],
|
|
9140
9641
|
'0x072A': ['DS', '1', 'XOffsetInSlideCoordinateSystem'],
|
|
9141
9642
|
'0x073A': ['DS', '1', 'YOffsetInSlideCoordinateSystem'],
|
|
@@ -9183,6 +9684,7 @@ dwv.dicom.dictionary = {
|
|
|
9183
9684
|
'0x4005': ['DT', '1', 'ScheduledProcedureStepStartDateTime'],
|
|
9184
9685
|
'0x4006': ['CS', '1', 'MultipleCopiesFlag'],
|
|
9185
9686
|
'0x4007': ['SQ', '1', 'PerformedProcessingApplicationsCodeSequence'],
|
|
9687
|
+
'0x4008': ['DT', '1', 'ScheduledProcedureStepExpirationDateTime'],
|
|
9186
9688
|
'0x4009': ['SQ', '1', 'HumanPerformerCodeSequence'],
|
|
9187
9689
|
'0x4010': ['DT', '1', 'ScheduledProcedureStepModificationDateTime'],
|
|
9188
9690
|
'0x4011': ['DT', '1', 'ExpectedCompletionDateTime'],
|
|
@@ -9212,7 +9714,13 @@ dwv.dicom.dictionary = {
|
|
|
9212
9714
|
'0x4050': ['DT', '1', 'PerformedProcedureStepStartDateTime'],
|
|
9213
9715
|
'0x4051': ['DT', '1', 'PerformedProcedureStepEndDateTime'],
|
|
9214
9716
|
'0x4052': ['DT', '1', 'ProcedureStepCancellationDateTime'],
|
|
9717
|
+
'0x4070': ['SQ', '1', 'OutputDestinationSequence'],
|
|
9718
|
+
'0x4071': ['SQ', '1', 'DICOMStorageSequence'],
|
|
9719
|
+
'0x4072': ['SQ', '1', 'STOWRSStorageSequence'],
|
|
9720
|
+
'0x4073': ['UR', '1', 'StorageURL'],
|
|
9721
|
+
'0x4074': ['SQ', '1', 'XDSStorageSequence'],
|
|
9215
9722
|
'0x8302': ['DS', '1', 'EntranceDoseInmGy'],
|
|
9723
|
+
'0x8303': ['CS', '1', 'EntranceDoseDerivation'],
|
|
9216
9724
|
'0x9092': ['SQ', '1', 'ParametricMapFrameTypeSequence'],
|
|
9217
9725
|
'0x9094': ['SQ', '1', 'ReferencedImageRealWorldValueMappingSequence'],
|
|
9218
9726
|
'0x9096': ['SQ', '1', 'RealWorldValueMappingSequence'],
|
|
@@ -9220,6 +9728,8 @@ dwv.dicom.dictionary = {
|
|
|
9220
9728
|
'0x9210': ['SH', '1', 'LUTLabel'],
|
|
9221
9729
|
'0x9211': ['xs', '1', 'RealWorldValueLastValueMapped'],
|
|
9222
9730
|
'0x9212': ['FD', '1-n', 'RealWorldValueLUTData'],
|
|
9731
|
+
'0x9213': ['FD', '1', 'DoubleFloatRealWorldValueLastValueMapped'],
|
|
9732
|
+
'0x9214': ['FD', '1', 'DoubleFloatRealWorldValueFirstValueMapped'],
|
|
9223
9733
|
'0x9216': ['xs', '1', 'RealWorldValueFirstValueMapped'],
|
|
9224
9734
|
'0x9220': ['SQ', '1', 'QuantityDefinitionSequence'],
|
|
9225
9735
|
'0x9224': ['FD', '1', 'RealWorldValueIntercept'],
|
|
@@ -9236,6 +9746,7 @@ dwv.dicom.dictionary = {
|
|
|
9236
9746
|
'0xA028': ['SQ', '1', 'DocumentingOrganizationIdentifierCodeSequenceTrial'],
|
|
9237
9747
|
'0xA030': ['DT', '1', 'VerificationDateTime'],
|
|
9238
9748
|
'0xA032': ['DT', '1', 'ObservationDateTime'],
|
|
9749
|
+
'0xA033': ['DT', '1', 'ObservationStartDateTime'],
|
|
9239
9750
|
'0xA040': ['CS', '1', 'ValueType'],
|
|
9240
9751
|
'0xA043': ['SQ', '1', 'ConceptNameCodeSequence'],
|
|
9241
9752
|
'0xA047': ['LO', '1', 'MeasurementPrecisionDescriptionTrial'],
|
|
@@ -9331,6 +9842,14 @@ dwv.dicom.dictionary = {
|
|
|
9331
9842
|
'0xA731': ['SQ', '1', 'RelationshipSequenceTrial'],
|
|
9332
9843
|
'0xA732': ['SQ', '1', 'RelationshipTypeCodeSequenceTrial'],
|
|
9333
9844
|
'0xA744': ['SQ', '1', 'LanguageCodeSequenceTrial'],
|
|
9845
|
+
'0xA801': ['SQ', '1', 'TabulatedValuesSequence'],
|
|
9846
|
+
'0xA802': ['UL', '1', 'NumberOfTableRows'],
|
|
9847
|
+
'0xA803': ['UL', '1', 'NumberOfTableColumns'],
|
|
9848
|
+
'0xA804': ['UL', '1', 'TableRowNumber'],
|
|
9849
|
+
'0xA805': ['UL', '1', 'TableColumnNumber'],
|
|
9850
|
+
'0xA806': ['SQ', '1', 'TableRowDefinitionSequence'],
|
|
9851
|
+
'0xA807': ['SQ', '1', 'TableColumnDefinitionSequence'],
|
|
9852
|
+
'0xA808': ['SQ', '1', 'CellValuesSequence'],
|
|
9334
9853
|
'0xA992': ['ST', '1', 'UniformResourceLocatorTrial'],
|
|
9335
9854
|
'0xB020': ['SQ', '1', 'WaveformAnnotationSequence'],
|
|
9336
9855
|
'0xDB00': ['CS', '1', 'TemplateIdentifier'],
|
|
@@ -9361,7 +9880,8 @@ dwv.dicom.dictionary = {
|
|
|
9361
9880
|
'0x0011': ['OB', '1', 'EncapsulatedDocument'],
|
|
9362
9881
|
'0x0012': ['LO', '1', 'MIMETypeOfEncapsulatedDocument'],
|
|
9363
9882
|
'0x0013': ['SQ', '1', 'SourceInstanceSequence'],
|
|
9364
|
-
'0x0014': ['LO', '1-n', 'ListOfMIMETypes']
|
|
9883
|
+
'0x0014': ['LO', '1-n', 'ListOfMIMETypes'],
|
|
9884
|
+
'0x0015': ['UL', '1', 'EncapsulatedDocumentLength']
|
|
9365
9885
|
},
|
|
9366
9886
|
'0x0044': {
|
|
9367
9887
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9378,7 +9898,18 @@ dwv.dicom.dictionary = {
|
|
|
9378
9898
|
'0x0011': ['LO', '1', 'SubstanceAdministrationNotes'],
|
|
9379
9899
|
'0x0012': ['LO', '1', 'SubstanceAdministrationDeviceID'],
|
|
9380
9900
|
'0x0013': ['SQ', '1', 'ProductParameterSequence'],
|
|
9381
|
-
'0x0019': ['SQ', '1', 'SubstanceAdministrationParameterSequence']
|
|
9901
|
+
'0x0019': ['SQ', '1', 'SubstanceAdministrationParameterSequence'],
|
|
9902
|
+
'0x0100': ['SQ', '1', 'ApprovalSequence'],
|
|
9903
|
+
'0x0101': ['SQ', '1', 'AssertionCodeSequence'],
|
|
9904
|
+
'0x0102': ['UI', '1', 'AssertionUID'],
|
|
9905
|
+
'0x0103': ['SQ', '1', 'AsserterIdentificationSequence'],
|
|
9906
|
+
'0x0104': ['DT', '1', 'AssertionDateTime'],
|
|
9907
|
+
'0x0105': ['DT', '1', 'AssertionExpirationDateTime'],
|
|
9908
|
+
'0x0106': ['UT', '1', 'AssertionComments'],
|
|
9909
|
+
'0x0107': ['SQ', '1', 'RelatedAssertionSequence'],
|
|
9910
|
+
'0x0108': ['UI', '1', 'ReferencedAssertionUID'],
|
|
9911
|
+
'0x0109': ['SQ', '1', 'ApprovalSubjectSequence'],
|
|
9912
|
+
'0x010A': ['SQ', '1', 'OrganizationalRoleCodeSequence']
|
|
9382
9913
|
},
|
|
9383
9914
|
'0x0046': {
|
|
9384
9915
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9397,6 +9928,7 @@ dwv.dicom.dictionary = {
|
|
|
9397
9928
|
'0x0042': ['FD', '1', 'ChannelWidth'],
|
|
9398
9929
|
'0x0044': ['FD', '1', 'PupilSize'],
|
|
9399
9930
|
'0x0046': ['FD', '1', 'CornealSize'],
|
|
9931
|
+
'0x0047': ['SQ', '1', 'CornealSizeSequence'],
|
|
9400
9932
|
'0x0050': ['SQ', '1', 'AutorefractionRightEyeSequence'],
|
|
9401
9933
|
'0x0052': ['SQ', '1', 'AutorefractionLeftEyeSequence'],
|
|
9402
9934
|
'0x0060': ['FD', '1', 'DistancePupillaryDistance'],
|
|
@@ -9420,6 +9952,15 @@ dwv.dicom.dictionary = {
|
|
|
9420
9952
|
'0x0102': ['SQ', '1', 'AddOtherSequence'],
|
|
9421
9953
|
'0x0104': ['FD', '1', 'AddPower'],
|
|
9422
9954
|
'0x0106': ['FD', '1', 'ViewingDistance'],
|
|
9955
|
+
'0x0110': ['SQ', '1', 'CorneaMeasurementsSequence'],
|
|
9956
|
+
'0x0111': ['SQ', '1', 'SourceOfCorneaMeasurementDataCodeSequence'],
|
|
9957
|
+
'0x0112': ['SQ', '1', 'SteepCornealAxisSequence'],
|
|
9958
|
+
'0x0113': ['SQ', '1', 'FlatCornealAxisSequence'],
|
|
9959
|
+
'0x0114': ['FD', '1', 'CornealPower'],
|
|
9960
|
+
'0x0115': ['FD', '1', 'CornealAxis'],
|
|
9961
|
+
'0x0116': ['SQ', '1', 'CorneaMeasurementMethodCodeSequence'],
|
|
9962
|
+
'0x0117': ['FL', '1', 'RefractiveIndexOfCornea'],
|
|
9963
|
+
'0x0118': ['FL', '1', 'RefractiveIndexOfAqueousHumor'],
|
|
9423
9964
|
'0x0121': ['SQ', '1', 'VisualAcuityTypeCodeSequence'],
|
|
9424
9965
|
'0x0122': ['SQ', '1', 'VisualAcuityRightEyeSequence'],
|
|
9425
9966
|
'0x0123': ['SQ', '1', 'VisualAcuityLeftEyeSequence'],
|
|
@@ -9494,7 +10035,9 @@ dwv.dicom.dictionary = {
|
|
|
9494
10035
|
'0x021A': ['SQ', '1', 'PlanePositionSlideSequence'],
|
|
9495
10036
|
'0x021E': ['SL', '1', 'ColumnPositionInTotalImagePixelMatrix'],
|
|
9496
10037
|
'0x021F': ['SL', '1', 'RowPositionInTotalImagePixelMatrix'],
|
|
9497
|
-
'0x0301': ['CS', '1', 'PixelOriginInterpretation']
|
|
10038
|
+
'0x0301': ['CS', '1', 'PixelOriginInterpretation'],
|
|
10039
|
+
'0x0302': ['UL', '1', 'NumberOfOpticalPaths'],
|
|
10040
|
+
'0x0303': ['UL', '1', 'TotalPixelMatrixFocalPlanes']
|
|
9498
10041
|
},
|
|
9499
10042
|
'0x0050': {
|
|
9500
10043
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9513,7 +10056,8 @@ dwv.dicom.dictionary = {
|
|
|
9513
10056
|
'0x001C': ['FD', '1', 'ContainerComponentLength'],
|
|
9514
10057
|
'0x001D': ['FD', '1', 'ContainerComponentDiameter'],
|
|
9515
10058
|
'0x001E': ['LO', '1', 'ContainerComponentDescription'],
|
|
9516
|
-
'0x0020': ['LO', '1', 'DeviceDescription']
|
|
10059
|
+
'0x0020': ['LO', '1', 'DeviceDescription'],
|
|
10060
|
+
'0x0021': ['ST', '1', 'LongDeviceDescription']
|
|
9517
10061
|
},
|
|
9518
10062
|
'0x0052': {
|
|
9519
10063
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9646,8 +10190,9 @@ dwv.dicom.dictionary = {
|
|
|
9646
10190
|
'0x0004': ['US', '1', 'SegmentNumber'],
|
|
9647
10191
|
'0x0005': ['LO', '1', 'SegmentLabel'],
|
|
9648
10192
|
'0x0006': ['ST', '1', 'SegmentDescription'],
|
|
10193
|
+
'0x0007': ['SQ', '1', 'SegmentationAlgorithmIdentificationSequence'],
|
|
9649
10194
|
'0x0008': ['CS', '1', 'SegmentAlgorithmType'],
|
|
9650
|
-
'0x0009': ['LO', '1', 'SegmentAlgorithmName'],
|
|
10195
|
+
'0x0009': ['LO', '1-n', 'SegmentAlgorithmName'],
|
|
9651
10196
|
'0x000A': ['SQ', '1', 'SegmentIdentificationSequence'],
|
|
9652
10197
|
'0x000B': ['US', '1-n', 'ReferencedSegmentNumber'],
|
|
9653
10198
|
'0x000C': ['US', '1', 'RecommendedDisplayGrayscaleValue'],
|
|
@@ -9656,7 +10201,10 @@ dwv.dicom.dictionary = {
|
|
|
9656
10201
|
'0x000F': ['SQ', '1', 'SegmentedPropertyTypeCodeSequence'],
|
|
9657
10202
|
'0x0010': ['CS', '1', 'SegmentationFractionalType'],
|
|
9658
10203
|
'0x0011': ['SQ', '1', 'SegmentedPropertyTypeModifierCodeSequence'],
|
|
9659
|
-
'0x0012': ['SQ', '1', 'UsedSegmentsSequence']
|
|
10204
|
+
'0x0012': ['SQ', '1', 'UsedSegmentsSequence'],
|
|
10205
|
+
'0x0013': ['CS', '1', 'SegmentsOverlap'],
|
|
10206
|
+
'0x0020': ['UT', '1', 'TrackingID'],
|
|
10207
|
+
'0x0021': ['UI', '1', 'TrackingUID']
|
|
9660
10208
|
},
|
|
9661
10209
|
'0x0064': {
|
|
9662
10210
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9697,6 +10245,7 @@ dwv.dicom.dictionary = {
|
|
|
9697
10245
|
'0x001F': ['US', '1', 'VectorDimensionality'],
|
|
9698
10246
|
'0x0020': ['FL', '1-n', 'VectorAccuracy'],
|
|
9699
10247
|
'0x0021': ['OF', '1', 'VectorCoordinateData'],
|
|
10248
|
+
'0x0022': ['OD', '1', 'DoublePointCoordinatesData'],
|
|
9700
10249
|
'0x0023': ['OW', '1', 'TrianglePointIndexList'],
|
|
9701
10250
|
'0x0024': ['OW', '1', 'EdgePointIndexList'],
|
|
9702
10251
|
'0x0025': ['OW', '1', 'VertexPointIndexList'],
|
|
@@ -9718,10 +10267,26 @@ dwv.dicom.dictionary = {
|
|
|
9718
10267
|
'0x0036': ['LO', '1', 'AlgorithmName'],
|
|
9719
10268
|
'0x0037': ['FL', '1', 'RecommendedPointRadius'],
|
|
9720
10269
|
'0x0038': ['FL', '1', 'RecommendedLineThickness'],
|
|
9721
|
-
'0x0040': ['
|
|
9722
|
-
'0x0041': ['
|
|
9723
|
-
'0x0042': ['
|
|
9724
|
-
'0x0043': ['
|
|
10270
|
+
'0x0040': ['OL', '1', 'LongPrimitivePointIndexList'],
|
|
10271
|
+
'0x0041': ['OL', '1', 'LongTrianglePointIndexList'],
|
|
10272
|
+
'0x0042': ['OL', '1', 'LongEdgePointIndexList'],
|
|
10273
|
+
'0x0043': ['OL', '1', 'LongVertexPointIndexList'],
|
|
10274
|
+
'0x0101': ['SQ', '1', 'TrackSetSequence'],
|
|
10275
|
+
'0x0102': ['SQ', '1', 'TrackSequence'],
|
|
10276
|
+
'0x0103': ['OW', '1', 'RecommendedDisplayCIELabValueList'],
|
|
10277
|
+
'0x0104': ['SQ', '1', 'TrackingAlgorithmIdentificationSequence'],
|
|
10278
|
+
'0x0105': ['UL', '1', 'TrackSetNumber'],
|
|
10279
|
+
'0x0106': ['LO', '1', 'TrackSetLabel'],
|
|
10280
|
+
'0x0107': ['UT', '1', 'TrackSetDescription'],
|
|
10281
|
+
'0x0108': ['SQ', '1', 'TrackSetAnatomicalTypeCodeSequence'],
|
|
10282
|
+
'0x0121': ['SQ', '1', 'MeasurementsSequence'],
|
|
10283
|
+
'0x0124': ['SQ', '1', 'TrackSetStatisticsSequence'],
|
|
10284
|
+
'0x0125': ['OF', '1', 'FloatingPointValues'],
|
|
10285
|
+
'0x0129': ['OL', '1', 'TrackPointIndexList'],
|
|
10286
|
+
'0x0130': ['SQ', '1', 'TrackStatisticsSequence'],
|
|
10287
|
+
'0x0132': ['SQ', '1', 'MeasurementValuesSequence'],
|
|
10288
|
+
'0x0133': ['SQ', '1', 'DiffusionAcquisitionCodeSequence'],
|
|
10289
|
+
'0x0134': ['SQ', '1', 'DiffusionModelCodeSequence']
|
|
9725
10290
|
},
|
|
9726
10291
|
'0x0068': {
|
|
9727
10292
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9743,7 +10308,7 @@ dwv.dicom.dictionary = {
|
|
|
9743
10308
|
'0x62D0': ['US', '1', 'HPGLDocumentID'],
|
|
9744
10309
|
'0x62D5': ['LO', '1', 'HPGLDocumentLabel'],
|
|
9745
10310
|
'0x62E0': ['SQ', '1', 'ViewOrientationCodeSequence'],
|
|
9746
|
-
'0x62F0': ['
|
|
10311
|
+
'0x62F0': ['SQ', '1', 'ViewOrientationModifierCodeSequence'],
|
|
9747
10312
|
'0x62F2': ['FD', '1', 'HPGLDocumentScaling'],
|
|
9748
10313
|
'0x6300': ['OB', '1', 'HPGLDocument'],
|
|
9749
10314
|
'0x6310': ['US', '1', 'HPGLContourPenNumber'],
|
|
@@ -9794,7 +10359,31 @@ dwv.dicom.dictionary = {
|
|
|
9794
10359
|
'0x65E0': ['SQ', '1', 'TwoDPlaneCoordinatesSequence'],
|
|
9795
10360
|
'0x65F0': ['FD', '4', 'TwoDPlaneIntersection'],
|
|
9796
10361
|
'0x6610': ['FD', '3', 'ThreeDPlaneOrigin'],
|
|
9797
|
-
'0x6620': ['FD', '3', 'ThreeDPlaneNormal']
|
|
10362
|
+
'0x6620': ['FD', '3', 'ThreeDPlaneNormal'],
|
|
10363
|
+
'0x7001': ['CS', '1', 'ModelModification'],
|
|
10364
|
+
'0x7002': ['CS', '1', 'ModelMirroring'],
|
|
10365
|
+
'0x7003': ['SQ', '1', 'ModelUsageCodeSequence'],
|
|
10366
|
+
'0x7004': ['UI', '1', 'ModelGroupUID'],
|
|
10367
|
+
'0x7005': ['UR', '1', 'RelativeURIReferenceWithinEncapsulatedDocument']
|
|
10368
|
+
},
|
|
10369
|
+
'0x006A': {
|
|
10370
|
+
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
10371
|
+
'0x0001': ['CS', '1', 'AnnotationCoordinateType'],
|
|
10372
|
+
'0x0002': ['SQ', '1', 'AnnotationGroupSequence'],
|
|
10373
|
+
'0x0003': ['UI', '1', 'AnnotationGroupUID'],
|
|
10374
|
+
'0x0005': ['LO', '1', 'AnnotationGroupLabel'],
|
|
10375
|
+
'0x0006': ['UT', '1', 'AnnotationGroupDescription'],
|
|
10376
|
+
'0x0007': ['CS', '1', 'AnnotationGroupGenerationType'],
|
|
10377
|
+
'0x0008': ['SQ', '1', 'AnnotationGroupAlgorithmIdentificationSequence'],
|
|
10378
|
+
'0x0009': ['SQ', '1', 'AnnotationPropertyCategoryCodeSequence'],
|
|
10379
|
+
'0x000A': ['SQ', '1', 'AnnotationPropertyTypeCodeSequence'],
|
|
10380
|
+
'0x000B': ['SQ', '1', 'AnnotationPropertyTypeModifierCodeSequence'],
|
|
10381
|
+
'0x000C': ['UL', '1', 'NumberOfAnnotations'],
|
|
10382
|
+
'0x000D': ['CS', '1', 'AnnotationAppliesToAllOpticalPaths'],
|
|
10383
|
+
'0x000E': ['SH', '1-n', 'ReferencedOpticalPathIdentifier'],
|
|
10384
|
+
'0x000F': ['CS', '1', 'AnnotationAppliesToAllZPlanes'],
|
|
10385
|
+
'0x0010': ['FD', '1-n', 'CommonZCoordinateValue'],
|
|
10386
|
+
'0x0011': ['OL', '1', 'AnnotationIndexList']
|
|
9798
10387
|
},
|
|
9799
10388
|
'0x0070': {
|
|
9800
10389
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9888,6 +10477,7 @@ dwv.dicom.dictionary = {
|
|
|
9888
10477
|
'0x0308': ['SQ', '1', 'RegistrationSequence'],
|
|
9889
10478
|
'0x0309': ['SQ', '1', 'MatrixRegistrationSequence'],
|
|
9890
10479
|
'0x030A': ['SQ', '1', 'MatrixSequence'],
|
|
10480
|
+
'0x030B': ['FD', '16', 'FrameOfReferenceToDisplayedCoordinateSystemTransformationMatrix'],
|
|
9891
10481
|
'0x030C': ['CS', '1', 'FrameOfReferenceTransformationMatrixType'],
|
|
9892
10482
|
'0x030D': ['SQ', '1', 'RegistrationTypeCodeSequence'],
|
|
9893
10483
|
'0x030F': ['ST', '1', 'FiducialDescription'],
|
|
@@ -9897,13 +10487,93 @@ dwv.dicom.dictionary = {
|
|
|
9897
10487
|
'0x0314': ['SQ', '1', 'UsedFiducialsSequence'],
|
|
9898
10488
|
'0x0318': ['SQ', '1', 'GraphicCoordinatesDataSequence'],
|
|
9899
10489
|
'0x031A': ['UI', '1', 'FiducialUID'],
|
|
10490
|
+
'0x031B': ['UI', '1', 'ReferencedFiducialUID'],
|
|
9900
10491
|
'0x031C': ['SQ', '1', 'FiducialSetSequence'],
|
|
9901
10492
|
'0x031E': ['SQ', '1', 'FiducialSequence'],
|
|
10493
|
+
'0x031F': ['SQ', '1', 'FiducialsPropertyCategoryCodeSequence'],
|
|
9902
10494
|
'0x0401': ['US', '3', 'GraphicLayerRecommendedDisplayCIELabValue'],
|
|
9903
10495
|
'0x0402': ['SQ', '1', 'BlendingSequence'],
|
|
9904
10496
|
'0x0403': ['FL', '1', 'RelativeOpacity'],
|
|
9905
10497
|
'0x0404': ['SQ', '1', 'ReferencedSpatialRegistrationSequence'],
|
|
9906
|
-
'0x0405': ['CS', '1', 'BlendingPosition']
|
|
10498
|
+
'0x0405': ['CS', '1', 'BlendingPosition'],
|
|
10499
|
+
'0x1101': ['UI', '1', 'PresentationDisplayCollectionUID'],
|
|
10500
|
+
'0x1102': ['UI', '1', 'PresentationSequenceCollectionUID'],
|
|
10501
|
+
'0x1103': ['US', '1', 'PresentationSequencePositionIndex'],
|
|
10502
|
+
'0x1104': ['SQ', '1', 'RenderedImageReferenceSequence'],
|
|
10503
|
+
'0x1201': ['SQ', '1', 'VolumetricPresentationStateInputSequence'],
|
|
10504
|
+
'0x1202': ['CS', '1', 'PresentationInputType'],
|
|
10505
|
+
'0x1203': ['US', '1', 'InputSequencePositionIndex'],
|
|
10506
|
+
'0x1204': ['CS', '1', 'Crop'],
|
|
10507
|
+
'0x1205': ['US', '1-n', 'CroppingSpecificationIndex'],
|
|
10508
|
+
'0x1206': ['CS', '1', 'CompositingMethod'],
|
|
10509
|
+
'0x1207': ['US', '1', 'VolumetricPresentationInputNumber'],
|
|
10510
|
+
'0x1208': ['CS', '1', 'ImageVolumeGeometry'],
|
|
10511
|
+
'0x1209': ['UI', '1', 'VolumetricPresentationInputSetUID'],
|
|
10512
|
+
'0x120A': ['SQ', '1', 'VolumetricPresentationInputSetSequence'],
|
|
10513
|
+
'0x120B': ['CS', '1', 'GlobalCrop'],
|
|
10514
|
+
'0x120C': ['US', '1-n', 'GlobalCroppingSpecificationIndex'],
|
|
10515
|
+
'0x120D': ['CS', '1', 'RenderingMethod'],
|
|
10516
|
+
'0x1301': ['SQ', '1', 'VolumeCroppingSequence'],
|
|
10517
|
+
'0x1302': ['CS', '1', 'VolumeCroppingMethod'],
|
|
10518
|
+
'0x1303': ['FD', '6', 'BoundingBoxCrop'],
|
|
10519
|
+
'0x1304': ['SQ', '1', 'ObliqueCroppingPlaneSequence'],
|
|
10520
|
+
'0x1305': ['FD', '4', 'Plane'],
|
|
10521
|
+
'0x1306': ['FD', '3', 'PlaneNormal'],
|
|
10522
|
+
'0x1309': ['US', '1', 'CroppingSpecificationNumber'],
|
|
10523
|
+
'0x1501': ['CS', '1', 'MultiPlanarReconstructionStyle'],
|
|
10524
|
+
'0x1502': ['CS', '1', 'MPRThicknessType'],
|
|
10525
|
+
'0x1503': ['FD', '1', 'MPRSlabThickness'],
|
|
10526
|
+
'0x1505': ['FD', '3', 'MPRTopLeftHandCorner'],
|
|
10527
|
+
'0x1507': ['FD', '3', 'MPRViewWidthDirection'],
|
|
10528
|
+
'0x1508': ['FD', '1', 'MPRViewWidth'],
|
|
10529
|
+
'0x150C': ['UL', '1', 'NumberOfVolumetricCurvePoints'],
|
|
10530
|
+
'0x150D': ['OD', '1', 'VolumetricCurvePoints'],
|
|
10531
|
+
'0x1511': ['FD', '3', 'MPRViewHeightDirection'],
|
|
10532
|
+
'0x1512': ['FD', '1', 'MPRViewHeight'],
|
|
10533
|
+
'0x1602': ['CS', '1', 'RenderProjection'],
|
|
10534
|
+
'0x1603': ['FD', '3', 'ViewpointPosition'],
|
|
10535
|
+
'0x1604': ['FD', '3', 'ViewpointLookAtPoint'],
|
|
10536
|
+
'0x1605': ['FD', '3', 'ViewpointUpDirection'],
|
|
10537
|
+
'0x1606': ['FD', '6', 'RenderFieldOfView'],
|
|
10538
|
+
'0x1607': ['FD', '1', 'SamplingStepSize'],
|
|
10539
|
+
'0x1701': ['CS', '1', 'ShadingStyle'],
|
|
10540
|
+
'0x1702': ['FD', '1', 'AmbientReflectionIntensity'],
|
|
10541
|
+
'0x1703': ['FD', '3', 'LightDirection'],
|
|
10542
|
+
'0x1704': ['FD', '1', 'DiffuseReflectionIntensity'],
|
|
10543
|
+
'0x1705': ['FD', '1', 'SpecularReflectionIntensity'],
|
|
10544
|
+
'0x1706': ['FD', '1', 'Shininess'],
|
|
10545
|
+
'0x1801': ['SQ', '1', 'PresentationStateClassificationComponentSequence'],
|
|
10546
|
+
'0x1802': ['CS', '1', 'ComponentType'],
|
|
10547
|
+
'0x1803': ['SQ', '1', 'ComponentInputSequence'],
|
|
10548
|
+
'0x1804': ['US', '1', 'VolumetricPresentationInputIndex'],
|
|
10549
|
+
'0x1805': ['SQ', '1', 'PresentationStateCompositorComponentSequence'],
|
|
10550
|
+
'0x1806': ['SQ', '1', 'WeightingTransferFunctionSequence'],
|
|
10551
|
+
'0x1807': ['US', '3', 'WeightingLookupTableDescriptor'],
|
|
10552
|
+
'0x1808': ['OB', '1', 'WeightingLookupTableData'],
|
|
10553
|
+
'0x1901': ['SQ', '1', 'VolumetricAnnotationSequence'],
|
|
10554
|
+
'0x1903': ['SQ', '1', 'ReferencedStructuredContextSequence'],
|
|
10555
|
+
'0x1904': ['UI', '1', 'ReferencedContentItem'],
|
|
10556
|
+
'0x1905': ['SQ', '1', 'VolumetricPresentationInputAnnotationSequence'],
|
|
10557
|
+
'0x1907': ['CS', '1', 'AnnotationClipping'],
|
|
10558
|
+
'0x1A01': ['CS', '1', 'PresentationAnimationStyle'],
|
|
10559
|
+
'0x1A03': ['FD', '1', 'RecommendedAnimationRate'],
|
|
10560
|
+
'0x1A04': ['SQ', '1', 'AnimationCurveSequence'],
|
|
10561
|
+
'0x1A05': ['FD', '1', 'AnimationStepSize'],
|
|
10562
|
+
'0x1A06': ['FD', '1', 'SwivelRange'],
|
|
10563
|
+
'0x1A07': ['OD', '1', 'VolumetricCurveUpDirections'],
|
|
10564
|
+
'0x1A08': ['SQ', '1', 'VolumeStreamSequence'],
|
|
10565
|
+
'0x1A09': ['LO', '1', 'RGBATransferFunctionDescription'],
|
|
10566
|
+
'0x1B01': ['SQ', '1', 'AdvancedBlendingSequence'],
|
|
10567
|
+
'0x1B02': ['US', '1', 'BlendingInputNumber'],
|
|
10568
|
+
'0x1B03': ['SQ', '1', 'BlendingDisplayInputSequence'],
|
|
10569
|
+
'0x1B04': ['SQ', '1', 'BlendingDisplaySequence'],
|
|
10570
|
+
'0x1B06': ['CS', '1', 'BlendingMode'],
|
|
10571
|
+
'0x1B07': ['CS', '1', 'TimeSeriesBlending'],
|
|
10572
|
+
'0x1B08': ['CS', '1', 'GeometryForDisplay'],
|
|
10573
|
+
'0x1B11': ['SQ', '1', 'ThresholdSequence'],
|
|
10574
|
+
'0x1B12': ['SQ', '1', 'ThresholdValueSequence'],
|
|
10575
|
+
'0x1B13': ['CS', '1', 'ThresholdType'],
|
|
10576
|
+
'0x1B14': ['FD', '1', 'ThresholdValue']
|
|
9907
10577
|
},
|
|
9908
10578
|
'0x0072': {
|
|
9909
10579
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -9934,17 +10604,30 @@ dwv.dicom.dictionary = {
|
|
|
9934
10604
|
'0x0052': ['AT', '1-n', 'SelectorSequencePointer'],
|
|
9935
10605
|
'0x0054': ['LO', '1-n', 'SelectorSequencePointerPrivateCreator'],
|
|
9936
10606
|
'0x0056': ['LO', '1', 'SelectorAttributePrivateCreator'],
|
|
10607
|
+
'0x005E': ['AE', '1-n', 'SelectorAEValue'],
|
|
10608
|
+
'0x005F': ['AS', '1-n', 'SelectorASValue'],
|
|
9937
10609
|
'0x0060': ['AT', '1-n', 'SelectorATValue'],
|
|
10610
|
+
'0x0061': ['DA', '1-n', 'SelectorDAValue'],
|
|
9938
10611
|
'0x0062': ['CS', '1-n', 'SelectorCSValue'],
|
|
10612
|
+
'0x0063': ['DT', '1-n', 'SelectorDTValue'],
|
|
9939
10613
|
'0x0064': ['IS', '1-n', 'SelectorISValue'],
|
|
10614
|
+
'0x0065': ['OB', '1', 'SelectorOBValue'],
|
|
9940
10615
|
'0x0066': ['LO', '1-n', 'SelectorLOValue'],
|
|
10616
|
+
'0x0067': ['OF', '1', 'SelectorOFValue'],
|
|
9941
10617
|
'0x0068': ['LT', '1', 'SelectorLTValue'],
|
|
10618
|
+
'0x0069': ['OW', '1', 'SelectorOWValue'],
|
|
9942
10619
|
'0x006A': ['PN', '1-n', 'SelectorPNValue'],
|
|
10620
|
+
'0x006B': ['TM', '1-n', 'SelectorTMValue'],
|
|
9943
10621
|
'0x006C': ['SH', '1-n', 'SelectorSHValue'],
|
|
10622
|
+
'0x006D': ['UN', '1', 'SelectorUNValue'],
|
|
9944
10623
|
'0x006E': ['ST', '1', 'SelectorSTValue'],
|
|
10624
|
+
'0x006F': ['UC', '1-n', 'SelectorUCValue'],
|
|
9945
10625
|
'0x0070': ['UT', '1', 'SelectorUTValue'],
|
|
10626
|
+
'0x0071': ['UR', '1', 'SelectorURValue'],
|
|
9946
10627
|
'0x0072': ['DS', '1-n', 'SelectorDSValue'],
|
|
10628
|
+
'0x0073': ['OD', '1', 'SelectorODValue'],
|
|
9947
10629
|
'0x0074': ['FD', '1-n', 'SelectorFDValue'],
|
|
10630
|
+
'0x0075': ['OL', '1', 'SelectorOLValue'],
|
|
9948
10631
|
'0x0076': ['FL', '1-n', 'SelectorFLValue'],
|
|
9949
10632
|
'0x0078': ['UL', '1-n', 'SelectorULValue'],
|
|
9950
10633
|
'0x007A': ['US', '1-n', 'SelectorUSValue'],
|
|
@@ -9952,6 +10635,9 @@ dwv.dicom.dictionary = {
|
|
|
9952
10635
|
'0x007E': ['SS', '1-n', 'SelectorSSValue'],
|
|
9953
10636
|
'0x007F': ['UI', '1-n', 'SelectorUIValue'],
|
|
9954
10637
|
'0x0080': ['SQ', '1', 'SelectorCodeSequenceValue'],
|
|
10638
|
+
'0x0081': ['OV', '1', 'SelectorOVValue'],
|
|
10639
|
+
'0x0082': ['SV', '1-n', 'SelectorSVValue'],
|
|
10640
|
+
'0x0083': ['UV', '1-n', 'SelectorUVValue'],
|
|
9955
10641
|
'0x0100': ['US', '1', 'NumberOfScreens'],
|
|
9956
10642
|
'0x0102': ['SQ', '1', 'NominalScreenDefinitionSequence'],
|
|
9957
10643
|
'0x0104': ['US', '1', 'NumberOfVerticalPixels'],
|
|
@@ -10024,6 +10710,7 @@ dwv.dicom.dictionary = {
|
|
|
10024
10710
|
'0x1002': ['SQ', '1', 'ProcedureStepProgressInformationSequence'],
|
|
10025
10711
|
'0x1004': ['DS', '1', 'ProcedureStepProgress'],
|
|
10026
10712
|
'0x1006': ['ST', '1', 'ProcedureStepProgressDescription'],
|
|
10713
|
+
'0x1007': ['SQ', '1', 'ProcedureStepProgressParametersSequence'],
|
|
10027
10714
|
'0x1008': ['SQ', '1', 'ProcedureStepCommunicationsURISequence'],
|
|
10028
10715
|
'0x100A': ['UR', '1', 'ContactURI'],
|
|
10029
10716
|
'0x100C': ['LO', '1', 'ContactDisplayName'],
|
|
@@ -10076,7 +10763,21 @@ dwv.dicom.dictionary = {
|
|
|
10076
10763
|
'0x1246': ['CS', '1', 'UnifiedProcedureStepListStatus'],
|
|
10077
10764
|
'0x1324': ['UL', '1', 'BeamOrderIndex'],
|
|
10078
10765
|
'0x1338': ['FD', '1', 'DoubleExposureMeterset'],
|
|
10079
|
-
'0x133A': ['FD', '4', 'DoubleExposureFieldDelta']
|
|
10766
|
+
'0x133A': ['FD', '4', 'DoubleExposureFieldDelta'],
|
|
10767
|
+
'0x1401': ['SQ', '1', 'BrachyTaskSequence'],
|
|
10768
|
+
'0x1402': ['DS', '1', 'ContinuationStartTotalReferenceAirKerma'],
|
|
10769
|
+
'0x1403': ['DS', '1', 'ContinuationEndTotalReferenceAirKerma'],
|
|
10770
|
+
'0x1404': ['IS', '1', 'ContinuationPulseNumber'],
|
|
10771
|
+
'0x1405': ['SQ', '1', 'ChannelDeliveryOrderSequence'],
|
|
10772
|
+
'0x1406': ['IS', '1', 'ReferencedChannelNumber'],
|
|
10773
|
+
'0x1407': ['DS', '1', 'StartCumulativeTimeWeight'],
|
|
10774
|
+
'0x1408': ['DS', '1', 'EndCumulativeTimeWeight'],
|
|
10775
|
+
'0x1409': ['SQ', '1', 'OmittedChannelSequence'],
|
|
10776
|
+
'0x140A': ['CS', '1', 'ReasonForChannelOmission'],
|
|
10777
|
+
'0x140B': ['LO', '1', 'ReasonForChannelOmissionDescription'],
|
|
10778
|
+
'0x140C': ['IS', '1', 'ChannelDeliveryOrderIndex'],
|
|
10779
|
+
'0x140D': ['SQ', '1', 'ChannelDeliveryContinuationSequence'],
|
|
10780
|
+
'0x140E': ['SQ', '1', 'OmittedApplicationSetupSequence']
|
|
10080
10781
|
},
|
|
10081
10782
|
'0x0076': {
|
|
10082
10783
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -10091,7 +10792,7 @@ dwv.dicom.dictionary = {
|
|
|
10091
10792
|
'0x0020': ['SQ', '1', 'ProcedureTypeCodeSequence'],
|
|
10092
10793
|
'0x0030': ['LO', '1', 'SurgicalTechnique'],
|
|
10093
10794
|
'0x0032': ['SQ', '1', 'ComponentTypesSequence'],
|
|
10094
|
-
'0x0034': ['
|
|
10795
|
+
'0x0034': ['SQ', '1', 'ComponentTypeCodeSequence'],
|
|
10095
10796
|
'0x0036': ['CS', '1', 'ExclusiveComponentType'],
|
|
10096
10797
|
'0x0038': ['CS', '1', 'MandatoryComponentType'],
|
|
10097
10798
|
'0x0040': ['SQ', '1', 'ComponentSequence'],
|
|
@@ -10136,11 +10837,38 @@ dwv.dicom.dictionary = {
|
|
|
10136
10837
|
'0x0007': ['US', '3-3n', 'SurfacePointColorCIELabValueData'],
|
|
10137
10838
|
'0x0008': ['SQ', '1', 'UVMappingSequence'],
|
|
10138
10839
|
'0x0009': ['SH', '1', 'TextureLabel'],
|
|
10139
|
-
'0x0010': ['OF', '1
|
|
10140
|
-
'0x0011': ['OF', '1
|
|
10840
|
+
'0x0010': ['OF', '1', 'UValueData'],
|
|
10841
|
+
'0x0011': ['OF', '1', 'VValueData'],
|
|
10141
10842
|
'0x0012': ['SQ', '1', 'ReferencedTextureSequence'],
|
|
10142
10843
|
'0x0013': ['SQ', '1', 'ReferencedSurfaceDataSequence']
|
|
10143
10844
|
},
|
|
10845
|
+
'0x0082': {
|
|
10846
|
+
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
10847
|
+
'0x0001': ['CS', '1', 'AssessmentSummary'],
|
|
10848
|
+
'0x0003': ['UT', '1', 'AssessmentSummaryDescription'],
|
|
10849
|
+
'0x0004': ['SQ', '1', 'AssessedSOPInstanceSequence'],
|
|
10850
|
+
'0x0005': ['SQ', '1', 'ReferencedComparisonSOPInstanceSequence'],
|
|
10851
|
+
'0x0006': ['UL', '1', 'NumberOfAssessmentObservations'],
|
|
10852
|
+
'0x0007': ['SQ', '1', 'AssessmentObservationsSequence'],
|
|
10853
|
+
'0x0008': ['CS', '1', 'ObservationSignificance'],
|
|
10854
|
+
'0x000A': ['UT', '1', 'ObservationDescription'],
|
|
10855
|
+
'0x000C': ['SQ', '1', 'StructuredConstraintObservationSequence'],
|
|
10856
|
+
'0x0010': ['SQ', '1', 'AssessedAttributeValueSequence'],
|
|
10857
|
+
'0x0016': ['LO', '1', 'AssessmentSetID'],
|
|
10858
|
+
'0x0017': ['SQ', '1', 'AssessmentRequesterSequence'],
|
|
10859
|
+
'0x0018': ['LO', '1', 'SelectorAttributeName'],
|
|
10860
|
+
'0x0019': ['LO', '1', 'SelectorAttributeKeyword'],
|
|
10861
|
+
'0x0021': ['SQ', '1', 'AssessmentTypeCodeSequence'],
|
|
10862
|
+
'0x0022': ['SQ', '1', 'ObservationBasisCodeSequence'],
|
|
10863
|
+
'0x0023': ['LO', '1', 'AssessmentLabel'],
|
|
10864
|
+
'0x0032': ['CS', '1', 'ConstraintType'],
|
|
10865
|
+
'0x0033': ['UT', '1', 'SpecificationSelectionGuidance'],
|
|
10866
|
+
'0x0034': ['SQ', '1', 'ConstraintValueSequence'],
|
|
10867
|
+
'0x0035': ['SQ', '1', 'RecommendedDefaultValueSequence'],
|
|
10868
|
+
'0x0036': ['CS', '1', 'ConstraintViolationSignificance'],
|
|
10869
|
+
'0x0037': ['UT', '1', 'ConstraintViolationCondition'],
|
|
10870
|
+
'0x0038': ['CS', '1', 'ModifiableConstraintFlag']
|
|
10871
|
+
},
|
|
10144
10872
|
'0x0088': {
|
|
10145
10873
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
10146
10874
|
'0x0130': ['SH', '1', 'StorageMediaFileSetID'],
|
|
@@ -10171,6 +10899,7 @@ dwv.dicom.dictionary = {
|
|
|
10171
10899
|
'0x0120': ['OB', '1', 'Signature'],
|
|
10172
10900
|
'0x0305': ['CS', '1', 'CertifiedTimestampType'],
|
|
10173
10901
|
'0x0310': ['OB', '1', 'CertifiedTimestamp'],
|
|
10902
|
+
'0x0315': ['FL', '1', ''],
|
|
10174
10903
|
'0x0401': ['SQ', '1', 'DigitalSignaturePurposeCodeSequence'],
|
|
10175
10904
|
'0x0402': ['SQ', '1', 'ReferencedDigitalSignatureSequence'],
|
|
10176
10905
|
'0x0403': ['SQ', '1', 'ReferencedSOPInstanceMACSequence'],
|
|
@@ -10179,11 +10908,14 @@ dwv.dicom.dictionary = {
|
|
|
10179
10908
|
'0x0510': ['UI', '1', 'EncryptedContentTransferSyntaxUID'],
|
|
10180
10909
|
'0x0520': ['OB', '1', 'EncryptedContent'],
|
|
10181
10910
|
'0x0550': ['SQ', '1', 'ModifiedAttributesSequence'],
|
|
10911
|
+
'0x0551': ['SQ', '1', 'NonconformingModifiedAttributesSequence'],
|
|
10912
|
+
'0x0552': ['OB', '1', 'NonconformingDataElementValue'],
|
|
10182
10913
|
'0x0561': ['SQ', '1', 'OriginalAttributesSequence'],
|
|
10183
10914
|
'0x0562': ['DT', '1', 'AttributeModificationDateTime'],
|
|
10184
10915
|
'0x0563': ['LO', '1', 'ModifyingSystem'],
|
|
10185
10916
|
'0x0564': ['LO', '1', 'SourceOfPreviousValues'],
|
|
10186
|
-
'0x0565': ['CS', '1', 'ReasonForTheAttributeModification']
|
|
10917
|
+
'0x0565': ['CS', '1', 'ReasonForTheAttributeModification'],
|
|
10918
|
+
'0x0600': ['CS', '1', 'InstanceOriginStatus']
|
|
10187
10919
|
},
|
|
10188
10920
|
'0x1000': {
|
|
10189
10921
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -10425,6 +11157,7 @@ dwv.dicom.dictionary = {
|
|
|
10425
11157
|
'0x0030': ['SQ', '1', 'RTRelatedROISequence'],
|
|
10426
11158
|
'0x0033': ['CS', '1', 'RTROIRelationship'],
|
|
10427
11159
|
'0x0036': ['CS', '1', 'ROIGenerationAlgorithm'],
|
|
11160
|
+
'0x0037': ['SQ', '1', 'ROIDerivationAlgorithmIdentificationSequence'],
|
|
10428
11161
|
'0x0038': ['LO', '1', 'ROIGenerationDescription'],
|
|
10429
11162
|
'0x0039': ['SQ', '1', 'ROIContourSequence'],
|
|
10430
11163
|
'0x0040': ['SQ', '1', 'ContourSequence'],
|
|
@@ -10434,6 +11167,7 @@ dwv.dicom.dictionary = {
|
|
|
10434
11167
|
'0x0046': ['IS', '1', 'NumberOfContourPoints'],
|
|
10435
11168
|
'0x0048': ['IS', '1', 'ContourNumber'],
|
|
10436
11169
|
'0x0049': ['IS', '1-n', 'AttachedContours'],
|
|
11170
|
+
'0x004A': ['SQ', '1', 'SourcePixelPlanesCharacteristicsSequence'],
|
|
10437
11171
|
'0x0050': ['DS', '3-3n', 'ContourData'],
|
|
10438
11172
|
'0x0080': ['SQ', '1', 'RTROIObservationsSequence'],
|
|
10439
11173
|
'0x0082': ['IS', '1', 'ObservationNumber'],
|
|
@@ -10455,7 +11189,10 @@ dwv.dicom.dictionary = {
|
|
|
10455
11189
|
'0x00C2': ['UI', '1', 'RelatedFrameOfReferenceUID'],
|
|
10456
11190
|
'0x00C4': ['CS', '1', 'FrameOfReferenceTransformationType'],
|
|
10457
11191
|
'0x00C6': ['DS', '16', 'FrameOfReferenceTransformationMatrix'],
|
|
10458
|
-
'0x00C8': ['LO', '1', 'FrameOfReferenceTransformationComment']
|
|
11192
|
+
'0x00C8': ['LO', '1', 'FrameOfReferenceTransformationComment'],
|
|
11193
|
+
'0x00C9': ['SQ', '1', 'PatientLocationCoordinatesSequence'],
|
|
11194
|
+
'0x00CA': ['SQ', '1', 'PatientLocationCoordinatesCodeSequence'],
|
|
11195
|
+
'0x00CB': ['SQ', '1', 'PatientSupportPositionSequence']
|
|
10459
11196
|
},
|
|
10460
11197
|
'0x3008': {
|
|
10461
11198
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -10498,6 +11235,7 @@ dwv.dicom.dictionary = {
|
|
|
10498
11235
|
'0x0064': ['IS', '1', 'MeasuredDoseReferenceNumber'],
|
|
10499
11236
|
'0x0065': ['AT', '1', 'ParameterPointer'],
|
|
10500
11237
|
'0x0066': ['ST', '1', 'OverrideReason'],
|
|
11238
|
+
'0x0067': ['US', '1', 'ParameterValueNumber'],
|
|
10501
11239
|
'0x0068': ['SQ', '1', 'CorrectedParameterSequence'],
|
|
10502
11240
|
'0x006A': ['FL', '1', 'CorrectionValue'],
|
|
10503
11241
|
'0x0070': ['SQ', '1', 'CalculatedDoseReferenceSequence'],
|
|
@@ -10514,6 +11252,7 @@ dwv.dicom.dictionary = {
|
|
|
10514
11252
|
'0x00B0': ['SQ', '1', 'RecordedWedgeSequence'],
|
|
10515
11253
|
'0x00C0': ['SQ', '1', 'RecordedCompensatorSequence'],
|
|
10516
11254
|
'0x00D0': ['SQ', '1', 'RecordedBlockSequence'],
|
|
11255
|
+
'0x00D1': ['SQ', '1', 'RecordedBlockSlabSequence'],
|
|
10517
11256
|
'0x00E0': ['SQ', '1', 'TreatmentSummaryMeasuredDoseReferenceSequence'],
|
|
10518
11257
|
'0x00F0': ['SQ', '1', 'RecordedSnoutSequence'],
|
|
10519
11258
|
'0x00F2': ['SQ', '1', 'RecordedRangeShifterSequence'],
|
|
@@ -10611,6 +11350,7 @@ dwv.dicom.dictionary = {
|
|
|
10611
11350
|
'0x007B': ['LT', '1', 'FractionPattern'],
|
|
10612
11351
|
'0x0080': ['IS', '1', 'NumberOfBeams'],
|
|
10613
11352
|
'0x0082': ['DS', '3', 'BeamDoseSpecificationPoint'],
|
|
11353
|
+
'0x0083': ['UI', '1', 'ReferencedDoseReferenceUID'],
|
|
10614
11354
|
'0x0084': ['DS', '1', 'BeamDose'],
|
|
10615
11355
|
'0x0086': ['DS', '1', 'BeamMeterset'],
|
|
10616
11356
|
'0x0088': ['FL', '1', 'BeamDosePointDepth'],
|
|
@@ -10621,6 +11361,11 @@ dwv.dicom.dictionary = {
|
|
|
10621
11361
|
'0x008D': ['FL', '1', 'AverageBeamDosePointDepth'],
|
|
10622
11362
|
'0x008E': ['FL', '1', 'AverageBeamDosePointEquivalentDepth'],
|
|
10623
11363
|
'0x008F': ['FL', '1', 'AverageBeamDosePointSSD'],
|
|
11364
|
+
'0x0090': ['CS', '1', 'BeamDoseType'],
|
|
11365
|
+
'0x0091': ['DS', '1', 'AlternateBeamDose'],
|
|
11366
|
+
'0x0092': ['CS', '1', 'AlternateBeamDoseType'],
|
|
11367
|
+
'0x0093': ['CS', '1', 'DepthValueAveragingFlag'],
|
|
11368
|
+
'0x0094': ['DS', '1', 'BeamDosePointSourceToExternalContourDistance'],
|
|
10624
11369
|
'0x00A0': ['IS', '1', 'NumberOfBrachyApplicationSetups'],
|
|
10625
11370
|
'0x00A2': ['DS', '3', 'BrachyApplicationSetupDoseSpecificationPoint'],
|
|
10626
11371
|
'0x00A4': ['DS', '1', 'BrachyApplicationSetupDose'],
|
|
@@ -10723,7 +11468,7 @@ dwv.dicom.dictionary = {
|
|
|
10723
11468
|
'0x012C': ['DS', '3', 'IsocenterPosition'],
|
|
10724
11469
|
'0x012E': ['DS', '3', 'SurfaceEntryPoint'],
|
|
10725
11470
|
'0x0130': ['DS', '1', 'SourceToSurfaceDistance'],
|
|
10726
|
-
'0x0131': ['FL', '1', '
|
|
11471
|
+
'0x0131': ['FL', '1', 'AverageBeamDosePointSourceToExternalContourDistance'],
|
|
10727
11472
|
'0x0132': ['FL', '1', 'SourceToExternalContourDistance'],
|
|
10728
11473
|
'0x0133': ['FL', '3', 'ExternalContourEntryPoint'],
|
|
10729
11474
|
'0x0134': ['DS', '1', 'CumulativeMetersetWeight'],
|
|
@@ -10735,6 +11480,12 @@ dwv.dicom.dictionary = {
|
|
|
10735
11480
|
'0x014A': ['FL', '1', 'GantryPitchAngle'],
|
|
10736
11481
|
'0x014C': ['CS', '1', 'GantryPitchRotationDirection'],
|
|
10737
11482
|
'0x014E': ['FL', '1', 'GantryPitchAngleTolerance'],
|
|
11483
|
+
'0x0150': ['CS', '1', 'FixationEye'],
|
|
11484
|
+
'0x0151': ['DS', '1', 'ChairHeadFramePosition'],
|
|
11485
|
+
'0x0152': ['DS', '1', 'HeadFixationAngleTolerance'],
|
|
11486
|
+
'0x0153': ['DS', '1', 'ChairHeadFramePositionTolerance'],
|
|
11487
|
+
'0x0154': ['DS', '1', 'FixationLightAzimuthalAngleTolerance'],
|
|
11488
|
+
'0x0155': ['DS', '1', 'FixationLightPolarAngleTolerance'],
|
|
10738
11489
|
'0x0180': ['SQ', '1', 'PatientSetupSequence'],
|
|
10739
11490
|
'0x0182': ['IS', '1', 'PatientSetupNumber'],
|
|
10740
11491
|
'0x0183': ['LO', '1', 'PatientSetupLabel'],
|
|
@@ -10798,6 +11549,10 @@ dwv.dicom.dictionary = {
|
|
|
10798
11549
|
'0x0266': ['LO', '1', 'BrachyAccessoryDeviceName'],
|
|
10799
11550
|
'0x026A': ['DS', '1', 'BrachyAccessoryDeviceNominalThickness'],
|
|
10800
11551
|
'0x026C': ['DS', '1', 'BrachyAccessoryDeviceNominalTransmission'],
|
|
11552
|
+
'0x0271': ['DS', '1', 'ChannelEffectiveLength'],
|
|
11553
|
+
'0x0272': ['DS', '1', 'ChannelInnerLength'],
|
|
11554
|
+
'0x0273': ['SH', '1', 'AfterloaderChannelID'],
|
|
11555
|
+
'0x0274': ['DS', '1', 'SourceApplicatorTipLength'],
|
|
10801
11556
|
'0x0280': ['SQ', '1', 'ChannelSequence'],
|
|
10802
11557
|
'0x0282': ['IS', '1', 'ChannelNumber'],
|
|
10803
11558
|
'0x0284': ['DS', '1', 'ChannelLength'],
|
|
@@ -10814,6 +11569,7 @@ dwv.dicom.dictionary = {
|
|
|
10814
11569
|
'0x029C': ['DS', '1', 'SourceApplicatorWallNominalThickness'],
|
|
10815
11570
|
'0x029E': ['DS', '1', 'SourceApplicatorWallNominalTransmission'],
|
|
10816
11571
|
'0x02A0': ['DS', '1', 'SourceApplicatorStepSize'],
|
|
11572
|
+
'0x02A1': ['IS', '1', 'ApplicatorShapeReferencedROINumber'],
|
|
10817
11573
|
'0x02A2': ['IS', '1', 'TransferTubeNumber'],
|
|
10818
11574
|
'0x02A4': ['DS', '1', 'TransferTubeLength'],
|
|
10819
11575
|
'0x02B0': ['SQ', '1', 'ChannelShieldSequence'],
|
|
@@ -10842,6 +11598,7 @@ dwv.dicom.dictionary = {
|
|
|
10842
11598
|
'0x0304': ['IS', '1', 'RadiationAtomicNumber'],
|
|
10843
11599
|
'0x0306': ['SS', '1', 'RadiationChargeState'],
|
|
10844
11600
|
'0x0308': ['CS', '1', 'ScanMode'],
|
|
11601
|
+
'0x0309': ['CS', '1', 'ModulatedScanModeType'],
|
|
10845
11602
|
'0x030A': ['FL', '2', 'VirtualSourceAxisDistances'],
|
|
10846
11603
|
'0x030C': ['SQ', '1', 'SnoutSequence'],
|
|
10847
11604
|
'0x030D': ['FL', '1', 'SnoutPosition'],
|
|
@@ -10869,6 +11626,7 @@ dwv.dicom.dictionary = {
|
|
|
10869
11626
|
'0x0350': ['CS', '1', 'PatientSupportType'],
|
|
10870
11627
|
'0x0352': ['SH', '1', 'PatientSupportID'],
|
|
10871
11628
|
'0x0354': ['LO', '1', 'PatientSupportAccessoryCode'],
|
|
11629
|
+
'0x0355': ['LO', '1', 'TrayAccessoryCode'],
|
|
10872
11630
|
'0x0356': ['FL', '1', 'FixationLightAzimuthalAngle'],
|
|
10873
11631
|
'0x0358': ['FL', '1', 'FixationLightPolarAngle'],
|
|
10874
11632
|
'0x035A': ['FL', '1', 'MetersetRate'],
|
|
@@ -10885,11 +11643,16 @@ dwv.dicom.dictionary = {
|
|
|
10885
11643
|
'0x0386': ['FL', '1', 'RangeModulatorGatingStartWaterEquivalentThickness'],
|
|
10886
11644
|
'0x0388': ['FL', '1', 'RangeModulatorGatingStopWaterEquivalentThickness'],
|
|
10887
11645
|
'0x038A': ['FL', '1', 'IsocenterToRangeModulatorDistance'],
|
|
11646
|
+
'0x038F': ['FL', '1-n', 'ScanSpotTimeOffset'],
|
|
10888
11647
|
'0x0390': ['SH', '1', 'ScanSpotTuneID'],
|
|
11648
|
+
'0x0391': ['IS', '1-n', 'ScanSpotPrescribedIndices'],
|
|
10889
11649
|
'0x0392': ['IS', '1', 'NumberOfScanSpotPositions'],
|
|
11650
|
+
'0x0393': ['CS', '1', 'ScanSpotReordered'],
|
|
10890
11651
|
'0x0394': ['FL', '1-n', 'ScanSpotPositionMap'],
|
|
11652
|
+
'0x0395': ['CS', '1', 'ScanSpotReorderingAllowed'],
|
|
10891
11653
|
'0x0396': ['FL', '1-n', 'ScanSpotMetersetWeights'],
|
|
10892
11654
|
'0x0398': ['FL', '2', 'ScanningSpotSize'],
|
|
11655
|
+
'0x0399': ['FL', '2-2n', 'ScanSpotSizesDelivered'],
|
|
10893
11656
|
'0x039A': ['IS', '1', 'NumberOfPaintings'],
|
|
10894
11657
|
'0x03A0': ['SQ', '1', 'IonToleranceTableSequence'],
|
|
10895
11658
|
'0x03A2': ['SQ', '1', 'IonBeamSequence'],
|
|
@@ -10908,6 +11671,7 @@ dwv.dicom.dictionary = {
|
|
|
10908
11671
|
'0x0423': ['CS', '1', 'GeneralAccessoryType'],
|
|
10909
11672
|
'0x0424': ['IS', '1', 'GeneralAccessoryNumber'],
|
|
10910
11673
|
'0x0425': ['FL', '1', 'SourceToGeneralAccessoryDistance'],
|
|
11674
|
+
'0x0426': ['DS', '1', 'IsocenterToGeneralAccessoryDistance'],
|
|
10911
11675
|
'0x0431': ['SQ', '1', 'ApplicatorGeometrySequence'],
|
|
10912
11676
|
'0x0432': ['CS', '1', 'ApplicatorApertureShape'],
|
|
10913
11677
|
'0x0433': ['FL', '1', 'ApplicatorOpening'],
|
|
@@ -10921,7 +11685,226 @@ dwv.dicom.dictionary = {
|
|
|
10921
11685
|
'0x0450': ['SQ', '1', 'DeviceMotionControlSequence'],
|
|
10922
11686
|
'0x0451': ['CS', '1', 'DeviceMotionExecutionMode'],
|
|
10923
11687
|
'0x0452': ['CS', '1', 'DeviceMotionObservationMode'],
|
|
10924
|
-
'0x0453': ['SQ', '1', 'DeviceMotionParameterCodeSequence']
|
|
11688
|
+
'0x0453': ['SQ', '1', 'DeviceMotionParameterCodeSequence'],
|
|
11689
|
+
'0x0501': ['FL', '1', 'DistalDepthFraction'],
|
|
11690
|
+
'0x0502': ['FL', '1', 'DistalDepth'],
|
|
11691
|
+
'0x0503': ['FL', '2', 'NominalRangeModulationFractions'],
|
|
11692
|
+
'0x0504': ['FL', '2', 'NominalRangeModulatedRegionDepths'],
|
|
11693
|
+
'0x0505': ['SQ', '1', 'DepthDoseParametersSequence'],
|
|
11694
|
+
'0x0506': ['SQ', '1', 'DeliveredDepthDoseParametersSequence'],
|
|
11695
|
+
'0x0507': ['FL', '1', 'DeliveredDistalDepthFraction'],
|
|
11696
|
+
'0x0508': ['FL', '1', 'DeliveredDistalDepth'],
|
|
11697
|
+
'0x0509': ['FL', '2', 'DeliveredNominalRangeModulationFractions'],
|
|
11698
|
+
'0x0510': ['FL', '2', 'DeliveredNominalRangeModulatedRegionDepths'],
|
|
11699
|
+
'0x0511': ['CS', '1', 'DeliveredReferenceDoseDefinition'],
|
|
11700
|
+
'0x0512': ['CS', '1', 'ReferenceDoseDefinition'],
|
|
11701
|
+
'0x0600': ['US', '1', 'RTControlPointIndex'],
|
|
11702
|
+
'0x0601': ['US', '1', 'RadiationGenerationModeIndex'],
|
|
11703
|
+
'0x0602': ['US', '1', 'ReferencedDefinedDeviceIndex'],
|
|
11704
|
+
'0x0603': ['US', '1', 'RadiationDoseIdentificationIndex'],
|
|
11705
|
+
'0x0604': ['US', '1', 'NumberOfRTControlPoints'],
|
|
11706
|
+
'0x0605': ['US', '1', 'ReferencedRadiationGenerationModeIndex'],
|
|
11707
|
+
'0x0606': ['US', '1', 'TreatmentPositionIndex'],
|
|
11708
|
+
'0x0607': ['US', '1', 'ReferencedDeviceIndex'],
|
|
11709
|
+
'0x0608': ['LO', '1', 'TreatmentPositionGroupLabel'],
|
|
11710
|
+
'0x0609': ['UI', '1', 'TreatmentPositionGroupUID'],
|
|
11711
|
+
'0x060A': ['SQ', '1', 'TreatmentPositionGroupSequence'],
|
|
11712
|
+
'0x060B': ['US', '1', 'ReferencedTreatmentPositionIndex'],
|
|
11713
|
+
'0x060C': ['US', '1', 'ReferencedRadiationDoseIdentificationIndex'],
|
|
11714
|
+
'0x060D': ['FD', '1', 'RTAccessoryHolderWaterEquivalentThickness'],
|
|
11715
|
+
'0x060E': ['US', '1', 'ReferencedRTAccessoryHolderDeviceIndex'],
|
|
11716
|
+
'0x060F': ['CS', '1', 'RTAccessoryHolderSlotExistenceFlag'],
|
|
11717
|
+
'0x0610': ['SQ', '1', 'RTAccessoryHolderSlotSequence'],
|
|
11718
|
+
'0x0611': ['LO', '1', 'RTAccessoryHolderSlotID'],
|
|
11719
|
+
'0x0612': ['FD', '1', 'RTAccessoryHolderSlotDistance'],
|
|
11720
|
+
'0x0613': ['FD', '1', 'RTAccessorySlotDistance'],
|
|
11721
|
+
'0x0614': ['SQ', '1', 'RTAccessoryHolderDefinitionSequence'],
|
|
11722
|
+
'0x0615': ['LO', '1', 'RTAccessoryDeviceSlotID'],
|
|
11723
|
+
'0x0616': ['SQ', '1', 'RTRadiationSequence'],
|
|
11724
|
+
'0x0617': ['SQ', '1', 'RadiationDoseSequence'],
|
|
11725
|
+
'0x0618': ['SQ', '1', 'RadiationDoseIdentificationSequence'],
|
|
11726
|
+
'0x0619': ['LO', '1', 'RadiationDoseIdentificationLabel'],
|
|
11727
|
+
'0x061A': ['CS', '1', 'ReferenceDoseType'],
|
|
11728
|
+
'0x061B': ['CS', '1', 'PrimaryDoseValueIndicator'],
|
|
11729
|
+
'0x061C': ['SQ', '1', 'DoseValuesSequence'],
|
|
11730
|
+
'0x061D': ['CS', '1-n', 'DoseValuePurpose'],
|
|
11731
|
+
'0x061E': ['FD', '3', 'ReferenceDosePointCoordinates'],
|
|
11732
|
+
'0x061F': ['SQ', '1', 'RadiationDoseValuesParametersSequence'],
|
|
11733
|
+
'0x0620': ['SQ', '1', 'MetersetToDoseMappingSequence'],
|
|
11734
|
+
'0x0621': ['SQ', '1', 'ExpectedInVivoMeasurementValuesSequence'],
|
|
11735
|
+
'0x0622': ['US', '1', 'ExpectedInVivoMeasurementValueIndex'],
|
|
11736
|
+
'0x0623': ['LO', '1', 'RadiationDoseInVivoMeasurementLabel'],
|
|
11737
|
+
'0x0624': ['FD', '2', 'RadiationDoseCentralAxisDisplacement'],
|
|
11738
|
+
'0x0625': ['FD', '1', 'RadiationDoseValue'],
|
|
11739
|
+
'0x0626': ['FD', '1', 'RadiationDoseSourceToSkinDistance'],
|
|
11740
|
+
'0x0627': ['FD', '3', 'RadiationDoseMeasurementPointCoordinates'],
|
|
11741
|
+
'0x0628': ['FD', '1', 'RadiationDoseSourceToExternalContourDistance'],
|
|
11742
|
+
'0x0629': ['SQ', '1', 'RTToleranceSetSequence'],
|
|
11743
|
+
'0x062A': ['LO', '1', 'RTToleranceSetLabel'],
|
|
11744
|
+
'0x062B': ['SQ', '1', 'AttributeToleranceValuesSequence'],
|
|
11745
|
+
'0x062C': ['FD', '1', 'ToleranceValue'],
|
|
11746
|
+
'0x062D': ['SQ', '1', 'PatientSupportPositionToleranceSequence'],
|
|
11747
|
+
'0x062E': ['FD', '1', 'TreatmentTimeLimit'],
|
|
11748
|
+
'0x062F': ['SQ', '1', 'CArmPhotonElectronControlPointSequence'],
|
|
11749
|
+
'0x0630': ['SQ', '1', 'ReferencedRTRadiationSequence'],
|
|
11750
|
+
'0x0631': ['SQ', '1', 'ReferencedRTInstanceSequence'],
|
|
11751
|
+
'0x0632': ['SQ', '1', 'ReferencedRTPatientSetupSequence'],
|
|
11752
|
+
'0x0634': ['FD', '1', 'SourceToPatientSurfaceDistance'],
|
|
11753
|
+
'0x0635': ['SQ', '1', 'TreatmentMachineSpecialModeCodeSequence'],
|
|
11754
|
+
'0x0636': ['US', '1', 'IntendedNumberOfFractions'],
|
|
11755
|
+
'0x0637': ['CS', '1', 'RTRadiationSetIntent'],
|
|
11756
|
+
'0x0638': ['CS', '1', 'RTRadiationPhysicalAndGeometricContentDetailFlag'],
|
|
11757
|
+
'0x0639': ['CS', '1', 'RTRecordFlag'],
|
|
11758
|
+
'0x063A': ['SQ', '1', 'TreatmentDeviceIdentificationSequence'],
|
|
11759
|
+
'0x063B': ['SQ', '1', 'ReferencedRTPhysicianIntentSequence'],
|
|
11760
|
+
'0x063C': ['FD', '1', 'CumulativeMeterset'],
|
|
11761
|
+
'0x063D': ['FD', '1', 'DeliveryRate'],
|
|
11762
|
+
'0x063E': ['SQ', '1', 'DeliveryRateUnitSequence'],
|
|
11763
|
+
'0x063F': ['SQ', '1', 'TreatmentPositionSequence'],
|
|
11764
|
+
'0x0640': ['FD', '1', 'RadiationSourceAxisDistance'],
|
|
11765
|
+
'0x0641': ['US', '1', 'NumberOfRTBeamLimitingDevices'],
|
|
11766
|
+
'0x0642': ['FD', '1', 'RTBeamLimitingDeviceProximalDistance'],
|
|
11767
|
+
'0x0643': ['FD', '1', 'RTBeamLimitingDeviceDistalDistance'],
|
|
11768
|
+
'0x0644': ['SQ', '1', 'ParallelRTBeamDelimiterDeviceOrientationLabelCodeSequence'],
|
|
11769
|
+
'0x0645': ['FD', '1', 'BeamModifierOrientationAngle'],
|
|
11770
|
+
'0x0646': ['SQ', '1', 'FixedRTBeamDelimiterDeviceSequence'],
|
|
11771
|
+
'0x0647': ['SQ', '1', 'ParallelRTBeamDelimiterDeviceSequence'],
|
|
11772
|
+
'0x0648': ['US', '1', 'NumberOfParallelRTBeamDelimiters'],
|
|
11773
|
+
'0x0649': ['FD', '2-n', 'ParallelRTBeamDelimiterBoundaries'],
|
|
11774
|
+
'0x064A': ['FD', '2-n', 'ParallelRTBeamDelimiterPositions'],
|
|
11775
|
+
'0x064B': ['FD', '2', 'RTBeamLimitingDeviceOffset'],
|
|
11776
|
+
'0x064C': ['SQ', '1', 'RTBeamDelimiterGeometrySequence'],
|
|
11777
|
+
'0x064D': ['SQ', '1', 'RTBeamLimitingDeviceDefinitionSequence'],
|
|
11778
|
+
'0x064E': ['CS', '1', 'ParallelRTBeamDelimiterOpeningMode'],
|
|
11779
|
+
'0x064F': ['CS', '1-n', 'ParallelRTBeamDelimiterLeafMountingSide'],
|
|
11780
|
+
'0x0650': ['UI', '1', 'PatientSetupUID'],
|
|
11781
|
+
'0x0651': ['SQ', '1', 'WedgeDefinitionSequence'],
|
|
11782
|
+
'0x0652': ['FD', '1', 'RadiationBeamWedgeAngle'],
|
|
11783
|
+
'0x0653': ['FD', '1', 'RadiationBeamWedgeThinEdgeDistance'],
|
|
11784
|
+
'0x0654': ['FD', '1', 'RadiationBeamEffectiveWedgeAngle'],
|
|
11785
|
+
'0x0655': ['US', '1', 'NumberOfWedgePositions'],
|
|
11786
|
+
'0x0656': ['SQ', '1', 'RTBeamLimitingDeviceOpeningSequence'],
|
|
11787
|
+
'0x0657': ['US', '1', 'NumberOfRTBeamLimitingDeviceOpenings'],
|
|
11788
|
+
'0x0658': ['SQ', '1', 'RadiationDosimeterUnitSequence'],
|
|
11789
|
+
'0x0659': ['SQ', '1', 'RTDeviceDistanceReferenceLocationCodeSequence'],
|
|
11790
|
+
'0x065A': ['SQ', '1', 'RadiationDeviceConfigurationAndCommissioningKeySequence'],
|
|
11791
|
+
'0x065B': ['SQ', '1', 'PatientSupportPositionParameterSequence'],
|
|
11792
|
+
'0x065C': ['CS', '1', 'PatientSupportPositionSpecificationMethod'],
|
|
11793
|
+
'0x065D': ['SQ', '1', 'PatientSupportPositionDeviceParameterSequence'],
|
|
11794
|
+
'0x065E': ['US', '1', 'DeviceOrderIndex'],
|
|
11795
|
+
'0x065F': ['US', '1', 'PatientSupportPositionParameterOrderIndex'],
|
|
11796
|
+
'0x0660': ['SQ', '1', 'PatientSupportPositionDeviceToleranceSequence'],
|
|
11797
|
+
'0x0661': ['US', '1', 'PatientSupportPositionToleranceOrderIndex'],
|
|
11798
|
+
'0x0662': ['SQ', '1', 'CompensatorDefinitionSequence'],
|
|
11799
|
+
'0x0663': ['CS', '1', 'CompensatorMapOrientation'],
|
|
11800
|
+
'0x0664': ['OF', '1', 'CompensatorProximalThicknessMap'],
|
|
11801
|
+
'0x0665': ['OF', '1', 'CompensatorDistalThicknessMap'],
|
|
11802
|
+
'0x0666': ['FD', '1', 'CompensatorBasePlaneOffset'],
|
|
11803
|
+
'0x0667': ['SQ', '1', 'CompensatorShapeFabricationCodeSequence'],
|
|
11804
|
+
'0x0668': ['SQ', '1', 'CompensatorShapeSequence'],
|
|
11805
|
+
'0x0669': ['FD', '1', 'RadiationBeamCompensatorMillingToolDiameter'],
|
|
11806
|
+
'0x066A': ['SQ', '1', 'BlockDefinitionSequence'],
|
|
11807
|
+
'0x066B': ['OF', '1', 'BlockEdgeData'],
|
|
11808
|
+
'0x066C': ['CS', '1', 'BlockOrientation'],
|
|
11809
|
+
'0x066D': ['FD', '1', 'RadiationBeamBlockThickness'],
|
|
11810
|
+
'0x066E': ['FD', '1', 'RadiationBeamBlockSlabThickness'],
|
|
11811
|
+
'0x066F': ['SQ', '1', 'BlockEdgeDataSequence'],
|
|
11812
|
+
'0x0670': ['US', '1', 'NumberOfRTAccessoryHolders'],
|
|
11813
|
+
'0x0671': ['SQ', '1', 'GeneralAccessoryDefinitionSequence'],
|
|
11814
|
+
'0x0672': ['US', '1', 'NumberOfGeneralAccessories'],
|
|
11815
|
+
'0x0673': ['SQ', '1', 'BolusDefinitionSequence'],
|
|
11816
|
+
'0x0674': ['US', '1', 'NumberOfBoluses'],
|
|
11817
|
+
'0x0675': ['UI', '1', 'EquipmentFrameOfReferenceUID'],
|
|
11818
|
+
'0x0676': ['ST', '1', 'EquipmentFrameOfReferenceDescription'],
|
|
11819
|
+
'0x0677': ['SQ', '1', 'EquipmentReferencePointCoordinatesSequence'],
|
|
11820
|
+
'0x0678': ['SQ', '1', 'EquipmentReferencePointCodeSequence'],
|
|
11821
|
+
'0x0679': ['FD', '1', 'RTBeamLimitingDeviceAngle'],
|
|
11822
|
+
'0x067A': ['FD', '1', 'SourceRollAngle'],
|
|
11823
|
+
'0x067B': ['SQ', '1', 'RadiationGenerationModeSequence'],
|
|
11824
|
+
'0x067C': ['SH', '1', 'RadiationGenerationModeLabel'],
|
|
11825
|
+
'0x067D': ['ST', '1', 'RadiationGenerationModeDescription'],
|
|
11826
|
+
'0x067E': ['SQ', '1', 'RadiationGenerationModeMachineCodeSequence'],
|
|
11827
|
+
'0x067F': ['SQ', '1', 'RadiationTypeCodeSequence'],
|
|
11828
|
+
'0x0680': ['DS', '1', 'NominalEnergy'],
|
|
11829
|
+
'0x0681': ['DS', '1', 'MinimumNominalEnergy'],
|
|
11830
|
+
'0x0682': ['DS', '1', 'MaximumNominalEnergy'],
|
|
11831
|
+
'0x0683': ['SQ', '1', 'RadiationFluenceModifierCodeSequence'],
|
|
11832
|
+
'0x0684': ['SQ', '1', 'EnergyUnitCodeSequence'],
|
|
11833
|
+
'0x0685': ['US', '1', 'NumberOfRadiationGenerationModes'],
|
|
11834
|
+
'0x0686': ['SQ', '1', 'PatientSupportDevicesSequence'],
|
|
11835
|
+
'0x0687': ['US', '1', 'NumberOfPatientSupportDevices'],
|
|
11836
|
+
'0x0688': ['FD', '1', 'RTBeamModifierDefinitionDistance'],
|
|
11837
|
+
'0x0689': ['SQ', '1', 'BeamAreaLimitSequence'],
|
|
11838
|
+
'0x068A': ['SQ', '1', 'ReferencedRTPrescriptionSequence'],
|
|
11839
|
+
'0x0700': ['UI', '1', 'TreatmentSessionUID'],
|
|
11840
|
+
'0x0701': ['CS', '1', 'RTRadiationUsage'],
|
|
11841
|
+
'0x0702': ['SQ', '1', 'ReferencedRTRadiationSetSequence'],
|
|
11842
|
+
'0x0703': ['SQ', '1', 'ReferencedRTRadiationRecordSequence'],
|
|
11843
|
+
'0x0704': ['US', '1', 'RTRadiationSetDeliveryNumber'],
|
|
11844
|
+
'0x0705': ['US', '1', 'ClinicalFractionNumber'],
|
|
11845
|
+
'0x0706': ['CS', '1', 'RTTreatmentFractionCompletionStatus'],
|
|
11846
|
+
'0x0707': ['CS', '1', 'RTRadiationSetUsage'],
|
|
11847
|
+
'0x0708': ['CS', '1', 'TreatmentDeliveryContinuationFlag'],
|
|
11848
|
+
'0x0709': ['CS', '1', 'TreatmentRecordContentOrigin'],
|
|
11849
|
+
'0x0714': ['CS', '1', 'RTTreatmentTerminationStatus'],
|
|
11850
|
+
'0x0715': ['SQ', '1', 'RTTreatmentTerminationReasonCodeSequence'],
|
|
11851
|
+
'0x0716': ['SQ', '1', 'MachineSpecificTreatmentTerminationCodeSequence'],
|
|
11852
|
+
'0x0722': ['SQ', '1', 'RTRadiationSalvageRecordControlPointSequence'],
|
|
11853
|
+
'0x0723': ['CS', '1', 'StartingMetersetValueKnownFlag'],
|
|
11854
|
+
'0x0730': ['ST', '1', 'TreatmentTerminationDescription'],
|
|
11855
|
+
'0x0731': ['SQ', '1', 'TreatmentToleranceViolationSequence'],
|
|
11856
|
+
'0x0732': ['CS', '1', 'TreatmentToleranceViolationCategory'],
|
|
11857
|
+
'0x0733': ['SQ', '1', 'TreatmentToleranceViolationAttributeSequence'],
|
|
11858
|
+
'0x0734': ['ST', '1', 'TreatmentToleranceViolationDescription'],
|
|
11859
|
+
'0x0735': ['ST', '1', 'TreatmentToleranceViolationIdentification'],
|
|
11860
|
+
'0x0736': ['DT', '1', 'TreatmentToleranceViolationDateTime'],
|
|
11861
|
+
'0x073A': ['DT', '1', 'RecordedRTControlPointDateTime'],
|
|
11862
|
+
'0x073B': ['US', '1', 'ReferencedRadiationRTControlPointIndex'],
|
|
11863
|
+
'0x073E': ['SQ', '1', 'AlternateValueSequence'],
|
|
11864
|
+
'0x073F': ['SQ', '1', 'ConfirmationSequence'],
|
|
11865
|
+
'0x0740': ['SQ', '1', 'InterlockSequence'],
|
|
11866
|
+
'0x0741': ['DT', '1', 'InterlockDateTime'],
|
|
11867
|
+
'0x0742': ['ST', '1', 'InterlockDescription'],
|
|
11868
|
+
'0x0743': ['SQ', '1', 'InterlockOriginatingDeviceSequence'],
|
|
11869
|
+
'0x0744': ['SQ', '1', 'InterlockCodeSequence'],
|
|
11870
|
+
'0x0745': ['SQ', '1', 'InterlockResolutionCodeSequence'],
|
|
11871
|
+
'0x0746': ['SQ', '1', 'InterlockResolutionUserSequence'],
|
|
11872
|
+
'0x0760': ['DT', '1', 'OverrideDateTime'],
|
|
11873
|
+
'0x0761': ['SQ', '1', 'TreatmentToleranceViolationTypeCodeSequence'],
|
|
11874
|
+
'0x0762': ['SQ', '1', 'TreatmentToleranceViolationCauseCodeSequence'],
|
|
11875
|
+
'0x0772': ['SQ', '1', 'MeasuredMetersetToDoseMappingSequence'],
|
|
11876
|
+
'0x0773': ['US', '1', 'ReferencedExpectedInVivoMeasurementValueIndex'],
|
|
11877
|
+
'0x0774': ['SQ', '1', 'DoseMeasurementDeviceCodeSequence'],
|
|
11878
|
+
'0x0780': ['SQ', '1', 'AdditionalParameterRecordingInstanceSequence'],
|
|
11879
|
+
'0x0782': ['US', '1', ''],
|
|
11880
|
+
'0x0783': ['ST', '1', 'InterlockOriginDescription'],
|
|
11881
|
+
'0x0784': ['SQ', '1', 'RTPatientPositionScopeSequence'],
|
|
11882
|
+
'0x0785': ['UI', '1', 'ReferencedTreatmentPositionGroupUID'],
|
|
11883
|
+
'0x0786': ['US', '1', 'RadiationOrderIndex'],
|
|
11884
|
+
'0x0787': ['SQ', '1', 'OmittedRadiationSequence'],
|
|
11885
|
+
'0x0788': ['SQ', '1', 'ReasonForOmissionCodeSequence'],
|
|
11886
|
+
'0x0789': ['SQ', '1', 'RTDeliveryStartPatientPositionSequence'],
|
|
11887
|
+
'0x078A': ['SQ', '1', 'RTTreatmentPreparationPatientPositionSequence'],
|
|
11888
|
+
'0x078B': ['SQ', '1', 'ReferencedRTTreatmentPreparationSequence'],
|
|
11889
|
+
'0x078C': ['SQ', '1', 'ReferencedPatientSetupPhotoSequence'],
|
|
11890
|
+
'0x078D': ['SQ', '1', 'PatientTreatmentPreparationMethodCodeSequence'],
|
|
11891
|
+
'0x078E': ['LT', '1', 'PatientTreatmentPreparationProcedureParameterDescription'],
|
|
11892
|
+
'0x078F': ['SQ', '1', 'PatientTreatmentPreparationDeviceSequence'],
|
|
11893
|
+
'0x0790': ['SQ', '1', 'PatientTreatmentPreparationProcedureSequence'],
|
|
11894
|
+
'0x0791': ['SQ', '1', 'PatientTreatmentPreparationProcedureCodeSequence'],
|
|
11895
|
+
'0x0792': ['LT', '1', 'PatientTreatmentPreparationMethodDescription'],
|
|
11896
|
+
'0x0793': ['SQ', '1', 'PatientTreatmentPreparationProcedureParameterSequence'],
|
|
11897
|
+
'0x0794': ['LT', '1', 'PatientSetupPhotoDescription'],
|
|
11898
|
+
'0x0795': ['US', '1', 'PatientTreatmentPreparationProcedureIndex'],
|
|
11899
|
+
'0x0796': ['US', '1', 'ReferencedPatientSetupProcedureIndex'],
|
|
11900
|
+
'0x0797': ['SQ', '1', 'RTRadiationTaskSequence'],
|
|
11901
|
+
'0x0798': ['SQ', '1', 'RTPatientPositionDisplacementSequence'],
|
|
11902
|
+
'0x0799': ['SQ', '1', 'RTPatientPositionSequence'],
|
|
11903
|
+
'0x079A': ['LO', '1', 'DisplacementReferenceLabel'],
|
|
11904
|
+
'0x079B': ['FD', '16', 'DisplacementMatrix'],
|
|
11905
|
+
'0x079C': ['SQ', '1', 'PatientSupportDisplacementSequence'],
|
|
11906
|
+
'0x079D': ['SQ', '1', 'DisplacementReferenceLocationCodeSequence'],
|
|
11907
|
+
'0x079E': ['CS', '1', 'RTRadiationSetDeliveryUsage']
|
|
10925
11908
|
},
|
|
10926
11909
|
'0x300C': {
|
|
10927
11910
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -10958,7 +11941,22 @@ dwv.dicom.dictionary = {
|
|
|
10958
11941
|
'0x0104': ['IS', '1', 'ReferencedRangeModulatorNumber'],
|
|
10959
11942
|
'0x0111': ['SQ', '1', 'OmittedBeamTaskSequence'],
|
|
10960
11943
|
'0x0112': ['CS', '1', 'ReasonForOmission'],
|
|
10961
|
-
'0x0113': ['LO', '1', 'ReasonForOmissionDescription']
|
|
11944
|
+
'0x0113': ['LO', '1', 'ReasonForOmissionDescription'],
|
|
11945
|
+
'0x0114': ['SQ', '1', 'PrescriptionOverviewSequence'],
|
|
11946
|
+
'0x0115': ['FL', '1', 'TotalPrescriptionDose'],
|
|
11947
|
+
'0x0116': ['SQ', '1', 'PlanOverviewSequence'],
|
|
11948
|
+
'0x0117': ['US', '1', 'PlanOverviewIndex'],
|
|
11949
|
+
'0x0118': ['US', '1', 'ReferencedPlanOverviewIndex'],
|
|
11950
|
+
'0x0119': ['US', '1', 'NumberOfFractionsIncluded'],
|
|
11951
|
+
'0x0120': ['SQ', '1', 'DoseCalibrationConditionsSequence'],
|
|
11952
|
+
'0x0121': ['FD', '1', 'AbsorbedDoseToMetersetRatio'],
|
|
11953
|
+
'0x0122': ['FD', '2', 'DelineatedRadiationFieldSize'],
|
|
11954
|
+
'0x0123': ['CS', '1', 'DoseCalibrationConditionsVerifiedFlag'],
|
|
11955
|
+
'0x0124': ['FD', '1', 'CalibrationReferencePointDepth'],
|
|
11956
|
+
'0x0125': ['SQ', '1', 'GatingBeamHoldTransitionSequence'],
|
|
11957
|
+
'0x0126': ['CS', '1', 'BeamHoldTransition'],
|
|
11958
|
+
'0x0127': ['DT', '1', 'BeamHoldTransitionDateTime'],
|
|
11959
|
+
'0x0128': ['SQ', '1', 'BeamHoldOriginatingDeviceSequence']
|
|
10962
11960
|
},
|
|
10963
11961
|
'0x300E': {
|
|
10964
11962
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
@@ -10967,6 +11965,156 @@ dwv.dicom.dictionary = {
|
|
|
10967
11965
|
'0x0005': ['TM', '1', 'ReviewTime'],
|
|
10968
11966
|
'0x0008': ['PN', '1', 'ReviewerName']
|
|
10969
11967
|
},
|
|
11968
|
+
'0x3010': {
|
|
11969
|
+
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
11970
|
+
'0x0001': ['SQ', '1', 'RadiobiologicalDoseEffectSequence'],
|
|
11971
|
+
'0x0002': ['CS', '1', 'RadiobiologicalDoseEffectFlag'],
|
|
11972
|
+
'0x0003': ['SQ', '1', 'EffectiveDoseCalculationMethodCategoryCodeSequence'],
|
|
11973
|
+
'0x0004': ['SQ', '1', 'EffectiveDoseCalculationMethodCodeSequence'],
|
|
11974
|
+
'0x0005': ['LO', '1', 'EffectiveDoseCalculationMethodDescription'],
|
|
11975
|
+
'0x0006': ['UI', '1', 'ConceptualVolumeUID'],
|
|
11976
|
+
'0x0007': ['SQ', '1', 'OriginatingSOPInstanceReferenceSequence'],
|
|
11977
|
+
'0x0008': ['SQ', '1', 'ConceptualVolumeConstituentSequence'],
|
|
11978
|
+
'0x0009': ['SQ', '1', 'EquivalentConceptualVolumeInstanceReferenceSequence'],
|
|
11979
|
+
'0x000A': ['SQ', '1', 'EquivalentConceptualVolumesSequence'],
|
|
11980
|
+
'0x000B': ['UI', '1', 'ReferencedConceptualVolumeUID'],
|
|
11981
|
+
'0x000C': ['UT', '1', 'ConceptualVolumeCombinationExpression'],
|
|
11982
|
+
'0x000D': ['US', '1', 'ConceptualVolumeConstituentIndex'],
|
|
11983
|
+
'0x000E': ['CS', '1', 'ConceptualVolumeCombinationFlag'],
|
|
11984
|
+
'0x000F': ['ST', '1', 'ConceptualVolumeCombinationDescription'],
|
|
11985
|
+
'0x0010': ['CS', '1', 'ConceptualVolumeSegmentationDefinedFlag'],
|
|
11986
|
+
'0x0011': ['SQ', '1', 'ConceptualVolumeSegmentationReferenceSequence'],
|
|
11987
|
+
'0x0012': ['SQ', '1', 'ConceptualVolumeConstituentSegmentationReferenceSequence'],
|
|
11988
|
+
'0x0013': ['UI', '1', 'ConstituentConceptualVolumeUID'],
|
|
11989
|
+
'0x0014': ['SQ', '1', 'DerivationConceptualVolumeSequence'],
|
|
11990
|
+
'0x0015': ['UI', '1', 'SourceConceptualVolumeUID'],
|
|
11991
|
+
'0x0016': ['SQ', '1', 'ConceptualVolumeDerivationAlgorithmSequence'],
|
|
11992
|
+
'0x0017': ['ST', '1', 'ConceptualVolumeDescription'],
|
|
11993
|
+
'0x0018': ['SQ', '1', 'SourceConceptualVolumeSequence'],
|
|
11994
|
+
'0x0019': ['SQ', '1', 'AuthorIdentificationSequence'],
|
|
11995
|
+
'0x001A': ['LO', '1', 'ManufacturerModelVersion'],
|
|
11996
|
+
'0x001B': ['UC', '1', 'DeviceAlternateIdentifier'],
|
|
11997
|
+
'0x001C': ['CS', '1', 'DeviceAlternateIdentifierType'],
|
|
11998
|
+
'0x001D': ['LT', '1', 'DeviceAlternateIdentifierFormat'],
|
|
11999
|
+
'0x001E': ['LO', '1', 'SegmentationCreationTemplateLabel'],
|
|
12000
|
+
'0x001F': ['UI', '1', 'SegmentationTemplateUID'],
|
|
12001
|
+
'0x0020': ['US', '1', 'ReferencedSegmentReferenceIndex'],
|
|
12002
|
+
'0x0021': ['SQ', '1', 'SegmentReferenceSequence'],
|
|
12003
|
+
'0x0022': ['US', '1', 'SegmentReferenceIndex'],
|
|
12004
|
+
'0x0023': ['SQ', '1', 'DirectSegmentReferenceSequence'],
|
|
12005
|
+
'0x0024': ['SQ', '1', 'CombinationSegmentReferenceSequence'],
|
|
12006
|
+
'0x0025': ['SQ', '1', 'ConceptualVolumeSequence'],
|
|
12007
|
+
'0x0026': ['SQ', '1', 'SegmentedRTAccessoryDeviceSequence'],
|
|
12008
|
+
'0x0027': ['SQ', '1', 'SegmentCharacteristicsSequence'],
|
|
12009
|
+
'0x0028': ['SQ', '1', 'RelatedSegmentCharacteristicsSequence'],
|
|
12010
|
+
'0x0029': ['US', '1', 'SegmentCharacteristicsPrecedence'],
|
|
12011
|
+
'0x002A': ['SQ', '1', 'RTSegmentAnnotationSequence'],
|
|
12012
|
+
'0x002B': ['SQ', '1', 'SegmentAnnotationCategoryCodeSequence'],
|
|
12013
|
+
'0x002C': ['SQ', '1', 'SegmentAnnotationTypeCodeSequence'],
|
|
12014
|
+
'0x002D': ['LO', '1', 'DeviceLabel'],
|
|
12015
|
+
'0x002E': ['SQ', '1', 'DeviceTypeCodeSequence'],
|
|
12016
|
+
'0x002F': ['SQ', '1', 'SegmentAnnotationTypeModifierCodeSequence'],
|
|
12017
|
+
'0x0030': ['SQ', '1', 'PatientEquipmentRelationshipCodeSequence'],
|
|
12018
|
+
'0x0031': ['UI', '1', 'ReferencedFiducialsUID'],
|
|
12019
|
+
'0x0032': ['SQ', '1', 'PatientTreatmentOrientationSequence'],
|
|
12020
|
+
'0x0033': ['SH', '1', 'UserContentLabel'],
|
|
12021
|
+
'0x0034': ['LO', '1', 'UserContentLongLabel'],
|
|
12022
|
+
'0x0035': ['SH', '1', 'EntityLabel'],
|
|
12023
|
+
'0x0036': ['LO', '1', 'EntityName'],
|
|
12024
|
+
'0x0037': ['ST', '1', 'EntityDescription'],
|
|
12025
|
+
'0x0038': ['LO', '1', 'EntityLongLabel'],
|
|
12026
|
+
'0x0039': ['US', '1', 'DeviceIndex'],
|
|
12027
|
+
'0x003A': ['US', '1', 'RTTreatmentPhaseIndex'],
|
|
12028
|
+
'0x003B': ['UI', '1', 'RTTreatmentPhaseUID'],
|
|
12029
|
+
'0x003C': ['US', '1', 'RTPrescriptionIndex'],
|
|
12030
|
+
'0x003D': ['US', '1', 'RTSegmentAnnotationIndex'],
|
|
12031
|
+
'0x003E': ['US', '1', 'BasisRTTreatmentPhaseIndex'],
|
|
12032
|
+
'0x003F': ['US', '1', 'RelatedRTTreatmentPhaseIndex'],
|
|
12033
|
+
'0x0040': ['US', '1', 'ReferencedRTTreatmentPhaseIndex'],
|
|
12034
|
+
'0x0041': ['US', '1', 'ReferencedRTPrescriptionIndex'],
|
|
12035
|
+
'0x0042': ['US', '1', 'ReferencedParentRTPrescriptionIndex'],
|
|
12036
|
+
'0x0043': ['ST', '1', 'ManufacturerDeviceIdentifier'],
|
|
12037
|
+
'0x0044': ['SQ', '1', 'InstanceLevelReferencedPerformedProcedureStepSequence'],
|
|
12038
|
+
'0x0045': ['CS', '1', 'RTTreatmentPhaseIntentPresenceFlag'],
|
|
12039
|
+
'0x0046': ['CS', '1', 'RadiotherapyTreatmentType'],
|
|
12040
|
+
'0x0047': ['CS', '1-n', 'TeletherapyRadiationType'],
|
|
12041
|
+
'0x0048': ['CS', '1-n', 'BrachytherapySourceType'],
|
|
12042
|
+
'0x0049': ['SQ', '1', 'ReferencedRTTreatmentPhaseSequence'],
|
|
12043
|
+
'0x004A': ['SQ', '1', 'ReferencedDirectSegmentInstanceSequence'],
|
|
12044
|
+
'0x004B': ['SQ', '1', 'IntendedRTTreatmentPhaseSequence'],
|
|
12045
|
+
'0x004C': ['DA', '1', 'IntendedPhaseStartDate'],
|
|
12046
|
+
'0x004D': ['DA', '1', 'IntendedPhaseEndDate'],
|
|
12047
|
+
'0x004E': ['SQ', '1', 'RTTreatmentPhaseIntervalSequence'],
|
|
12048
|
+
'0x004F': ['CS', '1', 'TemporalRelationshipIntervalAnchor'],
|
|
12049
|
+
'0x0050': ['FD', '1', 'MinimumNumberOfIntervalDays'],
|
|
12050
|
+
'0x0051': ['FD', '1', 'MaximumNumberOfIntervalDays'],
|
|
12051
|
+
'0x0052': ['UI', '1-n', 'PertinentSOPClassesInStudy'],
|
|
12052
|
+
'0x0053': ['UI', '1-n', 'PertinentSOPClassesInSeries'],
|
|
12053
|
+
'0x0054': ['LO', '1', 'RTPrescriptionLabel'],
|
|
12054
|
+
'0x0055': ['SQ', '1', 'RTPhysicianIntentPredecessorSequence'],
|
|
12055
|
+
'0x0056': ['LO', '1', 'RTTreatmentApproachLabel'],
|
|
12056
|
+
'0x0057': ['SQ', '1', 'RTPhysicianIntentSequence'],
|
|
12057
|
+
'0x0058': ['US', '1', 'RTPhysicianIntentIndex'],
|
|
12058
|
+
'0x0059': ['CS', '1', 'RTTreatmentIntentType'],
|
|
12059
|
+
'0x005A': ['UT', '1', 'RTPhysicianIntentNarrative'],
|
|
12060
|
+
'0x005B': ['SQ', '1', 'RTProtocolCodeSequence'],
|
|
12061
|
+
'0x005C': ['ST', '1', 'ReasonForSuperseding'],
|
|
12062
|
+
'0x005D': ['SQ', '1', 'RTDiagnosisCodeSequence'],
|
|
12063
|
+
'0x005E': ['US', '1', 'ReferencedRTPhysicianIntentIndex'],
|
|
12064
|
+
'0x005F': ['SQ', '1', 'RTPhysicianIntentInputInstanceSequence'],
|
|
12065
|
+
'0x0060': ['SQ', '1', 'RTAnatomicPrescriptionSequence'],
|
|
12066
|
+
'0x0061': ['UT', '1', 'PriorTreatmentDoseDescription'],
|
|
12067
|
+
'0x0062': ['SQ', '1', 'PriorTreatmentReferenceSequence'],
|
|
12068
|
+
'0x0063': ['CS', '1', 'DosimetricObjectiveEvaluationScope'],
|
|
12069
|
+
'0x0064': ['SQ', '1', 'TherapeuticRoleCategoryCodeSequence'],
|
|
12070
|
+
'0x0065': ['SQ', '1', 'TherapeuticRoleTypeCodeSequence'],
|
|
12071
|
+
'0x0066': ['US', '1', 'ConceptualVolumeOptimizationPrecedence'],
|
|
12072
|
+
'0x0067': ['SQ', '1', 'ConceptualVolumeCategoryCodeSequence'],
|
|
12073
|
+
'0x0068': ['CS', '1', 'ConceptualVolumeBlockingConstraint'],
|
|
12074
|
+
'0x0069': ['SQ', '1', 'ConceptualVolumeTypeCodeSequence'],
|
|
12075
|
+
'0x006A': ['SQ', '1', 'ConceptualVolumeTypeModifierCodeSequence'],
|
|
12076
|
+
'0x006B': ['SQ', '1', 'RTPrescriptionSequence'],
|
|
12077
|
+
'0x006C': ['SQ', '1', 'DosimetricObjectiveSequence'],
|
|
12078
|
+
'0x006D': ['SQ', '1', 'DosimetricObjectiveTypeCodeSequence'],
|
|
12079
|
+
'0x006E': ['UI', '1', 'DosimetricObjectiveUID'],
|
|
12080
|
+
'0x006F': ['UI', '1', 'ReferencedDosimetricObjectiveUID'],
|
|
12081
|
+
'0x0070': ['SQ', '1', 'DosimetricObjectiveParameterSequence'],
|
|
12082
|
+
'0x0071': ['SQ', '1', 'ReferencedDosimetricObjectivesSequence'],
|
|
12083
|
+
'0x0073': ['CS', '1', 'AbsoluteDosimetricObjectiveFlag'],
|
|
12084
|
+
'0x0074': ['FD', '1', 'DosimetricObjectiveWeight'],
|
|
12085
|
+
'0x0075': ['CS', '1', 'DosimetricObjectivePurpose'],
|
|
12086
|
+
'0x0076': ['SQ', '1', 'PlanningInputInformationSequence'],
|
|
12087
|
+
'0x0077': ['LO', '1', 'TreatmentSite'],
|
|
12088
|
+
'0x0078': ['SQ', '1', 'TreatmentSiteCodeSequence'],
|
|
12089
|
+
'0x0079': ['SQ', '1', 'FractionPatternSequence'],
|
|
12090
|
+
'0x007A': ['UT', '1', 'TreatmentTechniqueNotes'],
|
|
12091
|
+
'0x007B': ['UT', '1', 'PrescriptionNotes'],
|
|
12092
|
+
'0x007C': ['IS', '1', 'NumberOfIntervalFractions'],
|
|
12093
|
+
'0x007D': ['US', '1', 'NumberOfFractions'],
|
|
12094
|
+
'0x007E': ['US', '1', 'IntendedDeliveryDuration'],
|
|
12095
|
+
'0x007F': ['UT', '1', 'FractionationNotes'],
|
|
12096
|
+
'0x0080': ['SQ', '1', 'RTTreatmentTechniqueCodeSequence'],
|
|
12097
|
+
'0x0081': ['SQ', '1', 'PrescriptionNotesSequence'],
|
|
12098
|
+
'0x0082': ['SQ', '1', 'FractionBasedRelationshipSequence'],
|
|
12099
|
+
'0x0083': ['CS', '1', 'FractionBasedRelationshipIntervalAnchor'],
|
|
12100
|
+
'0x0084': ['FD', '1', 'MinimumHoursBetweenFractions'],
|
|
12101
|
+
'0x0085': ['TM', '1-n', 'IntendedFractionStartTime'],
|
|
12102
|
+
'0x0086': ['LT', '1', 'IntendedStartDayOfWeek'],
|
|
12103
|
+
'0x0087': ['SQ', '1', 'WeekdayFractionPatternSequence'],
|
|
12104
|
+
'0x0088': ['SQ', '1', 'DeliveryTimeStructureCodeSequence'],
|
|
12105
|
+
'0x0089': ['SQ', '1', 'TreatmentSiteModifierCodeSequence'],
|
|
12106
|
+
'0x0090': ['CS', '1', 'RoboticBaseLocationIndicator'],
|
|
12107
|
+
'0x0091': ['SQ', '1', 'RoboticPathNodeSetCodeSequence'],
|
|
12108
|
+
'0x0092': ['UL', '1', 'RoboticNodeIdentifier'],
|
|
12109
|
+
'0x0093': ['FD', '3', 'RTTreatmentSourceCoordinates'],
|
|
12110
|
+
'0x0094': ['FD', '1', 'RadiationSourceCoordinateSystemYawAngle'],
|
|
12111
|
+
'0x0095': ['FD', '1', 'RadiationSourceCoordinateSystemRollAngle'],
|
|
12112
|
+
'0x0096': ['FD', '1', 'RadiationSourceCoordinateSystemPitchAngle'],
|
|
12113
|
+
'0x0097': ['SQ', '1', 'RoboticPathControlPointSequence'],
|
|
12114
|
+
'0x0098': ['SQ', '1', 'TomotherapeuticControlPointSequence'],
|
|
12115
|
+
'0x0099': ['FD', '1-n', 'TomotherapeuticLeafOpenDurations'],
|
|
12116
|
+
'0x009A': ['FD', '1-n', 'TomotherapeuticLeafInitialClosedDurations']
|
|
12117
|
+
},
|
|
10970
12118
|
'0x4000': {
|
|
10971
12119
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
10972
12120
|
'0x0010': ['LT', '1', 'Arbitrary'],
|
|
@@ -11040,7 +12188,7 @@ dwv.dicom.dictionary = {
|
|
|
11040
12188
|
'0x1026': ['DT', '1', 'RouteSegmentEndTime'],
|
|
11041
12189
|
'0x1027': ['CS', '1', 'TDRType'],
|
|
11042
12190
|
'0x1028': ['CS', '1', 'InternationalRouteSegment'],
|
|
11043
|
-
'0x1029': ['LO', '1-n', '
|
|
12191
|
+
'0x1029': ['LO', '1-n', 'ThreatDetectionAlgorithmAndVersion'],
|
|
11044
12192
|
'0x102A': ['SH', '1', 'AssignedLocation'],
|
|
11045
12193
|
'0x102B': ['DT', '1', 'AlarmDecisionTime'],
|
|
11046
12194
|
'0x1031': ['CS', '1', 'AlarmDecision'],
|
|
@@ -11188,8 +12336,18 @@ dwv.dicom.dictionary = {
|
|
|
11188
12336
|
'0x3000': ['ox', '1', 'OverlayData'],
|
|
11189
12337
|
'0x4000': ['LT', '1', 'OverlayComments']
|
|
11190
12338
|
},
|
|
12339
|
+
'0x7F00': {
|
|
12340
|
+
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
12341
|
+
'0x0010': ['ox', '1', 'VariablePixelData'],
|
|
12342
|
+
'0x0011': ['US', '1', 'VariableNextDataGroup'],
|
|
12343
|
+
'0x0020': ['OW', '1', 'VariableCoefficientsSDVN'],
|
|
12344
|
+
'0x0030': ['OW', '1', 'VariableCoefficientsSDHN'],
|
|
12345
|
+
'0x0040': ['OW', '1', 'VariableCoefficientsSDDN']
|
|
12346
|
+
},
|
|
11191
12347
|
'0x7FE0': {
|
|
11192
12348
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
12349
|
+
'0x0001': ['OV', '1', 'ExtendedOffsetTable'],
|
|
12350
|
+
'0x0002': ['OV', '1', 'ExtendedOffsetTableLengths'],
|
|
11193
12351
|
'0x0008': ['OF', '1', 'FloatPixelData'],
|
|
11194
12352
|
'0x0009': ['OD', '1', 'DoubleFloatPixelData'],
|
|
11195
12353
|
'0x0010': ['ox', '1', 'PixelData'],
|
|
@@ -11197,14 +12355,6 @@ dwv.dicom.dictionary = {
|
|
|
11197
12355
|
'0x0030': ['OW', '1', 'CoefficientsSDHN'],
|
|
11198
12356
|
'0x0040': ['OW', '1', 'CoefficientsSDDN']
|
|
11199
12357
|
},
|
|
11200
|
-
'0x7F00': {
|
|
11201
|
-
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
11202
|
-
'0x0010': ['ox', '1', 'VariablePixelData'],
|
|
11203
|
-
'0x0011': ['US', '1', 'VariableNextDataGroup'],
|
|
11204
|
-
'0x0020': ['OW', '1', 'VariableCoefficientsSDVN'],
|
|
11205
|
-
'0x0030': ['OW', '1', 'VariableCoefficientsSDHN'],
|
|
11206
|
-
'0x0040': ['OW', '1', 'VariableCoefficientsSDDN']
|
|
11207
|
-
},
|
|
11208
12358
|
'0xFFFA': {
|
|
11209
12359
|
'0x0000': ['UL', '1', 'GenericGroupLength'],
|
|
11210
12360
|
'0xFFFA': ['SQ', '1', 'DigitalSignaturesSequence']
|
|
@@ -11298,6 +12448,59 @@ dwv.dicom.TagGroups = {
|
|
|
11298
12448
|
xFFFF: 'Unknown'
|
|
11299
12449
|
};
|
|
11300
12450
|
|
|
12451
|
+
// Value Representation (VR) with 32bit Value Length (VL)
|
|
12452
|
+
// Added locally used 'ox'
|
|
12453
|
+
// see http://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/chapter_7.html#table_7.1-1
|
|
12454
|
+
dwv.dicom.vr32bitVL = [
|
|
12455
|
+
'OB', 'OD', 'OF', 'OL', 'OV', 'OW', 'SQ', 'SV', 'UC', 'UN', 'UR', 'UT', 'UV', 'ox'
|
|
12456
|
+
];
|
|
12457
|
+
|
|
12458
|
+
// String VR with extended or replaced default character repertoire defined in
|
|
12459
|
+
// Specific Character Set (0008,0005)
|
|
12460
|
+
// see https://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/chapter_6.html#sect_6.1.2.2
|
|
12461
|
+
dwv.dicom.charSetString = [
|
|
12462
|
+
'SH', 'LO', 'UC', 'ST', 'LT', 'UT', 'PN'
|
|
12463
|
+
];
|
|
12464
|
+
|
|
12465
|
+
// VR types
|
|
12466
|
+
// see https://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/sect_6.2.html#table_6.2-1
|
|
12467
|
+
dwv.dicom.vrTypes = {
|
|
12468
|
+
AE: 'string',
|
|
12469
|
+
AS: 'string',
|
|
12470
|
+
AT: undefined,
|
|
12471
|
+
CS: 'string',
|
|
12472
|
+
DA: 'string',
|
|
12473
|
+
DS: 'string',
|
|
12474
|
+
DT: 'string',
|
|
12475
|
+
FL: 'Float32',
|
|
12476
|
+
FD: 'Float64',
|
|
12477
|
+
IS: 'string',
|
|
12478
|
+
LO: 'string',
|
|
12479
|
+
LT: 'string',
|
|
12480
|
+
OB: 'Uint8',
|
|
12481
|
+
OD: 'Uint64',
|
|
12482
|
+
OF: 'Uint32',
|
|
12483
|
+
OL: 'Uint32',
|
|
12484
|
+
OV: 'Uint64',
|
|
12485
|
+
OW: 'Uint16',
|
|
12486
|
+
PN: 'string',
|
|
12487
|
+
SH: 'string',
|
|
12488
|
+
SL: 'Int32',
|
|
12489
|
+
SQ: undefined,
|
|
12490
|
+
SS: 'Int16',
|
|
12491
|
+
ST: 'string',
|
|
12492
|
+
SV: 'Int64',
|
|
12493
|
+
TM: 'string',
|
|
12494
|
+
UC: 'string',
|
|
12495
|
+
UI: 'string',
|
|
12496
|
+
UL: 'Uint32',
|
|
12497
|
+
UN: 'Uint8',
|
|
12498
|
+
UR: 'string',
|
|
12499
|
+
US: 'Uint16',
|
|
12500
|
+
UT: 'string',
|
|
12501
|
+
UV: 'Uint64'
|
|
12502
|
+
};
|
|
12503
|
+
|
|
11301
12504
|
// namespaces
|
|
11302
12505
|
var dwv = dwv || {};
|
|
11303
12506
|
/** @namespace */
|
|
@@ -17280,42 +18483,22 @@ dwv.image.ImageFactory.prototype.create = function (
|
|
|
17280
18483
|
image.setRescaleSlopeAndIntercept(rsi);
|
|
17281
18484
|
|
|
17282
18485
|
// meta information
|
|
17283
|
-
var meta = {
|
|
17284
|
-
|
|
17285
|
-
|
|
17286
|
-
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
var studyInstanceUID = dicomElements.getFromKey('x0020000D');
|
|
17293
|
-
if (studyInstanceUID) {
|
|
17294
|
-
meta.StudyInstanceUID = studyInstanceUID;
|
|
17295
|
-
}
|
|
17296
|
-
// SeriesInstanceUID
|
|
17297
|
-
var seriesInstanceUID = dicomElements.getFromKey('x0020000E');
|
|
17298
|
-
if (seriesInstanceUID) {
|
|
17299
|
-
meta.SeriesInstanceUID = seriesInstanceUID;
|
|
17300
|
-
}
|
|
17301
|
-
// BitsStored
|
|
17302
|
-
var bitsStored = dicomElements.getFromKey('x00280101');
|
|
17303
|
-
if (bitsStored) {
|
|
17304
|
-
meta.BitsStored = parseInt(bitsStored, 10);
|
|
17305
|
-
}
|
|
18486
|
+
var meta = {
|
|
18487
|
+
numberOfFiles: numberOfFiles,
|
|
18488
|
+
Modality: dicomElements.getFromKey('x00080060'),
|
|
18489
|
+
SOPClassUID: dicomElements.getFromKey('x00080016'),
|
|
18490
|
+
StudyInstanceUID: dicomElements.getFromKey('x0020000D'),
|
|
18491
|
+
SeriesInstanceUID: dicomElements.getFromKey('x0020000E'),
|
|
18492
|
+
BitsStored: dicomElements.getFromKey('x00280101'),
|
|
18493
|
+
PixelRepresentation: dicomElements.getFromKey('x00280103')
|
|
18494
|
+
};
|
|
17306
18495
|
// PixelRepresentation -> is signed
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
|
|
17311
|
-
|
|
17312
|
-
// PatientPosition
|
|
17313
|
-
var patientPosition = dicomElements.getFromKey('x00185100');
|
|
17314
|
-
meta.PatientPosition = false;
|
|
17315
|
-
if (patientPosition) {
|
|
17316
|
-
meta.PatientPosition = patientPosition;
|
|
18496
|
+
meta.IsSigned = meta.PixelRepresentation === 1;
|
|
18497
|
+
// FrameOfReferenceUID (optional)
|
|
18498
|
+
var frameOfReferenceUID = dicomElements.getFromKey('x00200052');
|
|
18499
|
+
if (frameOfReferenceUID) {
|
|
18500
|
+
meta.FrameOfReferenceUID = frameOfReferenceUID;
|
|
17317
18501
|
}
|
|
17318
|
-
|
|
17319
18502
|
// window level presets
|
|
17320
18503
|
var windowPresets = {};
|
|
17321
18504
|
var windowCenter = dicomElements.getFromKey('x00281050', true);
|
|
@@ -18591,19 +19774,24 @@ dwv.dicom.getSegment = function (element) {
|
|
|
18591
19774
|
segment.displayValue = rgb;
|
|
18592
19775
|
}
|
|
18593
19776
|
// Segmented Property Category Code Sequence (type1, only one)
|
|
18594
|
-
if (element.x00620003) {
|
|
19777
|
+
if (typeof element.x00620003 !== 'undefined') {
|
|
18595
19778
|
segment.propertyCategoryCode =
|
|
18596
19779
|
dwv.dicom.getCode(element.x00620003.value[0]);
|
|
18597
19780
|
} else {
|
|
18598
19781
|
throw Error('Missing Segmented Property Category Code Sequence.');
|
|
18599
19782
|
}
|
|
18600
19783
|
// Segmented Property Type Code Sequence (type1)
|
|
18601
|
-
if (element.x0062000F) {
|
|
19784
|
+
if (typeof element.x0062000F !== 'undefined') {
|
|
18602
19785
|
segment.propertyTypeCode =
|
|
18603
19786
|
dwv.dicom.getCode(element.x0062000F.value[0]);
|
|
18604
19787
|
} else {
|
|
18605
19788
|
throw Error('Missing Segmented Property Type Code Sequence.');
|
|
18606
19789
|
}
|
|
19790
|
+
// tracking Id and UID (type1C)
|
|
19791
|
+
if (typeof element.x00620020 !== 'undefined') {
|
|
19792
|
+
segment.trackingId = element.x00620020.value[0];
|
|
19793
|
+
segment.trackingUid = element.x00620021.value[0];
|
|
19794
|
+
}
|
|
18607
19795
|
|
|
18608
19796
|
return segment;
|
|
18609
19797
|
};
|
|
@@ -19047,7 +20235,7 @@ dwv.image.MaskFactory.prototype.create = function (
|
|
|
19047
20235
|
if (storeAsRGB) {
|
|
19048
20236
|
image.setPhotometricInterpretation('RGB');
|
|
19049
20237
|
}
|
|
19050
|
-
//
|
|
20238
|
+
// meta information
|
|
19051
20239
|
var meta = {
|
|
19052
20240
|
Modality: 'SEG',
|
|
19053
20241
|
SegmentationType: 'BINARY',
|
|
@@ -19065,9 +20253,16 @@ dwv.image.MaskFactory.prototype.create = function (
|
|
|
19065
20253
|
ImageOrientationPatient: imageOrientationPatient,
|
|
19066
20254
|
custom: {
|
|
19067
20255
|
segments: segments,
|
|
19068
|
-
frameInfos: frameInfos
|
|
20256
|
+
frameInfos: frameInfos,
|
|
20257
|
+
SOPInstanceUID: dicomElements.getFromKey('x00080018')
|
|
19069
20258
|
}
|
|
19070
20259
|
};
|
|
20260
|
+
// FrameOfReferenceUID (optional)
|
|
20261
|
+
var frameOfReferenceUID = dicomElements.getFromKey('x00200052');
|
|
20262
|
+
if (frameOfReferenceUID) {
|
|
20263
|
+
meta.FrameOfReferenceUID = frameOfReferenceUID;
|
|
20264
|
+
}
|
|
20265
|
+
|
|
19071
20266
|
image.setMeta(meta);
|
|
19072
20267
|
|
|
19073
20268
|
return image;
|
|
@@ -23089,7 +24284,7 @@ var Konva = Konva || {};
|
|
|
23089
24284
|
* Saves: data url/path, display info.
|
|
23090
24285
|
*
|
|
23091
24286
|
* History:
|
|
23092
|
-
* - v0.5 (dwv 0.30.0,
|
|
24287
|
+
* - v0.5 (dwv 0.30.0, 12/2021)
|
|
23093
24288
|
* - store position as array
|
|
23094
24289
|
* - new draw position group key
|
|
23095
24290
|
* - v0.4 (dwv 0.29.0, 06/2021)
|
|
@@ -23123,7 +24318,7 @@ dwv.io.State = function () {
|
|
|
23123
24318
|
var viewController =
|
|
23124
24319
|
layerGroup.getActiveViewLayer().getViewController();
|
|
23125
24320
|
var drawLayer = layerGroup.getActiveDrawLayer();
|
|
23126
|
-
var position = viewController.
|
|
24321
|
+
var position = viewController.getCurrentIndex();
|
|
23127
24322
|
// return a JSON string
|
|
23128
24323
|
return JSON.stringify({
|
|
23129
24324
|
version: '0.5',
|
|
@@ -23174,7 +24369,8 @@ dwv.io.State = function () {
|
|
|
23174
24369
|
// display
|
|
23175
24370
|
viewController.setWindowLevel(
|
|
23176
24371
|
data['window-center'], data['window-width']);
|
|
23177
|
-
|
|
24372
|
+
// position is index...
|
|
24373
|
+
viewController.setCurrentIndex(new dwv.math.Index(data.position));
|
|
23178
24374
|
// apply saved scale on top of current base one
|
|
23179
24375
|
var baseScale = app.getActiveLayerGroup().getBaseScale();
|
|
23180
24376
|
var scale = null;
|
|
@@ -27752,1011 +28948,6 @@ dwv.tool.draw.ArrowFactory.prototype.update = function (
|
|
|
27752
28948
|
klabel.position(textPos);
|
|
27753
28949
|
};
|
|
27754
28950
|
|
|
27755
|
-
// namespaces
|
|
27756
|
-
// import * as DicomWebViewer from 'dwv';
|
|
27757
|
-
// export const dwv = DicomWebViewer || {};
|
|
27758
|
-
|
|
27759
|
-
|
|
27760
|
-
// -----------------------------------------------------------------------------
|
|
27761
|
-
// -----------------------------------------------------------------------------
|
|
27762
|
-
// Save methods
|
|
27763
|
-
// -----------------------------------------------------------------------------
|
|
27764
|
-
// -----------------------------------------------------------------------------
|
|
27765
|
-
|
|
27766
|
-
/**
|
|
27767
|
-
* Pad an input string with a '0' to form a 2 digit one.
|
|
27768
|
-
*
|
|
27769
|
-
* @param {string} str The string to pad.
|
|
27770
|
-
* @returns {string} The padded string.
|
|
27771
|
-
*/
|
|
27772
|
-
function padZeroTwoDigit(str) {
|
|
27773
|
-
return ('0' + str).slice(-2);
|
|
27774
|
-
}
|
|
27775
|
-
|
|
27776
|
-
/**
|
|
27777
|
-
* Get a DICOM formated date.
|
|
27778
|
-
*
|
|
27779
|
-
* @param {Date} date The date to format.
|
|
27780
|
-
* @returns {string} The formated date.
|
|
27781
|
-
*/
|
|
27782
|
-
dwv.dicom.getFormatedDate = function (date) {
|
|
27783
|
-
// YYYYMMDD
|
|
27784
|
-
return date.getFullYear().toString() +
|
|
27785
|
-
padZeroTwoDigit((date.getMonth() + 1).toString()) +
|
|
27786
|
-
padZeroTwoDigit(date.getDate().toString());
|
|
27787
|
-
};
|
|
27788
|
-
|
|
27789
|
-
/**
|
|
27790
|
-
* Get a DICOM formated time.
|
|
27791
|
-
*
|
|
27792
|
-
* @param {Date} date The date to format.
|
|
27793
|
-
* @returns {string} The formated time.
|
|
27794
|
-
*/
|
|
27795
|
-
dwv.dicom.getFormatedTime = function (date) {
|
|
27796
|
-
// HHMMSS
|
|
27797
|
-
return padZeroTwoDigit(date.getHours().toString()) +
|
|
27798
|
-
padZeroTwoDigit(date.getMinutes().toString()) +
|
|
27799
|
-
padZeroTwoDigit(date.getSeconds().toString());
|
|
27800
|
-
};
|
|
27801
|
-
|
|
27802
|
-
/**
|
|
27803
|
-
* Get a dicom element from a code object.
|
|
27804
|
-
*
|
|
27805
|
-
* @param {object} code The code object.
|
|
27806
|
-
* @returns {object} The dicom element.
|
|
27807
|
-
*/
|
|
27808
|
-
dwv.dicom.getCodeElement = function (code) {
|
|
27809
|
-
var codeElement = {
|
|
27810
|
-
CodeMeaning: code.meaning
|
|
27811
|
-
};
|
|
27812
|
-
if (typeof code.value !== 'undefined') {
|
|
27813
|
-
codeElement.CodeValue = code.value;
|
|
27814
|
-
} else if (typeof code.longValue !== 'undefined') {
|
|
27815
|
-
codeElement.LongCodeValue = code.longValue;
|
|
27816
|
-
} else if (typeof code.urnValue !== 'undefined') {
|
|
27817
|
-
codeElement.URNCodeValue = code.longVaurnValuelue;
|
|
27818
|
-
}
|
|
27819
|
-
if (typeof code.schemeDesignator !== 'undefined') {
|
|
27820
|
-
codeElement.CodingSchemeDesignator = code.schemeDesignator;
|
|
27821
|
-
}
|
|
27822
|
-
return codeElement;
|
|
27823
|
-
};
|
|
27824
|
-
|
|
27825
|
-
/**
|
|
27826
|
-
* Get a dicom element from a segment object.
|
|
27827
|
-
*
|
|
27828
|
-
* @param {object} segment The segment object.
|
|
27829
|
-
* @returns {object} The dicom element.
|
|
27830
|
-
*/
|
|
27831
|
-
dwv.dicom.getSegmentElement = function (segment) {
|
|
27832
|
-
var algoType = segment.algorithmType;
|
|
27833
|
-
if (typeof algoType === 'undefined') {
|
|
27834
|
-
algoType = 'MANUAL';
|
|
27835
|
-
}
|
|
27836
|
-
var segmentElement = {
|
|
27837
|
-
SegmentNumber: segment.number,
|
|
27838
|
-
SegmentLabel: segment.label,
|
|
27839
|
-
SegmentAlgorithmType: algoType,
|
|
27840
|
-
SegmentedPropertyCategoryCodeSequence: {
|
|
27841
|
-
item0: dwv.dicom.getCodeElement(segment.propertyCategoryCode)
|
|
27842
|
-
},
|
|
27843
|
-
SegmentedPropertyTypeCodeSequence: {
|
|
27844
|
-
item0: dwv.dicom.getCodeElement(segment.propertyTypeCode)
|
|
27845
|
-
}
|
|
27846
|
-
};
|
|
27847
|
-
// display value
|
|
27848
|
-
if (typeof segment.displayValue.r !== 'undefined' &&
|
|
27849
|
-
typeof segment.displayValue.g !== 'undefined' &&
|
|
27850
|
-
typeof segment.displayValue.b !== 'undefined') {
|
|
27851
|
-
var cieLab = dwv.utils.labToUintLab(
|
|
27852
|
-
dwv.utils.srgbToCielab(segment.displayValue));
|
|
27853
|
-
segmentElement.RecommendedDisplayCIELabValue = new Uint16Array([
|
|
27854
|
-
Math.round(cieLab.l),
|
|
27855
|
-
Math.round(cieLab.a),
|
|
27856
|
-
Math.round(cieLab.b)
|
|
27857
|
-
]);
|
|
27858
|
-
} else {
|
|
27859
|
-
segmentElement.RecommendedDisplayGrayscaleValue = segment.displayValue;
|
|
27860
|
-
}
|
|
27861
|
-
// algo name
|
|
27862
|
-
if (algoType !== 'MANUAL' && typeof segment.algorithmName !== 'undefined') {
|
|
27863
|
-
segmentElement.SegmentAlgorithmName = segment.algorithmName;
|
|
27864
|
-
}
|
|
27865
|
-
return segmentElement;
|
|
27866
|
-
};
|
|
27867
|
-
|
|
27868
|
-
/**
|
|
27869
|
-
* Get a dicom element from a dimension index object.
|
|
27870
|
-
*
|
|
27871
|
-
* @param {object} dimensionIndex The dimension index object.
|
|
27872
|
-
* @returns {object} The dicom element.
|
|
27873
|
-
*/
|
|
27874
|
-
dwv.dicom.getDimensionIndexElement = function (dimensionIndex) {
|
|
27875
|
-
var indexElement = {
|
|
27876
|
-
DimensionOrganizationUID: dimensionIndex.organization,
|
|
27877
|
-
DimensionIndexPointer: [dimensionIndex.pointer]
|
|
27878
|
-
};
|
|
27879
|
-
if (typeof dimensionIndex.label !== 'undefined') {
|
|
27880
|
-
indexElement.DimensionDescriptionLabel = dimensionIndex.label;
|
|
27881
|
-
}
|
|
27882
|
-
return indexElement;
|
|
27883
|
-
};
|
|
27884
|
-
|
|
27885
|
-
/**
|
|
27886
|
-
* Get a dicom element from a frame information object.
|
|
27887
|
-
*
|
|
27888
|
-
* @param {object} frameInfo The frame information object.
|
|
27889
|
-
* @returns {object} The dicom element.
|
|
27890
|
-
*/
|
|
27891
|
-
dwv.dicom.getSegmentFrameInfoElement = function (frameInfo) {
|
|
27892
|
-
return {
|
|
27893
|
-
FrameContentSequence: {
|
|
27894
|
-
item0: {
|
|
27895
|
-
DimensionIndexValues: frameInfo.dimIndex
|
|
27896
|
-
}
|
|
27897
|
-
},
|
|
27898
|
-
PlanePositionSequence: {
|
|
27899
|
-
item0: {
|
|
27900
|
-
ImagePositionPatient: frameInfo.imagePosPat
|
|
27901
|
-
}
|
|
27902
|
-
},
|
|
27903
|
-
SegmentIdentificationSequence: {
|
|
27904
|
-
item0: {
|
|
27905
|
-
ReferencedSegmentNumber: frameInfo.refSegmentNumber.toString()
|
|
27906
|
-
}
|
|
27907
|
-
}
|
|
27908
|
-
};
|
|
27909
|
-
};
|
|
27910
|
-
|
|
27911
|
-
/**
|
|
27912
|
-
* Get a dicom element from a spacing object.
|
|
27913
|
-
*
|
|
27914
|
-
* @param {object} spacing The spacing object.
|
|
27915
|
-
* @returns {object} The dicom element.
|
|
27916
|
-
*/
|
|
27917
|
-
dwv.dicom.getMeasureSequenceElement = function (spacing) {
|
|
27918
|
-
return {
|
|
27919
|
-
item0: {
|
|
27920
|
-
PixelSpacing: [spacing.get(1), spacing.get(0)],
|
|
27921
|
-
SpacingBetweenSlices: spacing.get(2).toString()
|
|
27922
|
-
}
|
|
27923
|
-
};
|
|
27924
|
-
};
|
|
27925
|
-
|
|
27926
|
-
/**
|
|
27927
|
-
* Convert a mask image into a DICOM segmentation object.
|
|
27928
|
-
*
|
|
27929
|
-
* @param {dwv.image.Image} image The mask image.
|
|
27930
|
-
* @param {Array} segments The mask segments.
|
|
27931
|
-
* @returns {object} A list of dicom elements.
|
|
27932
|
-
*/
|
|
27933
|
-
dwv.image.MaskFactory.prototype.toDicom = function (image, segments) {
|
|
27934
|
-
// use image segments if not provided as input
|
|
27935
|
-
if (typeof segments === 'undefined') {
|
|
27936
|
-
segments = image.getMeta().segments;
|
|
27937
|
-
}
|
|
27938
|
-
|
|
27939
|
-
var geometry = image.getGeometry();
|
|
27940
|
-
var size = geometry.getSize();
|
|
27941
|
-
var spacing = geometry.getSpacing();
|
|
27942
|
-
var numberOfComponents = image.getNumberOfComponents();
|
|
27943
|
-
var isRGB = numberOfComponents === 3;
|
|
27944
|
-
var orientationPatient = image.getMeta().ImageOrientationPatient;
|
|
27945
|
-
|
|
27946
|
-
var now = new Date();
|
|
27947
|
-
|
|
27948
|
-
// base tags
|
|
27949
|
-
var tags = {
|
|
27950
|
-
TransferSyntaxUID: '1.2.840.10008.1.2.1',
|
|
27951
|
-
MediaStorageSOPClassUID: '1.2.840.10008.5.1.4.1.1.66.4',
|
|
27952
|
-
SOPClassUID: '1.2.840.10008.5.1.4.1.1.66.4',
|
|
27953
|
-
Modality: 'SEG',
|
|
27954
|
-
SegmentationType: 'BINARY',
|
|
27955
|
-
DimensionOrganizationType: '3D',
|
|
27956
|
-
PhotometricInterpretation: 'MONOCHROME2',
|
|
27957
|
-
ImageType: ['DERIVED', 'PRIMARY'],
|
|
27958
|
-
SamplesPerPixel: 1,
|
|
27959
|
-
PixelRepresentation: 0,
|
|
27960
|
-
BitsAllocated: 1,
|
|
27961
|
-
BitsStored: 1,
|
|
27962
|
-
HighBit: 0,
|
|
27963
|
-
PatientName: image.getMeta().PatientName,
|
|
27964
|
-
PatientID: image.getMeta().PatientID,
|
|
27965
|
-
PatientBirthDate: image.getMeta().PatientBirthDate,
|
|
27966
|
-
PatientSex: image.getMeta().PatientSex,
|
|
27967
|
-
ContentDate: dwv.dicom.getFormatedDate(now),
|
|
27968
|
-
ContentTime: dwv.dicom.getFormatedTime(now),
|
|
27969
|
-
ContentLabel: 'QUIBIM edited prostate segmentation',
|
|
27970
|
-
StudyInstanceUID: image.getMeta().StudyInstanceUID,
|
|
27971
|
-
Rows: size.get(1),
|
|
27972
|
-
Columns: size.get(0)
|
|
27973
|
-
};
|
|
27974
|
-
|
|
27975
|
-
// TODO: update numbers
|
|
27976
|
-
tags.SeriesInstanceUID = image.getMeta().SeriesInstanceUID;
|
|
27977
|
-
tags.SeriesNumber = image.getMeta().SeriesNumber;
|
|
27978
|
-
|
|
27979
|
-
// TODO: get from original file
|
|
27980
|
-
tags.LossyImageCompression = '00';
|
|
27981
|
-
tags.InstanceNumber = 0;
|
|
27982
|
-
|
|
27983
|
-
// use existing dimension organization if present
|
|
27984
|
-
if (typeof image.getMeta().DimensionOrganizations !== 'undefined') {
|
|
27985
|
-
var orgs = image.getMeta().DimensionOrganizations;
|
|
27986
|
-
// should be only one
|
|
27987
|
-
tags.DimensionOrganizationSequence = {
|
|
27988
|
-
item0: {
|
|
27989
|
-
DimensionOrganizationUID: orgs[0]
|
|
27990
|
-
}
|
|
27991
|
-
};
|
|
27992
|
-
}
|
|
27993
|
-
// use existing dimension organization if present
|
|
27994
|
-
if (typeof image.getMeta().DimensionIndices !== 'undefined') {
|
|
27995
|
-
var indices = image.getMeta().DimensionIndices;
|
|
27996
|
-
var indicesTag = {};
|
|
27997
|
-
for (var m = 0; m < indices.length; ++m) {
|
|
27998
|
-
indicesTag['item' + m] = dwv.dicom.getDimensionIndexElement(indices[m]);
|
|
27999
|
-
}
|
|
28000
|
-
tags.DimensionIndexSequence = indicesTag;
|
|
28001
|
-
}
|
|
28002
|
-
|
|
28003
|
-
// segments
|
|
28004
|
-
var segmentsTag = {};
|
|
28005
|
-
for (var l = 0; l < segments.length; ++l) {
|
|
28006
|
-
segmentsTag['item' + l] = dwv.dicom.getSegmentElement(segments[l]);
|
|
28007
|
-
}
|
|
28008
|
-
tags.SegmentSequence = segmentsTag;
|
|
28009
|
-
|
|
28010
|
-
// Shared Functional Groups Sequence
|
|
28011
|
-
tags.SharedFunctionalGroupsSequence = {
|
|
28012
|
-
item0: {
|
|
28013
|
-
PlaneOrientationSequence: {
|
|
28014
|
-
item0: {
|
|
28015
|
-
ImageOrientationPatient: orientationPatient
|
|
28016
|
-
}
|
|
28017
|
-
},
|
|
28018
|
-
PixelMeasuresSequence: dwv.dicom.getMeasureSequenceElement(spacing)
|
|
28019
|
-
}
|
|
28020
|
-
};
|
|
28021
|
-
|
|
28022
|
-
var getPixelValue;
|
|
28023
|
-
var equalValues;
|
|
28024
|
-
if (isRGB) {
|
|
28025
|
-
getPixelValue = function (inputOffset) {
|
|
28026
|
-
return {
|
|
28027
|
-
r: image.getValueAtOffset(inputOffset, 0),
|
|
28028
|
-
g: image.getValueAtOffset(inputOffset + 1, 0),
|
|
28029
|
-
b: image.getValueAtOffset(inputOffset + 2, 0)
|
|
28030
|
-
};
|
|
28031
|
-
};
|
|
28032
|
-
equalValues = function (a, b) {
|
|
28033
|
-
return a.r === b.r &&
|
|
28034
|
-
a.g === b.g &&
|
|
28035
|
-
a.b === b.b;
|
|
28036
|
-
};
|
|
28037
|
-
} else {
|
|
28038
|
-
getPixelValue = function (inputOffset) {
|
|
28039
|
-
return image.getValueAtOffset(inputOffset, 0);
|
|
28040
|
-
};
|
|
28041
|
-
equalValues = function (a, b) {
|
|
28042
|
-
return a === b;
|
|
28043
|
-
};
|
|
28044
|
-
}
|
|
28045
|
-
|
|
28046
|
-
// image buffer to multi frame
|
|
28047
|
-
var sliceSize = size.getDimSize(2);
|
|
28048
|
-
var roiBuffers = {};
|
|
28049
|
-
for (var k = 0; k < size.get(2); ++k) {
|
|
28050
|
-
var sliceOffset = k * sliceSize;
|
|
28051
|
-
// initialise buffers
|
|
28052
|
-
var buffers = {};
|
|
28053
|
-
// search pixels
|
|
28054
|
-
for (var o = 0; o < sliceSize; ++o) {
|
|
28055
|
-
var inputOffset = (sliceOffset + o) * numberOfComponents;
|
|
28056
|
-
var pixelValue = getPixelValue(inputOffset);
|
|
28057
|
-
for (var n2 = 0; n2 < segments.length; ++n2) {
|
|
28058
|
-
var number2 = segments[n2].number - 1;
|
|
28059
|
-
if (equalValues(pixelValue, segments[n2].displayValue)) {
|
|
28060
|
-
if (typeof buffers[number2] === 'undefined') {
|
|
28061
|
-
buffers[number2] = new Uint8Array(sliceSize);
|
|
28062
|
-
}
|
|
28063
|
-
buffers[number2][o] = 1;
|
|
28064
|
-
}
|
|
28065
|
-
}
|
|
28066
|
-
}
|
|
28067
|
-
|
|
28068
|
-
// store slice buffers
|
|
28069
|
-
var keys0 = Object.keys(buffers);
|
|
28070
|
-
for (var k0 = 0; k0 < keys0.length; ++k0) {
|
|
28071
|
-
var key0 = keys0[k0];
|
|
28072
|
-
if (typeof roiBuffers[key0] === 'undefined') {
|
|
28073
|
-
roiBuffers[key0] = {};
|
|
28074
|
-
}
|
|
28075
|
-
// ordering by slice index (follows posPat)
|
|
28076
|
-
roiBuffers[key0][k] = buffers[key0];
|
|
28077
|
-
}
|
|
28078
|
-
}
|
|
28079
|
-
|
|
28080
|
-
var frameInfos = [];
|
|
28081
|
-
|
|
28082
|
-
// flatten buffer array
|
|
28083
|
-
var finalBuffers = [];
|
|
28084
|
-
for (var n4 = 0; n4 < segments.length; ++n4) {
|
|
28085
|
-
var number40 = segments[n4].number;
|
|
28086
|
-
var number4 = number40 - 1;
|
|
28087
|
-
var keys1 = Object.keys(roiBuffers[number4]);
|
|
28088
|
-
// revert slice order
|
|
28089
|
-
for (var k1 = keys1.length - 1; k1 >= 0; --k1) {
|
|
28090
|
-
var key1 = keys1[k1];
|
|
28091
|
-
finalBuffers.push(roiBuffers[number4][key1]);
|
|
28092
|
-
// frame info
|
|
28093
|
-
var posPat = image.getGeometry().getOrigins()[key1];
|
|
28094
|
-
frameInfos.push({
|
|
28095
|
-
dimIndex: [number40, keys1.length - k1],
|
|
28096
|
-
imagePosPat: [posPat.getX(), posPat.getY(), posPat.getZ()],
|
|
28097
|
-
refSegmentNumber: number40
|
|
28098
|
-
});
|
|
28099
|
-
}
|
|
28100
|
-
}
|
|
28101
|
-
|
|
28102
|
-
tags.NumberOfFrames = finalBuffers.length.toString();
|
|
28103
|
-
|
|
28104
|
-
// frame infos
|
|
28105
|
-
var frameInfosTag = {};
|
|
28106
|
-
for (var f = 0; f < frameInfos.length; ++f) {
|
|
28107
|
-
frameInfosTag['item' + f] =
|
|
28108
|
-
dwv.dicom.getSegmentFrameInfoElement(frameInfos[f]);
|
|
28109
|
-
}
|
|
28110
|
-
tags.PerFrameFunctionalGroupsSequence = frameInfosTag;
|
|
28111
|
-
|
|
28112
|
-
// convert JSON to DICOM element object
|
|
28113
|
-
var res = dwv.dicom.getElementsFromJSONTags(tags);
|
|
28114
|
-
var dicomElements = res.elements;
|
|
28115
|
-
|
|
28116
|
-
// pixel value length: divide by 8 to trigger binary write
|
|
28117
|
-
var pixVl = finalBuffers.length * sliceSize / 8;
|
|
28118
|
-
dicomElements.x7FE00010 = {
|
|
28119
|
-
tag: {group: '0x7FE0', element: '0x0010', name: 'x7FE00010'},
|
|
28120
|
-
vr: 'OB',
|
|
28121
|
-
vl: pixVl,
|
|
28122
|
-
value: finalBuffers,
|
|
28123
|
-
startOffset: res.offset,
|
|
28124
|
-
endOffset: res.offset + pixVl
|
|
28125
|
-
};
|
|
28126
|
-
|
|
28127
|
-
return dicomElements;
|
|
28128
|
-
};
|
|
28129
|
-
|
|
28130
|
-
// -----------------------------------------------------------------------------
|
|
28131
|
-
// -----------------------------------------------------------------------------
|
|
28132
|
-
// -----------------------------------------------------------------------------
|
|
28133
|
-
// -----------------------------------------------------------------------------
|
|
28134
|
-
|
|
28135
|
-
// namespaces
|
|
28136
|
-
// var dwv = dwv || {};
|
|
28137
|
-
dwv.tool = dwv.tool || {};
|
|
28138
|
-
|
|
28139
|
-
/**
|
|
28140
|
-
* Get the indices that form a circle.
|
|
28141
|
-
* Can be an ellipse to adapt to view.
|
|
28142
|
-
*
|
|
28143
|
-
* @param {dwv.image.Geometry} geometry The geometry.
|
|
28144
|
-
* @param {dwv.math.Point3D} position The circle center.
|
|
28145
|
-
* @param {Array} radiuses The circle radiuses.
|
|
28146
|
-
* @param {Array} dims The 2 dimensions.
|
|
28147
|
-
* @returns {Array} The indices of the circle.
|
|
28148
|
-
*/
|
|
28149
|
-
dwv.tool.getCircleIndices = function (geometry, position, radiuses, dims) {
|
|
28150
|
-
const centerIndex = geometry.worldToIndex(position);
|
|
28151
|
-
return dwv.math.getEllipseIndices(centerIndex, radiuses, dims);
|
|
28152
|
-
};
|
|
28153
|
-
|
|
28154
|
-
/**
|
|
28155
|
-
* Get the data origins that correspond to input indices.
|
|
28156
|
-
*
|
|
28157
|
-
* @param {dwv.image.Geometry} geometry The geometry.
|
|
28158
|
-
* @param {Array} allOrigins All orign array.
|
|
28159
|
-
* @param {Array} indices An array of dwv.math.Index.
|
|
28160
|
-
* @returns {Array} An array of origins (dwv.math.Point3D).
|
|
28161
|
-
*/
|
|
28162
|
-
dwv.tool.getOriginsFromIndices = function (geometry, allOrigins, indices) {
|
|
28163
|
-
const sorted = indices.sort(dwv.math.getIndexCompareFunction(2)); //NOSONAR
|
|
28164
|
-
|
|
28165
|
-
const origin0 = geometry.indexToWorld(sorted[0]);
|
|
28166
|
-
const origin1 = geometry.indexToWorld(sorted[sorted.length - 1]);
|
|
28167
|
-
|
|
28168
|
-
const getEqualZ = function (point) {
|
|
28169
|
-
return function equalZ(x) {
|
|
28170
|
-
return x.getZ() === point.get(2);
|
|
28171
|
-
};
|
|
28172
|
-
};
|
|
28173
|
-
|
|
28174
|
-
let iStart = allOrigins.findIndex(getEqualZ(origin0));
|
|
28175
|
-
if (iStart === -1) {
|
|
28176
|
-
iStart = 0;
|
|
28177
|
-
}
|
|
28178
|
-
let iEnd = allOrigins.findIndex(getEqualZ(origin1));
|
|
28179
|
-
if (iEnd === -1) {
|
|
28180
|
-
iEnd = allOrigins.length - 1;
|
|
28181
|
-
}
|
|
28182
|
-
|
|
28183
|
-
return allOrigins.slice(iStart, iEnd + 1);
|
|
28184
|
-
};
|
|
28185
|
-
|
|
28186
|
-
/**
|
|
28187
|
-
* Get the data offsets that correspond to input indices.
|
|
28188
|
-
*
|
|
28189
|
-
* @param {dwv.image.Geometry} geometry The geometry.
|
|
28190
|
-
* @param {Array} indices An array of dwv.math.Index.
|
|
28191
|
-
* @returns {Array} An array of offsets.
|
|
28192
|
-
*/
|
|
28193
|
-
dwv.tool.getOffsetsFromIndices = function (geometry, indices) {
|
|
28194
|
-
const imageSize = geometry.getSize();
|
|
28195
|
-
const offsets = [];
|
|
28196
|
-
for (let i = 0; i < indices.length; ++i) {
|
|
28197
|
-
offsets.push(imageSize.indexToOffset(indices[i]));
|
|
28198
|
-
}
|
|
28199
|
-
return offsets;
|
|
28200
|
-
};
|
|
28201
|
-
|
|
28202
|
-
/**
|
|
28203
|
-
* Brush class.
|
|
28204
|
-
*
|
|
28205
|
-
* @class
|
|
28206
|
-
* @param {dwv.App} app The associated application.
|
|
28207
|
-
*/
|
|
28208
|
-
dwv.tool.Brush = function (app) {
|
|
28209
|
-
/**
|
|
28210
|
-
* Closure to self: to be used by event handlers.
|
|
28211
|
-
*
|
|
28212
|
-
* @private
|
|
28213
|
-
* @type {dwv.tool.Brush}
|
|
28214
|
-
*/
|
|
28215
|
-
const self = this;
|
|
28216
|
-
|
|
28217
|
-
/**
|
|
28218
|
-
* Interaction start flag.
|
|
28219
|
-
*
|
|
28220
|
-
* @type {boolean}
|
|
28221
|
-
*/
|
|
28222
|
-
this.started = false;
|
|
28223
|
-
|
|
28224
|
-
let mask = null;
|
|
28225
|
-
let maskId = null;
|
|
28226
|
-
|
|
28227
|
-
let brushSize = 2;
|
|
28228
|
-
let brushMode = 'add';
|
|
28229
|
-
|
|
28230
|
-
let segments = [
|
|
28231
|
-
{
|
|
28232
|
-
number: 1,
|
|
28233
|
-
label: 'Red',
|
|
28234
|
-
algorithmType: 'MANUAL',
|
|
28235
|
-
displayValue: {r: 255, g: 0, b: 0}
|
|
28236
|
-
},
|
|
28237
|
-
{
|
|
28238
|
-
number: 2,
|
|
28239
|
-
label: 'Green',
|
|
28240
|
-
algorithmType: 'MANUAL',
|
|
28241
|
-
displayValue: {r: 0, g: 255, b: 0}
|
|
28242
|
-
},
|
|
28243
|
-
{
|
|
28244
|
-
number: 3,
|
|
28245
|
-
label: 'Blue',
|
|
28246
|
-
algorithmType: 'MANUAL',
|
|
28247
|
-
displayValue: {r: 0, g: 0, b: 255}
|
|
28248
|
-
}
|
|
28249
|
-
];
|
|
28250
|
-
let selectedSegment = 0;
|
|
28251
|
-
// undefined, 'replace' or 'add'
|
|
28252
|
-
let newSegmentBehaviour = 'replace';
|
|
28253
|
-
|
|
28254
|
-
let uid = 0;
|
|
28255
|
-
|
|
28256
|
-
/**
|
|
28257
|
-
* Get a mask slice.
|
|
28258
|
-
*
|
|
28259
|
-
* @param {object} geometry The mask geometry.
|
|
28260
|
-
* @param {dwv.math.Point3D} origin The slice origin.
|
|
28261
|
-
* @param {object} meta The mask meta.
|
|
28262
|
-
* @returns {dwv.image.Image} The slice.
|
|
28263
|
-
*/
|
|
28264
|
-
function createMaskImage(geometry, origin, meta) {
|
|
28265
|
-
// create data
|
|
28266
|
-
const sizeValues = geometry.getSize().getValues();
|
|
28267
|
-
sizeValues[2] = 1;
|
|
28268
|
-
const maskSize = new dwv.image.Size(sizeValues);
|
|
28269
|
-
const maskGeometry = new dwv.image.Geometry(
|
|
28270
|
-
origin,
|
|
28271
|
-
maskSize,
|
|
28272
|
-
geometry.getSpacing(),
|
|
28273
|
-
geometry.getOrientation());
|
|
28274
|
-
const values = new Uint8Array(maskSize.getDimSize(2) * 3);
|
|
28275
|
-
values.fill(0);
|
|
28276
|
-
++uid;
|
|
28277
|
-
const uids = [uid];
|
|
28278
|
-
const maskSlice = new dwv.image.Image(maskGeometry, values, uids);
|
|
28279
|
-
maskSlice.setMeta(meta);
|
|
28280
|
-
maskSlice.setPhotometricInterpretation('RGB');
|
|
28281
|
-
|
|
28282
|
-
return maskSlice;
|
|
28283
|
-
}
|
|
28284
|
-
|
|
28285
|
-
/**
|
|
28286
|
-
* Add slices to mask if needed.
|
|
28287
|
-
*
|
|
28288
|
-
* @param {dwv.image.Geometry} baseGeometry The base geometry.
|
|
28289
|
-
* @param {Array} allOrigins All orign array.
|
|
28290
|
-
* @param {dwv.image.Geometry} maskGeometry The mask geometry.
|
|
28291
|
-
* @param {dwv.math.Point3D} position The circle center.
|
|
28292
|
-
* @param {Array} circleDims The circle dimensions.
|
|
28293
|
-
* @param {Array} radiuses The circle radiuses.
|
|
28294
|
-
* @param {object} sliceMeta The slice meta.
|
|
28295
|
-
* @returns {boolean} True if slices were added.
|
|
28296
|
-
*/
|
|
28297
|
-
function addMaskSlices(
|
|
28298
|
-
baseGeometry, allOrigins,
|
|
28299
|
-
maskGeometry, position, circleDims, radiuses, sliceMeta) {
|
|
28300
|
-
// circle indices in the image geometry
|
|
28301
|
-
const circleIndices =
|
|
28302
|
-
dwv.tool.getCircleIndices(baseGeometry, position, radiuses, circleDims);
|
|
28303
|
-
const origins =
|
|
28304
|
-
dwv.tool.getOriginsFromIndices(baseGeometry, allOrigins, circleIndices);
|
|
28305
|
-
if (origins.length === 0) {
|
|
28306
|
-
throw new Error('No brush origins...');
|
|
28307
|
-
}
|
|
28308
|
-
|
|
28309
|
-
// get origins that need to be added
|
|
28310
|
-
const origins0 = [];
|
|
28311
|
-
const originsBelow = [];
|
|
28312
|
-
let isAbove = true;
|
|
28313
|
-
let hasCommon = false;
|
|
28314
|
-
// origins start from the top of the circle, first ones (if any)
|
|
28315
|
-
// are above mask origins
|
|
28316
|
-
for (let i = 0; i < origins.length; ++i) {
|
|
28317
|
-
if (!maskGeometry.includesOrigin(origins[i])) {
|
|
28318
|
-
if (isAbove) {
|
|
28319
|
-
origins0.push(origins[i]);
|
|
28320
|
-
} else {
|
|
28321
|
-
originsBelow.push(origins[i]);
|
|
28322
|
-
}
|
|
28323
|
-
} else {
|
|
28324
|
-
isAbove = false;
|
|
28325
|
-
hasCommon = true;
|
|
28326
|
-
}
|
|
28327
|
-
}
|
|
28328
|
-
|
|
28329
|
-
// append slices if needed
|
|
28330
|
-
let originsToAdd = [];
|
|
28331
|
-
|
|
28332
|
-
if (hasCommon) {
|
|
28333
|
-
// common slice case
|
|
28334
|
-
// reverse origins0 to go from existing mask to new one
|
|
28335
|
-
originsToAdd = origins0.reverse().concat(originsBelow);
|
|
28336
|
-
} else {
|
|
28337
|
-
// non common slice case: add in between slices
|
|
28338
|
-
const maskOrigins = maskGeometry.getOrigins();
|
|
28339
|
-
const firstMask = maskOrigins[0];
|
|
28340
|
-
const lastMask = maskOrigins[maskOrigins.length - 1];
|
|
28341
|
-
const firstOrigin = origins0[0];
|
|
28342
|
-
const lastOrigin = origins0[origins0.length - 1];
|
|
28343
|
-
const distanceAbove = firstMask.getDistance(lastOrigin);
|
|
28344
|
-
const distanceBelow = lastMask.getDistance(firstOrigin);
|
|
28345
|
-
|
|
28346
|
-
const imageOrigins = app.getImage(0).getGeometry().getOrigins();
|
|
28347
|
-
if (distanceAbove < distanceBelow) {
|
|
28348
|
-
// in between above
|
|
28349
|
-
const i00 = imageOrigins.findIndex(
|
|
28350
|
-
dwv.math.getEqualPoint3DFunction(lastOrigin));
|
|
28351
|
-
const i01 = imageOrigins.findIndex(
|
|
28352
|
-
dwv.math.getEqualPoint3DFunction(firstMask));
|
|
28353
|
-
|
|
28354
|
-
// reverse to go from existing mask to new one
|
|
28355
|
-
originsToAdd = imageOrigins.slice(i00 + 1, i01).reverse().concat(
|
|
28356
|
-
origins0.reverse()); //NOSONAR
|
|
28357
|
-
} else {
|
|
28358
|
-
// in between bellow
|
|
28359
|
-
const i10 = imageOrigins.findIndex(
|
|
28360
|
-
dwv.math.getEqualPoint3DFunction(lastMask));
|
|
28361
|
-
const i11 = imageOrigins.findIndex(
|
|
28362
|
-
dwv.math.getEqualPoint3DFunction(firstOrigin));
|
|
28363
|
-
|
|
28364
|
-
originsToAdd = imageOrigins.slice(i10 + 1, i11).concat(origins0);
|
|
28365
|
-
}
|
|
28366
|
-
}
|
|
28367
|
-
|
|
28368
|
-
// append slices
|
|
28369
|
-
// TODO: add image multi slice append?
|
|
28370
|
-
for (let l = 0; l < originsToAdd.length; ++l) {
|
|
28371
|
-
mask.getMeta().numberOfFiles += 1;
|
|
28372
|
-
mask.appendSlice(
|
|
28373
|
-
createMaskImage(maskGeometry, originsToAdd[l], sliceMeta));
|
|
28374
|
-
}
|
|
28375
|
-
|
|
28376
|
-
return originsToAdd.length !== 0;
|
|
28377
|
-
}
|
|
28378
|
-
|
|
28379
|
-
/**
|
|
28380
|
-
* Paint the mask at the given offsets.
|
|
28381
|
-
*
|
|
28382
|
-
* @param {Array} offsets The mask offsets.
|
|
28383
|
-
*/
|
|
28384
|
-
function paintMaskAtOffsets(offsets) {
|
|
28385
|
-
const buff = mask.getBuffer();
|
|
28386
|
-
const colour = segments[selectedSegment].displayValue;
|
|
28387
|
-
for (let i = 0; i < offsets.length; ++i) {
|
|
28388
|
-
const offset = offsets[i] * 3;
|
|
28389
|
-
buff[offset] = brushMode === 'add' ? colour.r : 0;
|
|
28390
|
-
buff[offset + 1] = brushMode === 'add' ? colour.g : 0;
|
|
28391
|
-
buff[offset + 2] = brushMode === 'add' ? colour.b : 0;
|
|
28392
|
-
}
|
|
28393
|
-
// update segment
|
|
28394
|
-
segments[selectedSegment].algorithmType = 'MANUAL';
|
|
28395
|
-
delete segments[selectedSegment].algorithmName;
|
|
28396
|
-
// update app image
|
|
28397
|
-
app.setImage(maskId, mask);
|
|
28398
|
-
// render
|
|
28399
|
-
app.render(maskId);
|
|
28400
|
-
}
|
|
28401
|
-
|
|
28402
|
-
/**
|
|
28403
|
-
* Get the mask offset for an event.
|
|
28404
|
-
*
|
|
28405
|
-
* @param {object} event The event containing the mask position.
|
|
28406
|
-
* @returns {Array} The array of offset to paint.
|
|
28407
|
-
*/
|
|
28408
|
-
function getMaskOffsets(event) {
|
|
28409
|
-
const layerDetails = dwv.gui.getLayerDetailsFromEvent(event);
|
|
28410
|
-
const layerGroup = app.getLayerGroupById(layerDetails.groupId);
|
|
28411
|
-
|
|
28412
|
-
// reference image related vars
|
|
28413
|
-
const viewLayer = layerGroup.getActiveViewLayer();
|
|
28414
|
-
const planePos = viewLayer.displayToPlanePos(event._x, event._y);
|
|
28415
|
-
const viewController = viewLayer.getViewController();
|
|
28416
|
-
const position = viewController.getPositionFromPlanePoint(planePos);
|
|
28417
|
-
|
|
28418
|
-
const sliceMeta = {
|
|
28419
|
-
Modality: 'SEG',
|
|
28420
|
-
IsSigned: false,
|
|
28421
|
-
numberOfFiles: 1,
|
|
28422
|
-
BitsStored: 1
|
|
28423
|
-
};
|
|
28424
|
-
|
|
28425
|
-
const searchMaskMeta = {
|
|
28426
|
-
Modality: 'SEG'
|
|
28427
|
-
};
|
|
28428
|
-
const isMaskVc = viewController.equalImageMeta(searchMaskMeta);
|
|
28429
|
-
|
|
28430
|
-
// base image geometry
|
|
28431
|
-
const baseImage = app.getImage(0);
|
|
28432
|
-
let baseGeometry = baseImage.getGeometry();
|
|
28433
|
-
|
|
28434
|
-
if (isMaskVc) {
|
|
28435
|
-
// udpate an existing mask
|
|
28436
|
-
mask = app.getImage(event.dataindex);
|
|
28437
|
-
maskId = event.dataindex;
|
|
28438
|
-
baseGeometry = mask.getGeometry();
|
|
28439
|
-
// update segments if needed
|
|
28440
|
-
if (typeof newSegmentBehaviour !== 'undefined') {
|
|
28441
|
-
updateSegments(mask.getMeta().custom.segments);
|
|
28442
|
-
}
|
|
28443
|
-
}
|
|
28444
|
-
|
|
28445
|
-
// create mask if not done yet
|
|
28446
|
-
let maskVl = viewLayer;
|
|
28447
|
-
let maskVc = viewController;
|
|
28448
|
-
if (!mask) {
|
|
28449
|
-
const imgK = baseGeometry.worldToIndex(position).get(2);
|
|
28450
|
-
|
|
28451
|
-
const firstSliceMeta = sliceMeta;
|
|
28452
|
-
firstSliceMeta.SeriesInstanceUID =
|
|
28453
|
-
baseImage.getMeta().SeriesInstanceUID;
|
|
28454
|
-
firstSliceMeta.ImageOrientationPatient =
|
|
28455
|
-
baseImage.getMeta().ImageOrientationPatient;
|
|
28456
|
-
|
|
28457
|
-
mask = createMaskImage(
|
|
28458
|
-
baseGeometry, baseGeometry.getOrigins()[imgK], firstSliceMeta);
|
|
28459
|
-
// fires load events and renders data
|
|
28460
|
-
maskId = app.addNewImage(mask, {});
|
|
28461
|
-
|
|
28462
|
-
// newly create mask case: find the SEG view layer
|
|
28463
|
-
const maskViewLayers = layerGroup.searchViewLayers(searchMaskMeta);
|
|
28464
|
-
if (maskViewLayers.length === 0) {
|
|
28465
|
-
console.warn('No mask view layers');
|
|
28466
|
-
} else if (maskViewLayers.length !== 1) {
|
|
28467
|
-
console.warn('Too many mask view layers', maskViewLayers.length);
|
|
28468
|
-
}
|
|
28469
|
-
maskVl = maskViewLayers[0];
|
|
28470
|
-
maskVc = maskVl.getViewController();
|
|
28471
|
-
}
|
|
28472
|
-
|
|
28473
|
-
sliceMeta.SeriesInstanceUID = mask.getMeta().SeriesInstanceUID;
|
|
28474
|
-
sliceMeta.ImageOrientationPatient =
|
|
28475
|
-
mask.getMeta().ImageOrientationPatient;
|
|
28476
|
-
|
|
28477
|
-
const maskGeometry = mask.getGeometry();
|
|
28478
|
-
|
|
28479
|
-
const scrollIndex = viewController.getScrollIndex();
|
|
28480
|
-
let circleDims;
|
|
28481
|
-
let radiuses;
|
|
28482
|
-
const spacing = baseGeometry.getSpacing(baseGeometry.getOrientation());
|
|
28483
|
-
const r0 = Math.round(brushSize / spacing.get(0));
|
|
28484
|
-
const r1 = Math.round(brushSize / spacing.get(1));
|
|
28485
|
-
const r2 = Math.round(brushSize / spacing.get(2));
|
|
28486
|
-
if (scrollIndex === 0) {
|
|
28487
|
-
circleDims = [1, 2];
|
|
28488
|
-
radiuses = [r1, r2];
|
|
28489
|
-
} else if (scrollIndex === 1) {
|
|
28490
|
-
circleDims = [0, 2];
|
|
28491
|
-
radiuses = [r0, r2];
|
|
28492
|
-
} else if (scrollIndex === 2) {
|
|
28493
|
-
circleDims = [0, 1];
|
|
28494
|
-
radiuses = [r0, r1];
|
|
28495
|
-
}
|
|
28496
|
-
|
|
28497
|
-
const addedSlices = addMaskSlices(
|
|
28498
|
-
baseGeometry, baseImage.getGeometry().getOrigins(),
|
|
28499
|
-
maskGeometry, position, circleDims, radiuses, sliceMeta);
|
|
28500
|
-
|
|
28501
|
-
if (addedSlices) {
|
|
28502
|
-
// update mask position if new slices
|
|
28503
|
-
maskVc.setCurrentPosition(position);
|
|
28504
|
-
}
|
|
28505
|
-
|
|
28506
|
-
// circle indices in the mask geometry
|
|
28507
|
-
const maskPlanePos = maskVl.displayToPlanePos(event._x, event._y);
|
|
28508
|
-
const maskPosition = maskVc.getPositionFromPlanePoint(maskPlanePos);
|
|
28509
|
-
const maskCircleIndices = dwv.tool.getCircleIndices(
|
|
28510
|
-
maskGeometry, maskPosition, radiuses, circleDims);
|
|
28511
|
-
|
|
28512
|
-
return dwv.tool.getOffsetsFromIndices(maskGeometry, maskCircleIndices);
|
|
28513
|
-
}
|
|
28514
|
-
|
|
28515
|
-
/**
|
|
28516
|
-
* Update the internal segment list.
|
|
28517
|
-
*
|
|
28518
|
-
* @param {Array} newSegments The array of new segments.
|
|
28519
|
-
*/
|
|
28520
|
-
function updateSegments(newSegments) {
|
|
28521
|
-
if (newSegmentBehaviour === 'replace') {
|
|
28522
|
-
segments = newSegments;
|
|
28523
|
-
if (selectedSegment >= segments.length) {
|
|
28524
|
-
console.warn('Updating selectedSegment to fit new segments');
|
|
28525
|
-
selectedSegment = 0;
|
|
28526
|
-
}
|
|
28527
|
-
} else if (newSegmentBehaviour === 'add') {
|
|
28528
|
-
const getEqualSegFunc = function (segment) {
|
|
28529
|
-
return function (item) {
|
|
28530
|
-
return dwv.dicom.isEqualSegment(item, segment);
|
|
28531
|
-
};
|
|
28532
|
-
};
|
|
28533
|
-
const getSimilarSegFunc = function (segment) {
|
|
28534
|
-
return function (item) {
|
|
28535
|
-
return dwv.dicom.isSimilarSegment(item, segment);
|
|
28536
|
-
};
|
|
28537
|
-
};
|
|
28538
|
-
for (let i = 0; i < newSegments.length; ++i) {
|
|
28539
|
-
const equalSeg = segments.find(getEqualSegFunc(newSegments[i]));
|
|
28540
|
-
// if no equal, check if the segment can be added
|
|
28541
|
-
if (typeof equalSeg === 'undefined') {
|
|
28542
|
-
const similarSeg =
|
|
28543
|
-
segments.find(getSimilarSegFunc(newSegments[i]));
|
|
28544
|
-
// only accept non similar
|
|
28545
|
-
if (typeof similarSeg === 'undefined') {
|
|
28546
|
-
segments.push(newSegments[i]);
|
|
28547
|
-
} else {
|
|
28548
|
-
console.warn(
|
|
28549
|
-
'Not adding segment since a similar one is already present.');
|
|
28550
|
-
}
|
|
28551
|
-
}
|
|
28552
|
-
}
|
|
28553
|
-
} else {
|
|
28554
|
-
console.warn('Unknown newSegmentBehaviour:' + newSegmentBehaviour);
|
|
28555
|
-
}
|
|
28556
|
-
}
|
|
28557
|
-
|
|
28558
|
-
/**
|
|
28559
|
-
* Save the current mask as a DICOM seg object.
|
|
28560
|
-
*/
|
|
28561
|
-
function saveSeg() {
|
|
28562
|
-
const fac = new dwv.image.MaskFactory();
|
|
28563
|
-
const dicomElements = fac.toDicom(mask, segments);
|
|
28564
|
-
|
|
28565
|
-
// create writer with default rules
|
|
28566
|
-
const writer = new dwv.dicom.DicomWriter();
|
|
28567
|
-
let dicomBuffer = null;
|
|
28568
|
-
try {
|
|
28569
|
-
dicomBuffer = writer.getBuffer(dicomElements);
|
|
28570
|
-
} catch (error) {
|
|
28571
|
-
console.error(error);
|
|
28572
|
-
alert(error.message);
|
|
28573
|
-
}
|
|
28574
|
-
// view as Blob to allow download
|
|
28575
|
-
const blob = new Blob([dicomBuffer], {type: 'application/dicom'});
|
|
28576
|
-
// update generate button
|
|
28577
|
-
const element = document.createElement('a');
|
|
28578
|
-
element.href = window.URL.createObjectURL(blob);
|
|
28579
|
-
element.download = 'seg-save.dcm';
|
|
28580
|
-
// trigger download
|
|
28581
|
-
element.click();
|
|
28582
|
-
URL.revokeObjectURL(element.href);
|
|
28583
|
-
}
|
|
28584
|
-
|
|
28585
|
-
/**
|
|
28586
|
-
* Handle mouse down event.
|
|
28587
|
-
*
|
|
28588
|
-
* @param {object} event The mouse down event.
|
|
28589
|
-
*/
|
|
28590
|
-
this.mousedown = function (event) {
|
|
28591
|
-
// start flag
|
|
28592
|
-
self.started = true;
|
|
28593
|
-
// first position
|
|
28594
|
-
self.x0 = event._x;
|
|
28595
|
-
self.y0 = event._y;
|
|
28596
|
-
|
|
28597
|
-
paintMaskAtOffsets(getMaskOffsets(event));
|
|
28598
|
-
};
|
|
28599
|
-
|
|
28600
|
-
/**
|
|
28601
|
-
* Handle mouse move event.
|
|
28602
|
-
*
|
|
28603
|
-
* @param {object} event The mouse move event.
|
|
28604
|
-
*/
|
|
28605
|
-
this.mousemove = function (event) {
|
|
28606
|
-
if (!self.started) {
|
|
28607
|
-
return;
|
|
28608
|
-
}
|
|
28609
|
-
const diffX = Math.abs(event._x - self.x0);
|
|
28610
|
-
const diffY = Math.abs(event._y - self.y0);
|
|
28611
|
-
if (diffX > brushSize / 2 || diffY > brushSize / 2) {
|
|
28612
|
-
paintMaskAtOffsets(getMaskOffsets(event));
|
|
28613
|
-
self.x0 = event._x;
|
|
28614
|
-
self.y0 = event._y;
|
|
28615
|
-
}
|
|
28616
|
-
};
|
|
28617
|
-
|
|
28618
|
-
/**
|
|
28619
|
-
* Handle mouse up event.
|
|
28620
|
-
*
|
|
28621
|
-
* @param {object} _event The mouse up event.
|
|
28622
|
-
*/
|
|
28623
|
-
this.mouseup = function (_event) {
|
|
28624
|
-
if (self.started) {
|
|
28625
|
-
self.started = false;
|
|
28626
|
-
}
|
|
28627
|
-
};
|
|
28628
|
-
|
|
28629
|
-
/**
|
|
28630
|
-
* Handle mouse out event.
|
|
28631
|
-
*
|
|
28632
|
-
* @param {object} event The mouse out event.
|
|
28633
|
-
*/
|
|
28634
|
-
this.mouseout = function (event) {
|
|
28635
|
-
self.mouseup(event);
|
|
28636
|
-
};
|
|
28637
|
-
|
|
28638
|
-
/**
|
|
28639
|
-
* Handle touch start event.
|
|
28640
|
-
*
|
|
28641
|
-
* @param {object} event The touch start event.
|
|
28642
|
-
*/
|
|
28643
|
-
this.touchstart = function (event) {
|
|
28644
|
-
// call mouse equivalent
|
|
28645
|
-
self.mousedown(event);
|
|
28646
|
-
};
|
|
28647
|
-
|
|
28648
|
-
/**
|
|
28649
|
-
* Handle touch move event.
|
|
28650
|
-
*
|
|
28651
|
-
* @param {object} event The touch move event.
|
|
28652
|
-
*/
|
|
28653
|
-
this.touchmove = function (event) {
|
|
28654
|
-
// call mouse equivalent
|
|
28655
|
-
self.mousemove(event);
|
|
28656
|
-
};
|
|
28657
|
-
|
|
28658
|
-
/**
|
|
28659
|
-
* Handle touch end event.
|
|
28660
|
-
*
|
|
28661
|
-
* @param {object} event The touch end event.
|
|
28662
|
-
*/
|
|
28663
|
-
this.touchend = function (event) {
|
|
28664
|
-
// call mouse equivalent
|
|
28665
|
-
self.mouseup(event);
|
|
28666
|
-
};
|
|
28667
|
-
|
|
28668
|
-
/**
|
|
28669
|
-
* Handle key down event.
|
|
28670
|
-
*
|
|
28671
|
-
* @param {object} event The key down event.
|
|
28672
|
-
*/
|
|
28673
|
-
this.keydown = function (event) {
|
|
28674
|
-
event.context = 'dwv.tool.Brush';
|
|
28675
|
-
app.onKeydown(event);
|
|
28676
|
-
|
|
28677
|
-
if (event.key === '+') {
|
|
28678
|
-
brushSize += 1;
|
|
28679
|
-
console.log('Brush size:', brushSize);
|
|
28680
|
-
} else if (event.key === '-') {
|
|
28681
|
-
brushSize -= 1;
|
|
28682
|
-
console.log('Brush size:', brushSize);
|
|
28683
|
-
} else if (!isNaN(parseInt(event.key, 10))) {
|
|
28684
|
-
let index = parseInt(event.key, 10);
|
|
28685
|
-
if (index < segments.length) {
|
|
28686
|
-
selectedSegment = index;
|
|
28687
|
-
console.log('segment:', segments[selectedSegment].label);
|
|
28688
|
-
} else {
|
|
28689
|
-
console.warn('Selected segment does not exist.');
|
|
28690
|
-
}
|
|
28691
|
-
} else if (event.key === 'a') {
|
|
28692
|
-
brushMode = 'add';
|
|
28693
|
-
console.log('Brush mode', brushMode);
|
|
28694
|
-
} else if (event.key === 'd') {
|
|
28695
|
-
brushMode = 'del';
|
|
28696
|
-
console.log('Brush mode', brushMode);
|
|
28697
|
-
} else if (event.key === 's') {
|
|
28698
|
-
console.log('Saving...');
|
|
28699
|
-
saveSeg();
|
|
28700
|
-
}
|
|
28701
|
-
|
|
28702
|
-
};
|
|
28703
|
-
|
|
28704
|
-
/**
|
|
28705
|
-
* Activate the tool.
|
|
28706
|
-
*
|
|
28707
|
-
* @param {boolean} _bool The flag to activate or not.
|
|
28708
|
-
*/
|
|
28709
|
-
this.activate = function (_bool) {
|
|
28710
|
-
// does nothing
|
|
28711
|
-
};
|
|
28712
|
-
|
|
28713
|
-
/**
|
|
28714
|
-
* Set the tool live features.
|
|
28715
|
-
*
|
|
28716
|
-
* @param {object} features The list of features.
|
|
28717
|
-
*/
|
|
28718
|
-
this.setFeatures = function (features) {
|
|
28719
|
-
if (typeof features.brushSize !== 'undefined') {
|
|
28720
|
-
brushSize = features.brushSize;
|
|
28721
|
-
}
|
|
28722
|
-
if (typeof features.brushMode !== 'undefined') {
|
|
28723
|
-
brushMode = features.brushMode;
|
|
28724
|
-
}
|
|
28725
|
-
if (typeof features.segments !== 'undefined') {
|
|
28726
|
-
segments = features.segments;
|
|
28727
|
-
}
|
|
28728
|
-
if (typeof features.selectedSegment !== 'undefined' &&
|
|
28729
|
-
features.selectedSegment < segments.length) {
|
|
28730
|
-
selectedSegment = features.selectedSegment;
|
|
28731
|
-
}
|
|
28732
|
-
};
|
|
28733
|
-
|
|
28734
|
-
/**
|
|
28735
|
-
* Initialise the tool.
|
|
28736
|
-
*/
|
|
28737
|
-
this.init = function () {
|
|
28738
|
-
// does nothing
|
|
28739
|
-
};
|
|
28740
|
-
|
|
28741
|
-
}; // Brush class
|
|
28742
|
-
|
|
28743
|
-
/**
|
|
28744
|
-
* Help for this tool.
|
|
28745
|
-
*
|
|
28746
|
-
* @returns {object} The help content.
|
|
28747
|
-
*/
|
|
28748
|
-
dwv.tool.Brush.prototype.getHelpKeys = function () {
|
|
28749
|
-
return {
|
|
28750
|
-
title: 'tool.Brush.name',
|
|
28751
|
-
brief: 'tool.Brush.brief',
|
|
28752
|
-
mouse: {
|
|
28753
|
-
mouse_click: 'tool.Brush.mouse_click',
|
|
28754
|
-
},
|
|
28755
|
-
touch: {
|
|
28756
|
-
touch_click: 'tool.Brush.touch_click'
|
|
28757
|
-
}
|
|
28758
|
-
};
|
|
28759
|
-
};
|
|
28760
28951
|
// namespaces
|
|
28761
28952
|
var dwv = dwv || {};
|
|
28762
28953
|
dwv.tool = dwv.tool || {};
|
|
@@ -35237,7 +35428,10 @@ dwv.utils = dwv.utils || {};
|
|
|
35237
35428
|
* @returns {boolean} True if both array are defined and contain same values.
|
|
35238
35429
|
*/
|
|
35239
35430
|
dwv.utils.arrayEquals = function (arr0, arr1) {
|
|
35240
|
-
if (arr0 === null ||
|
|
35431
|
+
if (arr0 === null ||
|
|
35432
|
+
arr1 === null ||
|
|
35433
|
+
typeof arr0 === 'undefined' ||
|
|
35434
|
+
typeof arr1 === 'undefined') {
|
|
35241
35435
|
return false;
|
|
35242
35436
|
}
|
|
35243
35437
|
if (arr0.length !== arr1.length) {
|
|
@@ -35914,6 +36108,18 @@ dwv.env.hasClampedArray = function () {
|
|
|
35914
36108
|
return dwv.env._hasClampedArray;
|
|
35915
36109
|
};
|
|
35916
36110
|
|
|
36111
|
+
// Check if the BigInt type is defined
|
|
36112
|
+
dwv.env._hasBigint = (typeof BigInt !== 'undefined');
|
|
36113
|
+
|
|
36114
|
+
/**
|
|
36115
|
+
* Browser check for BigInt (associated typed arrays).
|
|
36116
|
+
*
|
|
36117
|
+
* @returns {boolean} True if the env supports the feature.
|
|
36118
|
+
*/
|
|
36119
|
+
dwv.env.hasBigInt = function () {
|
|
36120
|
+
return dwv.env._hasBigint;
|
|
36121
|
+
};
|
|
36122
|
+
|
|
35917
36123
|
/**
|
|
35918
36124
|
* Browser checks to see if it can run dwv. Throws an error if not.
|
|
35919
36125
|
* Silently replaces basic functions.
|
|
@@ -35938,6 +36144,16 @@ dwv.env.check = function () {
|
|
|
35938
36144
|
message = 'The Typed arrays are not supported in this browser. ';
|
|
35939
36145
|
throw new Error(message);
|
|
35940
36146
|
}
|
|
36147
|
+
// Check Float64
|
|
36148
|
+
if (!dwv.env.hasFloat64Array()) {
|
|
36149
|
+
dwv.logger.warn('Float64Array is not supported in this browser. ' +
|
|
36150
|
+
'Data including tags with Float64 VR is not supported. ');
|
|
36151
|
+
}
|
|
36152
|
+
// Check BigInt
|
|
36153
|
+
if (!dwv.env.hasBigInt()) {
|
|
36154
|
+
dwv.logger.warn('BigInt is not supported in this browser. ' +
|
|
36155
|
+
'Data including tags with Int64 and Uint64 VRs is not supported. ');
|
|
36156
|
+
}
|
|
35941
36157
|
|
|
35942
36158
|
// Replaced if not present ------------
|
|
35943
36159
|
|
|
@@ -35994,16 +36210,6 @@ dwv.env.check = function () {
|
|
|
35994
36210
|
// TODO Find better replacement!
|
|
35995
36211
|
window.Uint8ClampedArray = window.Uint8Array;
|
|
35996
36212
|
}
|
|
35997
|
-
// check Float64 array
|
|
35998
|
-
if (!dwv.env.hasFloat64Array()) {
|
|
35999
|
-
// silent fail with warning
|
|
36000
|
-
dwv.logger.warn(
|
|
36001
|
-
'The Float64Array is not supported in this browser.' +
|
|
36002
|
-
' This may impair performance. ');
|
|
36003
|
-
// Use Float32Array instead... Not good
|
|
36004
|
-
// TODO Find better replacement!
|
|
36005
|
-
window.Float64Array = window.Float32Array;
|
|
36006
|
-
}
|
|
36007
36213
|
|
|
36008
36214
|
// array Find
|
|
36009
36215
|
// https://tc39.github.io/ecma262/#sec-array.prototype.find
|