dcmjs 0.50.3 → 0.51.1
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/build/dcmjs.es.js +630 -663
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +630 -663
- package/build/dcmjs.js.map +1 -1
- package/build/dcmjs.min.js +1 -1
- package/build/dcmjs.min.js.map +1 -1
- package/package.json +2 -2
package/build/dcmjs.es.js
CHANGED
|
@@ -8021,7 +8021,7 @@ var SplitDataView = /*#__PURE__*/function () {
|
|
|
8021
8021
|
/**
|
|
8022
8022
|
* Consumes the already written or read data, up to the given offset.
|
|
8023
8023
|
*/
|
|
8024
|
-
_createClass(SplitDataView, [{
|
|
8024
|
+
return _createClass(SplitDataView, [{
|
|
8025
8025
|
key: "consume",
|
|
8026
8026
|
value: function consume(offset) {
|
|
8027
8027
|
this.consumeOffset = Math.max(offset, this.consumeOffset);
|
|
@@ -8259,61 +8259,69 @@ var SplitDataView = /*#__PURE__*/function () {
|
|
|
8259
8259
|
return view.getUint32(offset - viewOffset, isLittleEndian);
|
|
8260
8260
|
}
|
|
8261
8261
|
}, {
|
|
8262
|
-
key: "
|
|
8263
|
-
value: function
|
|
8264
|
-
var _this$findView4 = this.findView(offset,
|
|
8262
|
+
key: "getBigUint64",
|
|
8263
|
+
value: function getBigUint64(offset, isLittleEndian) {
|
|
8264
|
+
var _this$findView4 = this.findView(offset, 8),
|
|
8265
8265
|
view = _this$findView4.view,
|
|
8266
8266
|
viewOffset = _this$findView4.viewOffset;
|
|
8267
|
+
return view.getBigUint64(offset - viewOffset, isLittleEndian);
|
|
8268
|
+
}
|
|
8269
|
+
}, {
|
|
8270
|
+
key: "getFloat32",
|
|
8271
|
+
value: function getFloat32(offset, isLittleEndian) {
|
|
8272
|
+
var _this$findView5 = this.findView(offset, 4),
|
|
8273
|
+
view = _this$findView5.view,
|
|
8274
|
+
viewOffset = _this$findView5.viewOffset;
|
|
8267
8275
|
return view.getFloat32(offset - viewOffset, isLittleEndian);
|
|
8268
8276
|
}
|
|
8269
8277
|
}, {
|
|
8270
8278
|
key: "getFloat64",
|
|
8271
8279
|
value: function getFloat64(offset, isLittleEndian) {
|
|
8272
|
-
var _this$
|
|
8273
|
-
view = _this$
|
|
8274
|
-
viewOffset = _this$
|
|
8280
|
+
var _this$findView6 = this.findView(offset, 8),
|
|
8281
|
+
view = _this$findView6.view,
|
|
8282
|
+
viewOffset = _this$findView6.viewOffset;
|
|
8275
8283
|
return view.getFloat64(offset - viewOffset, isLittleEndian);
|
|
8276
8284
|
}
|
|
8277
8285
|
}, {
|
|
8278
8286
|
key: "getInt8",
|
|
8279
8287
|
value: function getInt8(offset) {
|
|
8280
|
-
var _this$
|
|
8281
|
-
view = _this$
|
|
8282
|
-
viewOffset = _this$
|
|
8288
|
+
var _this$findView7 = this.findView(offset, 1),
|
|
8289
|
+
view = _this$findView7.view,
|
|
8290
|
+
viewOffset = _this$findView7.viewOffset;
|
|
8283
8291
|
return view.getInt8(offset - viewOffset);
|
|
8284
8292
|
}
|
|
8285
8293
|
}, {
|
|
8286
8294
|
key: "getInt16",
|
|
8287
8295
|
value: function getInt16(offset, isLittleEndian) {
|
|
8288
|
-
var _this$
|
|
8289
|
-
view = _this$
|
|
8290
|
-
viewOffset = _this$
|
|
8296
|
+
var _this$findView8 = this.findView(offset, 2),
|
|
8297
|
+
view = _this$findView8.view,
|
|
8298
|
+
viewOffset = _this$findView8.viewOffset;
|
|
8291
8299
|
return view.getInt16(offset - viewOffset, isLittleEndian);
|
|
8292
8300
|
}
|
|
8293
8301
|
}, {
|
|
8294
8302
|
key: "getInt32",
|
|
8295
8303
|
value: function getInt32(offset, isLittleEndian) {
|
|
8296
|
-
var _this$
|
|
8297
|
-
view = _this$
|
|
8298
|
-
viewOffset = _this$
|
|
8304
|
+
var _this$findView9 = this.findView(offset, 4),
|
|
8305
|
+
view = _this$findView9.view,
|
|
8306
|
+
viewOffset = _this$findView9.viewOffset;
|
|
8299
8307
|
return view.getInt32(offset - viewOffset, isLittleEndian);
|
|
8300
8308
|
}
|
|
8301
8309
|
}, {
|
|
8302
8310
|
key: "setUint8",
|
|
8303
8311
|
value: function setUint8(offset, value) {
|
|
8304
|
-
var _this$
|
|
8305
|
-
view = _this$
|
|
8306
|
-
viewOffset = _this$
|
|
8312
|
+
var _this$findView0 = this.findView(offset, 1),
|
|
8313
|
+
view = _this$findView0.view,
|
|
8314
|
+
viewOffset = _this$findView0.viewOffset;
|
|
8307
8315
|
view.setUint8(offset - viewOffset, value);
|
|
8308
8316
|
// Commit is unneeded since 1 byte will always be available
|
|
8309
8317
|
}
|
|
8310
8318
|
}, {
|
|
8311
8319
|
key: "setUint16",
|
|
8312
8320
|
value: function setUint16(offset, value, isLittleEndian) {
|
|
8313
|
-
var _this$
|
|
8314
|
-
view = _this$
|
|
8315
|
-
viewOffset = _this$
|
|
8316
|
-
writeCommit = _this$
|
|
8321
|
+
var _this$findView1 = this.findView(offset, 2),
|
|
8322
|
+
view = _this$findView1.view,
|
|
8323
|
+
viewOffset = _this$findView1.viewOffset,
|
|
8324
|
+
writeCommit = _this$findView1.writeCommit;
|
|
8317
8325
|
view.setUint16(offset - viewOffset, value, isLittleEndian);
|
|
8318
8326
|
if (writeCommit) {
|
|
8319
8327
|
this.writeCommit(view, offset);
|
|
@@ -8322,22 +8330,34 @@ var SplitDataView = /*#__PURE__*/function () {
|
|
|
8322
8330
|
}, {
|
|
8323
8331
|
key: "setUint32",
|
|
8324
8332
|
value: function setUint32(offset, value, isLittleEndian) {
|
|
8325
|
-
var _this$
|
|
8326
|
-
view = _this$
|
|
8327
|
-
viewOffset = _this$
|
|
8328
|
-
writeCommit = _this$
|
|
8333
|
+
var _this$findView10 = this.findView(offset, 4),
|
|
8334
|
+
view = _this$findView10.view,
|
|
8335
|
+
viewOffset = _this$findView10.viewOffset,
|
|
8336
|
+
writeCommit = _this$findView10.writeCommit;
|
|
8329
8337
|
view.setUint32(offset - viewOffset, value, isLittleEndian);
|
|
8330
8338
|
if (writeCommit) {
|
|
8331
8339
|
this.writeCommit(view, offset);
|
|
8332
8340
|
}
|
|
8333
8341
|
}
|
|
8342
|
+
}, {
|
|
8343
|
+
key: "setBigUint64",
|
|
8344
|
+
value: function setBigUint64(offset, value, isLittleEndian) {
|
|
8345
|
+
var _this$findView11 = this.findView(offset, 8),
|
|
8346
|
+
view = _this$findView11.view,
|
|
8347
|
+
viewOffset = _this$findView11.viewOffset,
|
|
8348
|
+
writeCommit = _this$findView11.writeCommit;
|
|
8349
|
+
view.setBigUint64(offset - viewOffset, value, isLittleEndian);
|
|
8350
|
+
if (writeCommit) {
|
|
8351
|
+
this.writeCommit(view, offset);
|
|
8352
|
+
}
|
|
8353
|
+
}
|
|
8334
8354
|
}, {
|
|
8335
8355
|
key: "setFloat32",
|
|
8336
8356
|
value: function setFloat32(offset, value, isLittleEndian) {
|
|
8337
|
-
var _this$
|
|
8338
|
-
view = _this$
|
|
8339
|
-
viewOffset = _this$
|
|
8340
|
-
writeCommit = _this$
|
|
8357
|
+
var _this$findView12 = this.findView(offset, 4),
|
|
8358
|
+
view = _this$findView12.view,
|
|
8359
|
+
viewOffset = _this$findView12.viewOffset,
|
|
8360
|
+
writeCommit = _this$findView12.writeCommit;
|
|
8341
8361
|
view.setFloat32(offset - viewOffset, value, isLittleEndian);
|
|
8342
8362
|
if (writeCommit) {
|
|
8343
8363
|
this.writeCommit(view, offset);
|
|
@@ -8346,10 +8366,10 @@ var SplitDataView = /*#__PURE__*/function () {
|
|
|
8346
8366
|
}, {
|
|
8347
8367
|
key: "setFloat64",
|
|
8348
8368
|
value: function setFloat64(offset, value, isLittleEndian) {
|
|
8349
|
-
var _this$
|
|
8350
|
-
view = _this$
|
|
8351
|
-
viewOffset = _this$
|
|
8352
|
-
writeCommit = _this$
|
|
8369
|
+
var _this$findView13 = this.findView(offset, 8),
|
|
8370
|
+
view = _this$findView13.view,
|
|
8371
|
+
viewOffset = _this$findView13.viewOffset,
|
|
8372
|
+
writeCommit = _this$findView13.writeCommit;
|
|
8353
8373
|
view.setFloat64(offset - viewOffset, value, isLittleEndian);
|
|
8354
8374
|
if (writeCommit) {
|
|
8355
8375
|
this.writeCommit(view, offset);
|
|
@@ -8358,19 +8378,19 @@ var SplitDataView = /*#__PURE__*/function () {
|
|
|
8358
8378
|
}, {
|
|
8359
8379
|
key: "setInt8",
|
|
8360
8380
|
value: function setInt8(offset, value) {
|
|
8361
|
-
var _this$
|
|
8362
|
-
view = _this$
|
|
8363
|
-
viewOffset = _this$
|
|
8381
|
+
var _this$findView14 = this.findView(offset, 1),
|
|
8382
|
+
view = _this$findView14.view,
|
|
8383
|
+
viewOffset = _this$findView14.viewOffset;
|
|
8364
8384
|
view.setInt8(offset - viewOffset, value);
|
|
8365
8385
|
// Commit is unneeded since 1 byte will always be available
|
|
8366
8386
|
}
|
|
8367
8387
|
}, {
|
|
8368
8388
|
key: "setInt16",
|
|
8369
8389
|
value: function setInt16(offset, value, isLittleEndian) {
|
|
8370
|
-
var _this$
|
|
8371
|
-
view = _this$
|
|
8372
|
-
viewOffset = _this$
|
|
8373
|
-
writeCommit = _this$
|
|
8390
|
+
var _this$findView15 = this.findView(offset, 2),
|
|
8391
|
+
view = _this$findView15.view,
|
|
8392
|
+
viewOffset = _this$findView15.viewOffset,
|
|
8393
|
+
writeCommit = _this$findView15.writeCommit;
|
|
8374
8394
|
view.setInt16(offset - viewOffset, value, isLittleEndian);
|
|
8375
8395
|
if (writeCommit) {
|
|
8376
8396
|
this.writeCommit(view, offset);
|
|
@@ -8379,10 +8399,10 @@ var SplitDataView = /*#__PURE__*/function () {
|
|
|
8379
8399
|
}, {
|
|
8380
8400
|
key: "setInt32",
|
|
8381
8401
|
value: function setInt32(offset, value, isLittleEndian) {
|
|
8382
|
-
var _this$
|
|
8383
|
-
view = _this$
|
|
8384
|
-
viewOffset = _this$
|
|
8385
|
-
writeCommit = _this$
|
|
8402
|
+
var _this$findView16 = this.findView(offset, 4),
|
|
8403
|
+
view = _this$findView16.view,
|
|
8404
|
+
viewOffset = _this$findView16.viewOffset,
|
|
8405
|
+
writeCommit = _this$findView16.writeCommit;
|
|
8386
8406
|
view.setInt32(offset - viewOffset, value, isLittleEndian);
|
|
8387
8407
|
if (writeCommit) {
|
|
8388
8408
|
this.writeCommit(view, offset);
|
|
@@ -8435,7 +8455,6 @@ var SplitDataView = /*#__PURE__*/function () {
|
|
|
8435
8455
|
};
|
|
8436
8456
|
}
|
|
8437
8457
|
}]);
|
|
8438
|
-
return SplitDataView;
|
|
8439
8458
|
}();
|
|
8440
8459
|
|
|
8441
8460
|
/**
|
|
@@ -8492,7 +8511,7 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
8492
8511
|
/**
|
|
8493
8512
|
* Mark this stream as having finished being written or read from
|
|
8494
8513
|
*/
|
|
8495
|
-
_createClass(BufferStream, [{
|
|
8514
|
+
return _createClass(BufferStream, [{
|
|
8496
8515
|
key: "setComplete",
|
|
8497
8516
|
value: function setComplete() {
|
|
8498
8517
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
@@ -8525,14 +8544,14 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
8525
8544
|
var bytes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1024;
|
|
8526
8545
|
if (!this.isAvailable(bytes)) {
|
|
8527
8546
|
return new Promise(function (resolve) {
|
|
8528
|
-
var
|
|
8547
|
+
var _recheckAvailable = function recheckAvailable() {
|
|
8529
8548
|
if (_this.isAvailable(bytes)) {
|
|
8530
8549
|
resolve(true);
|
|
8531
8550
|
return;
|
|
8532
8551
|
}
|
|
8533
|
-
_this.availableListeners.push(
|
|
8552
|
+
_this.availableListeners.push(_recheckAvailable);
|
|
8534
8553
|
};
|
|
8535
|
-
|
|
8554
|
+
_recheckAvailable();
|
|
8536
8555
|
});
|
|
8537
8556
|
}
|
|
8538
8557
|
return true;
|
|
@@ -8638,6 +8657,13 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
8638
8657
|
this.view.setInt32(this.offset, toInt(value), this.isLittleEndian);
|
|
8639
8658
|
return this.increment(4);
|
|
8640
8659
|
}
|
|
8660
|
+
}, {
|
|
8661
|
+
key: "writeBigUint64",
|
|
8662
|
+
value: function writeBigUint64(value) {
|
|
8663
|
+
this.checkSize(8);
|
|
8664
|
+
this.view.setBigUint64(this.offset, value, this.isLittleEndian);
|
|
8665
|
+
return this.increment(8);
|
|
8666
|
+
}
|
|
8641
8667
|
}, {
|
|
8642
8668
|
key: "writeFloat",
|
|
8643
8669
|
value: function writeFloat(value) {
|
|
@@ -8673,6 +8699,13 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
8673
8699
|
}
|
|
8674
8700
|
return this.increment(len);
|
|
8675
8701
|
}
|
|
8702
|
+
}, {
|
|
8703
|
+
key: "readBigUint64",
|
|
8704
|
+
value: function readBigUint64() {
|
|
8705
|
+
var val = this.view.getBigUint64(this.offset, this.isLittleEndian);
|
|
8706
|
+
this.increment(8);
|
|
8707
|
+
return val;
|
|
8708
|
+
}
|
|
8676
8709
|
}, {
|
|
8677
8710
|
key: "readUint32",
|
|
8678
8711
|
value: function readUint32() {
|
|
@@ -8840,64 +8873,64 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
8840
8873
|
key: "fromAsyncStream",
|
|
8841
8874
|
value: (function () {
|
|
8842
8875
|
var _fromAsyncStream = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(stream) {
|
|
8843
|
-
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, ab;
|
|
8844
|
-
return _regeneratorRuntime().wrap(function
|
|
8876
|
+
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk, ab, _t;
|
|
8877
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
8845
8878
|
while (1) switch (_context.prev = _context.next) {
|
|
8846
8879
|
case 0:
|
|
8847
8880
|
_iteratorAbruptCompletion = false;
|
|
8848
8881
|
_didIteratorError = false;
|
|
8849
|
-
_context.prev =
|
|
8882
|
+
_context.prev = 1;
|
|
8850
8883
|
_iterator = _asyncIterator(stream);
|
|
8851
|
-
case
|
|
8852
|
-
_context.next =
|
|
8884
|
+
case 2:
|
|
8885
|
+
_context.next = 3;
|
|
8853
8886
|
return _iterator.next();
|
|
8854
|
-
case
|
|
8887
|
+
case 3:
|
|
8855
8888
|
if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
|
|
8856
|
-
_context.next =
|
|
8889
|
+
_context.next = 5;
|
|
8857
8890
|
break;
|
|
8858
8891
|
}
|
|
8859
8892
|
chunk = _step.value;
|
|
8860
8893
|
ab = chunk.buffer.slice(chunk.byteOffset, chunk.byteOffset + chunk.byteLength);
|
|
8861
8894
|
this.addBuffer(ab);
|
|
8862
|
-
case
|
|
8895
|
+
case 4:
|
|
8863
8896
|
_iteratorAbruptCompletion = false;
|
|
8864
|
-
_context.next =
|
|
8897
|
+
_context.next = 2;
|
|
8865
8898
|
break;
|
|
8866
|
-
case
|
|
8867
|
-
_context.next =
|
|
8899
|
+
case 5:
|
|
8900
|
+
_context.next = 7;
|
|
8868
8901
|
break;
|
|
8869
|
-
case
|
|
8870
|
-
_context.prev =
|
|
8871
|
-
|
|
8902
|
+
case 6:
|
|
8903
|
+
_context.prev = 6;
|
|
8904
|
+
_t = _context["catch"](1);
|
|
8872
8905
|
_didIteratorError = true;
|
|
8873
|
-
_iteratorError =
|
|
8874
|
-
case
|
|
8875
|
-
_context.prev =
|
|
8876
|
-
_context.prev =
|
|
8906
|
+
_iteratorError = _t;
|
|
8907
|
+
case 7:
|
|
8908
|
+
_context.prev = 7;
|
|
8909
|
+
_context.prev = 8;
|
|
8877
8910
|
if (!(_iteratorAbruptCompletion && _iterator.return != null)) {
|
|
8878
|
-
_context.next =
|
|
8911
|
+
_context.next = 9;
|
|
8879
8912
|
break;
|
|
8880
8913
|
}
|
|
8881
|
-
_context.next =
|
|
8914
|
+
_context.next = 9;
|
|
8882
8915
|
return _iterator.return();
|
|
8883
|
-
case
|
|
8884
|
-
_context.prev =
|
|
8916
|
+
case 9:
|
|
8917
|
+
_context.prev = 9;
|
|
8885
8918
|
if (!_didIteratorError) {
|
|
8886
|
-
_context.next =
|
|
8919
|
+
_context.next = 10;
|
|
8887
8920
|
break;
|
|
8888
8921
|
}
|
|
8889
8922
|
throw _iteratorError;
|
|
8890
|
-
case
|
|
8891
|
-
return _context.finish(
|
|
8892
|
-
case
|
|
8893
|
-
return _context.finish(
|
|
8894
|
-
case
|
|
8923
|
+
case 10:
|
|
8924
|
+
return _context.finish(9);
|
|
8925
|
+
case 11:
|
|
8926
|
+
return _context.finish(7);
|
|
8927
|
+
case 12:
|
|
8895
8928
|
this.setComplete();
|
|
8896
|
-
case
|
|
8929
|
+
case 13:
|
|
8897
8930
|
case "end":
|
|
8898
8931
|
return _context.stop();
|
|
8899
8932
|
}
|
|
8900
|
-
}, _callee, this, [[
|
|
8933
|
+
}, _callee, this, [[1, 6, 7, 12], [8,, 9, 11]]);
|
|
8901
8934
|
}));
|
|
8902
8935
|
function fromAsyncStream(_x) {
|
|
8903
8936
|
return _fromAsyncStream.apply(this, arguments);
|
|
@@ -9014,10 +9047,8 @@ var BufferStream = /*#__PURE__*/function () {
|
|
|
9014
9047
|
return this.view.getBufferMemoryInfo(this.offset);
|
|
9015
9048
|
}
|
|
9016
9049
|
}]);
|
|
9017
|
-
return BufferStream;
|
|
9018
9050
|
}();
|
|
9019
|
-
var ReadBufferStream = /*#__PURE__*/function (
|
|
9020
|
-
_inherits(ReadBufferStream, _BufferStream);
|
|
9051
|
+
var ReadBufferStream = /*#__PURE__*/function (_BufferStream2) {
|
|
9021
9052
|
function ReadBufferStream(buffer, littleEndian) {
|
|
9022
9053
|
var _ref, _options$start;
|
|
9023
9054
|
var _this2;
|
|
@@ -9045,7 +9076,8 @@ var ReadBufferStream = /*#__PURE__*/function (_BufferStream) {
|
|
|
9045
9076
|
_this2.endOffset = _this2.size;
|
|
9046
9077
|
return _this2;
|
|
9047
9078
|
}
|
|
9048
|
-
|
|
9079
|
+
_inherits(ReadBufferStream, _BufferStream2);
|
|
9080
|
+
return _createClass(ReadBufferStream, [{
|
|
9049
9081
|
key: "setDecoder",
|
|
9050
9082
|
value: function setDecoder(decoder) {
|
|
9051
9083
|
this.decoder = decoder;
|
|
@@ -9137,19 +9169,17 @@ var ReadBufferStream = /*#__PURE__*/function (_BufferStream) {
|
|
|
9137
9169
|
throw new Error(stream, "concat not implemented");
|
|
9138
9170
|
}
|
|
9139
9171
|
}]);
|
|
9140
|
-
return ReadBufferStream;
|
|
9141
9172
|
}(BufferStream);
|
|
9142
9173
|
var DeflatedReadBufferStream = /*#__PURE__*/function (_ReadBufferStream) {
|
|
9143
|
-
_inherits(DeflatedReadBufferStream, _ReadBufferStream);
|
|
9144
9174
|
function DeflatedReadBufferStream(stream, options) {
|
|
9145
9175
|
_classCallCheck(this, DeflatedReadBufferStream);
|
|
9146
9176
|
var inflatedBuffer = pako.inflateRaw(stream.getBuffer(stream.offset, stream.size));
|
|
9147
9177
|
return _callSuper(this, DeflatedReadBufferStream, [inflatedBuffer.buffer, stream.littleEndian, options]);
|
|
9148
9178
|
}
|
|
9179
|
+
_inherits(DeflatedReadBufferStream, _ReadBufferStream);
|
|
9149
9180
|
return _createClass(DeflatedReadBufferStream);
|
|
9150
9181
|
}(ReadBufferStream);
|
|
9151
|
-
var WriteBufferStream = /*#__PURE__*/function (
|
|
9152
|
-
_inherits(WriteBufferStream, _BufferStream2);
|
|
9182
|
+
var WriteBufferStream = /*#__PURE__*/function (_BufferStream3) {
|
|
9153
9183
|
function WriteBufferStream(defaultSize, littleEndian) {
|
|
9154
9184
|
var _this3;
|
|
9155
9185
|
_classCallCheck(this, WriteBufferStream);
|
|
@@ -9160,6 +9190,7 @@ var WriteBufferStream = /*#__PURE__*/function (_BufferStream2) {
|
|
|
9160
9190
|
_this3.size = 0;
|
|
9161
9191
|
return _this3;
|
|
9162
9192
|
}
|
|
9193
|
+
_inherits(WriteBufferStream, _BufferStream3);
|
|
9163
9194
|
return _createClass(WriteBufferStream);
|
|
9164
9195
|
}(BufferStream);
|
|
9165
9196
|
|
|
@@ -9650,8 +9681,8 @@ function toWindows(inputArray, size) {
|
|
|
9650
9681
|
);
|
|
9651
9682
|
}
|
|
9652
9683
|
var DicomMessage$3, Tag$1, DicomMetaDictionary$1;
|
|
9653
|
-
var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT"],
|
|
9654
|
-
length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD"],
|
|
9684
|
+
var binaryVRs = ["FL", "FD", "SL", "SS", "UL", "US", "AT", "UV"],
|
|
9685
|
+
length32VRs = ["OB", "OW", "OF", "SQ", "UC", "UR", "UT", "UN", "OD", "UV"],
|
|
9655
9686
|
singleVRs$1 = ["SQ", "OF", "OW", "OB", "UN"];
|
|
9656
9687
|
var ValueRepresentation = /*#__PURE__*/function () {
|
|
9657
9688
|
function ValueRepresentation(type) {
|
|
@@ -9663,7 +9694,7 @@ var ValueRepresentation = /*#__PURE__*/function () {
|
|
|
9663
9694
|
this._isLength32 = length32VRs.indexOf(this.type) != -1;
|
|
9664
9695
|
this._storeRaw = true;
|
|
9665
9696
|
}
|
|
9666
|
-
_createClass(ValueRepresentation, [{
|
|
9697
|
+
return _createClass(ValueRepresentation, [{
|
|
9667
9698
|
key: "isBinary",
|
|
9668
9699
|
value: function isBinary() {
|
|
9669
9700
|
return this._isBinary;
|
|
@@ -9956,15 +9987,14 @@ var ValueRepresentation = /*#__PURE__*/function () {
|
|
|
9956
9987
|
return new ParsedUnknownValue(type);
|
|
9957
9988
|
}
|
|
9958
9989
|
}]);
|
|
9959
|
-
return ValueRepresentation;
|
|
9960
9990
|
}();
|
|
9961
9991
|
var AsciiStringRepresentation = /*#__PURE__*/function (_ValueRepresentation) {
|
|
9962
|
-
_inherits(AsciiStringRepresentation, _ValueRepresentation);
|
|
9963
9992
|
function AsciiStringRepresentation(type) {
|
|
9964
9993
|
_classCallCheck(this, AsciiStringRepresentation);
|
|
9965
9994
|
return _callSuper(this, AsciiStringRepresentation, [type]);
|
|
9966
9995
|
}
|
|
9967
|
-
|
|
9996
|
+
_inherits(AsciiStringRepresentation, _ValueRepresentation);
|
|
9997
|
+
return _createClass(AsciiStringRepresentation, [{
|
|
9968
9998
|
key: "readBytes",
|
|
9969
9999
|
value: function readBytes(stream, length) {
|
|
9970
10000
|
return stream.readAsciiString(length);
|
|
@@ -9976,15 +10006,14 @@ var AsciiStringRepresentation = /*#__PURE__*/function (_ValueRepresentation) {
|
|
|
9976
10006
|
return _get(_getPrototypeOf(AsciiStringRepresentation.prototype), "writeBytes", this).call(this, stream, value, written, writeOptions);
|
|
9977
10007
|
}
|
|
9978
10008
|
}]);
|
|
9979
|
-
return AsciiStringRepresentation;
|
|
9980
10009
|
}(ValueRepresentation);
|
|
9981
10010
|
var EncodedStringRepresentation = /*#__PURE__*/function (_ValueRepresentation2) {
|
|
9982
|
-
_inherits(EncodedStringRepresentation, _ValueRepresentation2);
|
|
9983
10011
|
function EncodedStringRepresentation(type) {
|
|
9984
10012
|
_classCallCheck(this, EncodedStringRepresentation);
|
|
9985
10013
|
return _callSuper(this, EncodedStringRepresentation, [type]);
|
|
9986
10014
|
}
|
|
9987
|
-
|
|
10015
|
+
_inherits(EncodedStringRepresentation, _ValueRepresentation2);
|
|
10016
|
+
return _createClass(EncodedStringRepresentation, [{
|
|
9988
10017
|
key: "readBytes",
|
|
9989
10018
|
value: function readBytes(stream, length) {
|
|
9990
10019
|
return stream.readEncodedString(length);
|
|
@@ -9996,10 +10025,8 @@ var EncodedStringRepresentation = /*#__PURE__*/function (_ValueRepresentation2)
|
|
|
9996
10025
|
return _get(_getPrototypeOf(EncodedStringRepresentation.prototype), "writeBytes", this).call(this, stream, value, written, writeOptions);
|
|
9997
10026
|
}
|
|
9998
10027
|
}]);
|
|
9999
|
-
return EncodedStringRepresentation;
|
|
10000
10028
|
}(ValueRepresentation);
|
|
10001
10029
|
var BinaryRepresentation = /*#__PURE__*/function (_ValueRepresentation3) {
|
|
10002
|
-
_inherits(BinaryRepresentation, _ValueRepresentation3);
|
|
10003
10030
|
function BinaryRepresentation(type) {
|
|
10004
10031
|
var _this;
|
|
10005
10032
|
_classCallCheck(this, BinaryRepresentation);
|
|
@@ -10007,7 +10034,8 @@ var BinaryRepresentation = /*#__PURE__*/function (_ValueRepresentation3) {
|
|
|
10007
10034
|
_this._storeRaw = false;
|
|
10008
10035
|
return _this;
|
|
10009
10036
|
}
|
|
10010
|
-
|
|
10037
|
+
_inherits(BinaryRepresentation, _ValueRepresentation3);
|
|
10038
|
+
return _createClass(BinaryRepresentation, [{
|
|
10011
10039
|
key: "writeBytes",
|
|
10012
10040
|
value: function writeBytes(stream, value, _syntax, isEncapsulated) {
|
|
10013
10041
|
var writeOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
@@ -10200,10 +10228,8 @@ var BinaryRepresentation = /*#__PURE__*/function (_ValueRepresentation3) {
|
|
|
10200
10228
|
}
|
|
10201
10229
|
}
|
|
10202
10230
|
}]);
|
|
10203
|
-
return BinaryRepresentation;
|
|
10204
10231
|
}(ValueRepresentation);
|
|
10205
10232
|
var ApplicationEntity = /*#__PURE__*/function (_AsciiStringRepresent) {
|
|
10206
|
-
_inherits(ApplicationEntity, _AsciiStringRepresent);
|
|
10207
10233
|
function ApplicationEntity() {
|
|
10208
10234
|
var _this2;
|
|
10209
10235
|
_classCallCheck(this, ApplicationEntity);
|
|
@@ -10212,7 +10238,8 @@ var ApplicationEntity = /*#__PURE__*/function (_AsciiStringRepresent) {
|
|
|
10212
10238
|
_this2.padByte = PADDING_SPACE;
|
|
10213
10239
|
return _this2;
|
|
10214
10240
|
}
|
|
10215
|
-
|
|
10241
|
+
_inherits(ApplicationEntity, _AsciiStringRepresent);
|
|
10242
|
+
return _createClass(ApplicationEntity, [{
|
|
10216
10243
|
key: "readBytes",
|
|
10217
10244
|
value: function readBytes(stream, length) {
|
|
10218
10245
|
return stream.readAsciiString(length);
|
|
@@ -10223,10 +10250,8 @@ var ApplicationEntity = /*#__PURE__*/function (_AsciiStringRepresent) {
|
|
|
10223
10250
|
return value.trim();
|
|
10224
10251
|
}
|
|
10225
10252
|
}]);
|
|
10226
|
-
return ApplicationEntity;
|
|
10227
10253
|
}(AsciiStringRepresentation);
|
|
10228
10254
|
var CodeString = /*#__PURE__*/function (_AsciiStringRepresent2) {
|
|
10229
|
-
_inherits(CodeString, _AsciiStringRepresent2);
|
|
10230
10255
|
function CodeString() {
|
|
10231
10256
|
var _this3;
|
|
10232
10257
|
_classCallCheck(this, CodeString);
|
|
@@ -10235,7 +10260,8 @@ var CodeString = /*#__PURE__*/function (_AsciiStringRepresent2) {
|
|
|
10235
10260
|
_this3.padByte = PADDING_SPACE;
|
|
10236
10261
|
return _this3;
|
|
10237
10262
|
}
|
|
10238
|
-
|
|
10263
|
+
_inherits(CodeString, _AsciiStringRepresent2);
|
|
10264
|
+
return _createClass(CodeString, [{
|
|
10239
10265
|
key: "readBytes",
|
|
10240
10266
|
value: function readBytes(stream, length) {
|
|
10241
10267
|
var BACKSLASH = String.fromCharCode(VM_DELIMITER);
|
|
@@ -10255,10 +10281,8 @@ var CodeString = /*#__PURE__*/function (_AsciiStringRepresent2) {
|
|
|
10255
10281
|
return trim(value);
|
|
10256
10282
|
}
|
|
10257
10283
|
}]);
|
|
10258
|
-
return CodeString;
|
|
10259
10284
|
}(AsciiStringRepresentation);
|
|
10260
10285
|
var AgeString = /*#__PURE__*/function (_AsciiStringRepresent3) {
|
|
10261
|
-
_inherits(AgeString, _AsciiStringRepresent3);
|
|
10262
10286
|
function AgeString() {
|
|
10263
10287
|
var _this4;
|
|
10264
10288
|
_classCallCheck(this, AgeString);
|
|
@@ -10269,10 +10293,10 @@ var AgeString = /*#__PURE__*/function (_AsciiStringRepresent3) {
|
|
|
10269
10293
|
_this4.defaultValue = "";
|
|
10270
10294
|
return _this4;
|
|
10271
10295
|
}
|
|
10296
|
+
_inherits(AgeString, _AsciiStringRepresent3);
|
|
10272
10297
|
return _createClass(AgeString);
|
|
10273
10298
|
}(AsciiStringRepresentation);
|
|
10274
10299
|
var AttributeTag = /*#__PURE__*/function (_ValueRepresentation4) {
|
|
10275
|
-
_inherits(AttributeTag, _ValueRepresentation4);
|
|
10276
10300
|
function AttributeTag() {
|
|
10277
10301
|
var _this5;
|
|
10278
10302
|
_classCallCheck(this, AttributeTag);
|
|
@@ -10283,7 +10307,8 @@ var AttributeTag = /*#__PURE__*/function (_ValueRepresentation4) {
|
|
|
10283
10307
|
_this5.fixed = true;
|
|
10284
10308
|
return _this5;
|
|
10285
10309
|
}
|
|
10286
|
-
|
|
10310
|
+
_inherits(AttributeTag, _ValueRepresentation4);
|
|
10311
|
+
return _createClass(AttributeTag, [{
|
|
10287
10312
|
key: "readBytes",
|
|
10288
10313
|
value: function readBytes(stream) {
|
|
10289
10314
|
return Tag$1.readTag(stream).value;
|
|
@@ -10294,10 +10319,8 @@ var AttributeTag = /*#__PURE__*/function (_ValueRepresentation4) {
|
|
|
10294
10319
|
return _get(_getPrototypeOf(AttributeTag.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(AttributeTag.prototype), "write", this).call(this, stream, "TwoUint16s", value), writeOptions);
|
|
10295
10320
|
}
|
|
10296
10321
|
}]);
|
|
10297
|
-
return AttributeTag;
|
|
10298
10322
|
}(ValueRepresentation);
|
|
10299
10323
|
var DateValue = /*#__PURE__*/function (_AsciiStringRepresent4) {
|
|
10300
|
-
_inherits(DateValue, _AsciiStringRepresent4);
|
|
10301
10324
|
function DateValue(value) {
|
|
10302
10325
|
var _this6;
|
|
10303
10326
|
_classCallCheck(this, DateValue);
|
|
@@ -10309,7 +10332,8 @@ var DateValue = /*#__PURE__*/function (_AsciiStringRepresent4) {
|
|
|
10309
10332
|
_this6.defaultValue = "";
|
|
10310
10333
|
return _this6;
|
|
10311
10334
|
}
|
|
10312
|
-
|
|
10335
|
+
_inherits(DateValue, _AsciiStringRepresent4);
|
|
10336
|
+
return _createClass(DateValue, [{
|
|
10313
10337
|
key: "checkLength",
|
|
10314
10338
|
value: function checkLength(value) {
|
|
10315
10339
|
if (typeof value === "string" || value instanceof String) {
|
|
@@ -10319,15 +10343,14 @@ var DateValue = /*#__PURE__*/function (_AsciiStringRepresent4) {
|
|
|
10319
10343
|
return true;
|
|
10320
10344
|
}
|
|
10321
10345
|
}]);
|
|
10322
|
-
return DateValue;
|
|
10323
10346
|
}(AsciiStringRepresentation);
|
|
10324
10347
|
var NumericStringRepresentation = /*#__PURE__*/function (_AsciiStringRepresent5) {
|
|
10325
|
-
_inherits(NumericStringRepresentation, _AsciiStringRepresent5);
|
|
10326
10348
|
function NumericStringRepresentation() {
|
|
10327
10349
|
_classCallCheck(this, NumericStringRepresentation);
|
|
10328
10350
|
return _callSuper(this, NumericStringRepresentation, arguments);
|
|
10329
10351
|
}
|
|
10330
|
-
|
|
10352
|
+
_inherits(NumericStringRepresentation, _AsciiStringRepresent5);
|
|
10353
|
+
return _createClass(NumericStringRepresentation, [{
|
|
10331
10354
|
key: "readBytes",
|
|
10332
10355
|
value: function readBytes(stream, length) {
|
|
10333
10356
|
var BACKSLASH = String.fromCharCode(VM_DELIMITER);
|
|
@@ -10335,10 +10358,8 @@ var NumericStringRepresentation = /*#__PURE__*/function (_AsciiStringRepresent5)
|
|
|
10335
10358
|
return this.dropPadByte(numStr.split(BACKSLASH));
|
|
10336
10359
|
}
|
|
10337
10360
|
}]);
|
|
10338
|
-
return NumericStringRepresentation;
|
|
10339
10361
|
}(AsciiStringRepresentation);
|
|
10340
10362
|
var DecimalString = /*#__PURE__*/function (_NumericStringReprese) {
|
|
10341
|
-
_inherits(DecimalString, _NumericStringReprese);
|
|
10342
10363
|
function DecimalString() {
|
|
10343
10364
|
var _this7;
|
|
10344
10365
|
_classCallCheck(this, DecimalString);
|
|
@@ -10347,7 +10368,8 @@ var DecimalString = /*#__PURE__*/function (_NumericStringReprese) {
|
|
|
10347
10368
|
_this7.padByte = PADDING_SPACE;
|
|
10348
10369
|
return _this7;
|
|
10349
10370
|
}
|
|
10350
|
-
|
|
10371
|
+
_inherits(DecimalString, _NumericStringReprese);
|
|
10372
|
+
return _createClass(DecimalString, [{
|
|
10351
10373
|
key: "applyFormatting",
|
|
10352
10374
|
value: function applyFormatting(value) {
|
|
10353
10375
|
var formatNumber = function formatNumber(numberStr) {
|
|
@@ -10404,10 +10426,8 @@ var DecimalString = /*#__PURE__*/function (_NumericStringReprese) {
|
|
|
10404
10426
|
return _get(_getPrototypeOf(DecimalString.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
|
|
10405
10427
|
}
|
|
10406
10428
|
}]);
|
|
10407
|
-
return DecimalString;
|
|
10408
10429
|
}(NumericStringRepresentation);
|
|
10409
10430
|
var DateTime = /*#__PURE__*/function (_AsciiStringRepresent6) {
|
|
10410
|
-
_inherits(DateTime, _AsciiStringRepresent6);
|
|
10411
10431
|
function DateTime() {
|
|
10412
10432
|
var _this9;
|
|
10413
10433
|
_classCallCheck(this, DateTime);
|
|
@@ -10417,7 +10437,8 @@ var DateTime = /*#__PURE__*/function (_AsciiStringRepresent6) {
|
|
|
10417
10437
|
_this9.padByte = PADDING_SPACE;
|
|
10418
10438
|
return _this9;
|
|
10419
10439
|
}
|
|
10420
|
-
|
|
10440
|
+
_inherits(DateTime, _AsciiStringRepresent6);
|
|
10441
|
+
return _createClass(DateTime, [{
|
|
10421
10442
|
key: "checkLength",
|
|
10422
10443
|
value: function checkLength(value) {
|
|
10423
10444
|
if (typeof value === "string" || value instanceof String) {
|
|
@@ -10427,10 +10448,8 @@ var DateTime = /*#__PURE__*/function (_AsciiStringRepresent6) {
|
|
|
10427
10448
|
return true;
|
|
10428
10449
|
}
|
|
10429
10450
|
}]);
|
|
10430
|
-
return DateTime;
|
|
10431
10451
|
}(AsciiStringRepresentation);
|
|
10432
10452
|
var FloatingPointSingle = /*#__PURE__*/function (_ValueRepresentation5) {
|
|
10433
|
-
_inherits(FloatingPointSingle, _ValueRepresentation5);
|
|
10434
10453
|
function FloatingPointSingle() {
|
|
10435
10454
|
var _this0;
|
|
10436
10455
|
_classCallCheck(this, FloatingPointSingle);
|
|
@@ -10441,7 +10460,8 @@ var FloatingPointSingle = /*#__PURE__*/function (_ValueRepresentation5) {
|
|
|
10441
10460
|
_this0.defaultValue = 0.0;
|
|
10442
10461
|
return _this0;
|
|
10443
10462
|
}
|
|
10444
|
-
|
|
10463
|
+
_inherits(FloatingPointSingle, _ValueRepresentation5);
|
|
10464
|
+
return _createClass(FloatingPointSingle, [{
|
|
10445
10465
|
key: "readBytes",
|
|
10446
10466
|
value: function readBytes(stream) {
|
|
10447
10467
|
return stream.readFloat();
|
|
@@ -10457,10 +10477,8 @@ var FloatingPointSingle = /*#__PURE__*/function (_ValueRepresentation5) {
|
|
|
10457
10477
|
return _get(_getPrototypeOf(FloatingPointSingle.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(FloatingPointSingle.prototype), "write", this).call(this, stream, "Float", value), writeOptions);
|
|
10458
10478
|
}
|
|
10459
10479
|
}]);
|
|
10460
|
-
return FloatingPointSingle;
|
|
10461
10480
|
}(ValueRepresentation);
|
|
10462
10481
|
var FloatingPointDouble = /*#__PURE__*/function (_ValueRepresentation6) {
|
|
10463
|
-
_inherits(FloatingPointDouble, _ValueRepresentation6);
|
|
10464
10482
|
function FloatingPointDouble() {
|
|
10465
10483
|
var _this1;
|
|
10466
10484
|
_classCallCheck(this, FloatingPointDouble);
|
|
@@ -10471,7 +10489,8 @@ var FloatingPointDouble = /*#__PURE__*/function (_ValueRepresentation6) {
|
|
|
10471
10489
|
_this1.defaultValue = 0.0;
|
|
10472
10490
|
return _this1;
|
|
10473
10491
|
}
|
|
10474
|
-
|
|
10492
|
+
_inherits(FloatingPointDouble, _ValueRepresentation6);
|
|
10493
|
+
return _createClass(FloatingPointDouble, [{
|
|
10475
10494
|
key: "readBytes",
|
|
10476
10495
|
value: function readBytes(stream) {
|
|
10477
10496
|
return stream.readDouble();
|
|
@@ -10487,10 +10506,8 @@ var FloatingPointDouble = /*#__PURE__*/function (_ValueRepresentation6) {
|
|
|
10487
10506
|
return _get(_getPrototypeOf(FloatingPointDouble.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(FloatingPointDouble.prototype), "write", this).call(this, stream, "Double", value), writeOptions);
|
|
10488
10507
|
}
|
|
10489
10508
|
}]);
|
|
10490
|
-
return FloatingPointDouble;
|
|
10491
10509
|
}(ValueRepresentation);
|
|
10492
10510
|
var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
|
|
10493
|
-
_inherits(IntegerString, _NumericStringReprese2);
|
|
10494
10511
|
function IntegerString() {
|
|
10495
10512
|
var _this10;
|
|
10496
10513
|
_classCallCheck(this, IntegerString);
|
|
@@ -10499,7 +10516,8 @@ var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
|
|
|
10499
10516
|
_this10.padByte = PADDING_SPACE;
|
|
10500
10517
|
return _this10;
|
|
10501
10518
|
}
|
|
10502
|
-
|
|
10519
|
+
_inherits(IntegerString, _NumericStringReprese2);
|
|
10520
|
+
return _createClass(IntegerString, [{
|
|
10503
10521
|
key: "applyFormatting",
|
|
10504
10522
|
value: function applyFormatting(value) {
|
|
10505
10523
|
var formatNumber = function formatNumber(numberStr) {
|
|
@@ -10527,10 +10545,8 @@ var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
|
|
|
10527
10545
|
return _get(_getPrototypeOf(IntegerString.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
|
|
10528
10546
|
}
|
|
10529
10547
|
}]);
|
|
10530
|
-
return IntegerString;
|
|
10531
10548
|
}(NumericStringRepresentation);
|
|
10532
10549
|
var LongString = /*#__PURE__*/function (_EncodedStringReprese) {
|
|
10533
|
-
_inherits(LongString, _EncodedStringReprese);
|
|
10534
10550
|
function LongString() {
|
|
10535
10551
|
var _this12;
|
|
10536
10552
|
_classCallCheck(this, LongString);
|
|
@@ -10539,7 +10555,8 @@ var LongString = /*#__PURE__*/function (_EncodedStringReprese) {
|
|
|
10539
10555
|
_this12.padByte = PADDING_SPACE;
|
|
10540
10556
|
return _this12;
|
|
10541
10557
|
}
|
|
10542
|
-
|
|
10558
|
+
_inherits(LongString, _EncodedStringReprese);
|
|
10559
|
+
return _createClass(LongString, [{
|
|
10543
10560
|
key: "readBytes",
|
|
10544
10561
|
value: function readBytes(stream, length) {
|
|
10545
10562
|
return stream.readEncodedString(length);
|
|
@@ -10550,10 +10567,8 @@ var LongString = /*#__PURE__*/function (_EncodedStringReprese) {
|
|
|
10550
10567
|
return value.trim();
|
|
10551
10568
|
}
|
|
10552
10569
|
}]);
|
|
10553
|
-
return LongString;
|
|
10554
10570
|
}(EncodedStringRepresentation);
|
|
10555
10571
|
var LongText = /*#__PURE__*/function (_EncodedStringReprese2) {
|
|
10556
|
-
_inherits(LongText, _EncodedStringReprese2);
|
|
10557
10572
|
function LongText() {
|
|
10558
10573
|
var _this13;
|
|
10559
10574
|
_classCallCheck(this, LongText);
|
|
@@ -10562,7 +10577,8 @@ var LongText = /*#__PURE__*/function (_EncodedStringReprese2) {
|
|
|
10562
10577
|
_this13.padByte = PADDING_SPACE;
|
|
10563
10578
|
return _this13;
|
|
10564
10579
|
}
|
|
10565
|
-
|
|
10580
|
+
_inherits(LongText, _EncodedStringReprese2);
|
|
10581
|
+
return _createClass(LongText, [{
|
|
10566
10582
|
key: "readBytes",
|
|
10567
10583
|
value: function readBytes(stream, length) {
|
|
10568
10584
|
return stream.readEncodedString(length);
|
|
@@ -10573,10 +10589,8 @@ var LongText = /*#__PURE__*/function (_EncodedStringReprese2) {
|
|
|
10573
10589
|
return rtrim(value);
|
|
10574
10590
|
}
|
|
10575
10591
|
}]);
|
|
10576
|
-
return LongText;
|
|
10577
10592
|
}(EncodedStringRepresentation);
|
|
10578
10593
|
var PersonName = /*#__PURE__*/function (_EncodedStringReprese3) {
|
|
10579
|
-
_inherits(PersonName, _EncodedStringReprese3);
|
|
10580
10594
|
function PersonName() {
|
|
10581
10595
|
var _this14;
|
|
10582
10596
|
_classCallCheck(this, PersonName);
|
|
@@ -10585,7 +10599,8 @@ var PersonName = /*#__PURE__*/function (_EncodedStringReprese3) {
|
|
|
10585
10599
|
_this14.padByte = PADDING_SPACE;
|
|
10586
10600
|
return _this14;
|
|
10587
10601
|
}
|
|
10588
|
-
|
|
10602
|
+
_inherits(PersonName, _EncodedStringReprese3);
|
|
10603
|
+
return _createClass(PersonName, [{
|
|
10589
10604
|
key: "addValueAccessors",
|
|
10590
10605
|
value:
|
|
10591
10606
|
// Adds toJSON and toString accessors to normalize PersonName output; ie toJSON
|
|
@@ -10688,10 +10703,8 @@ var PersonName = /*#__PURE__*/function (_EncodedStringReprese3) {
|
|
|
10688
10703
|
return true;
|
|
10689
10704
|
}
|
|
10690
10705
|
}]);
|
|
10691
|
-
return PersonName;
|
|
10692
10706
|
}(EncodedStringRepresentation);
|
|
10693
10707
|
var ShortString = /*#__PURE__*/function (_EncodedStringReprese4) {
|
|
10694
|
-
_inherits(ShortString, _EncodedStringReprese4);
|
|
10695
10708
|
function ShortString() {
|
|
10696
10709
|
var _this15;
|
|
10697
10710
|
_classCallCheck(this, ShortString);
|
|
@@ -10700,7 +10713,8 @@ var ShortString = /*#__PURE__*/function (_EncodedStringReprese4) {
|
|
|
10700
10713
|
_this15.padByte = PADDING_SPACE;
|
|
10701
10714
|
return _this15;
|
|
10702
10715
|
}
|
|
10703
|
-
|
|
10716
|
+
_inherits(ShortString, _EncodedStringReprese4);
|
|
10717
|
+
return _createClass(ShortString, [{
|
|
10704
10718
|
key: "readBytes",
|
|
10705
10719
|
value: function readBytes(stream, length) {
|
|
10706
10720
|
return stream.readEncodedString(length);
|
|
@@ -10711,10 +10725,8 @@ var ShortString = /*#__PURE__*/function (_EncodedStringReprese4) {
|
|
|
10711
10725
|
return value.trim();
|
|
10712
10726
|
}
|
|
10713
10727
|
}]);
|
|
10714
|
-
return ShortString;
|
|
10715
10728
|
}(EncodedStringRepresentation);
|
|
10716
10729
|
var SignedLong = /*#__PURE__*/function (_ValueRepresentation7) {
|
|
10717
|
-
_inherits(SignedLong, _ValueRepresentation7);
|
|
10718
10730
|
function SignedLong() {
|
|
10719
10731
|
var _this16;
|
|
10720
10732
|
_classCallCheck(this, SignedLong);
|
|
@@ -10725,7 +10737,8 @@ var SignedLong = /*#__PURE__*/function (_ValueRepresentation7) {
|
|
|
10725
10737
|
_this16.defaultValue = 0;
|
|
10726
10738
|
return _this16;
|
|
10727
10739
|
}
|
|
10728
|
-
|
|
10740
|
+
_inherits(SignedLong, _ValueRepresentation7);
|
|
10741
|
+
return _createClass(SignedLong, [{
|
|
10729
10742
|
key: "readBytes",
|
|
10730
10743
|
value: function readBytes(stream) {
|
|
10731
10744
|
return stream.readInt32();
|
|
@@ -10736,10 +10749,8 @@ var SignedLong = /*#__PURE__*/function (_ValueRepresentation7) {
|
|
|
10736
10749
|
return _get(_getPrototypeOf(SignedLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(SignedLong.prototype), "write", this).call(this, stream, "Int32", value), writeOptions);
|
|
10737
10750
|
}
|
|
10738
10751
|
}]);
|
|
10739
|
-
return SignedLong;
|
|
10740
10752
|
}(ValueRepresentation);
|
|
10741
10753
|
var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
|
|
10742
|
-
_inherits(SequenceOfItems, _ValueRepresentation8);
|
|
10743
10754
|
function SequenceOfItems() {
|
|
10744
10755
|
var _this17;
|
|
10745
10756
|
_classCallCheck(this, SequenceOfItems);
|
|
@@ -10750,7 +10761,8 @@ var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
|
|
|
10750
10761
|
_this17._storeRaw = false;
|
|
10751
10762
|
return _this17;
|
|
10752
10763
|
}
|
|
10753
|
-
|
|
10764
|
+
_inherits(SequenceOfItems, _ValueRepresentation8);
|
|
10765
|
+
return _createClass(SequenceOfItems, [{
|
|
10754
10766
|
key: "readBytes",
|
|
10755
10767
|
value: function readBytes(stream, sqlength, syntax) {
|
|
10756
10768
|
if (sqlength == 0x0) {
|
|
@@ -10862,10 +10874,8 @@ var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
|
|
|
10862
10874
|
return _get(_getPrototypeOf(SequenceOfItems.prototype), "writeBytes", this).call(this, stream, value, [written], writeOptions);
|
|
10863
10875
|
}
|
|
10864
10876
|
}]);
|
|
10865
|
-
return SequenceOfItems;
|
|
10866
10877
|
}(ValueRepresentation);
|
|
10867
10878
|
var SignedShort = /*#__PURE__*/function (_ValueRepresentation9) {
|
|
10868
|
-
_inherits(SignedShort, _ValueRepresentation9);
|
|
10869
10879
|
function SignedShort() {
|
|
10870
10880
|
var _this18;
|
|
10871
10881
|
_classCallCheck(this, SignedShort);
|
|
@@ -10877,7 +10887,8 @@ var SignedShort = /*#__PURE__*/function (_ValueRepresentation9) {
|
|
|
10877
10887
|
_this18.defaultValue = 0;
|
|
10878
10888
|
return _this18;
|
|
10879
10889
|
}
|
|
10880
|
-
|
|
10890
|
+
_inherits(SignedShort, _ValueRepresentation9);
|
|
10891
|
+
return _createClass(SignedShort, [{
|
|
10881
10892
|
key: "readBytes",
|
|
10882
10893
|
value: function readBytes(stream) {
|
|
10883
10894
|
return stream.readInt16();
|
|
@@ -10888,10 +10899,8 @@ var SignedShort = /*#__PURE__*/function (_ValueRepresentation9) {
|
|
|
10888
10899
|
return _get(_getPrototypeOf(SignedShort.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(SignedShort.prototype), "write", this).call(this, stream, "Int16", value), writeOptions);
|
|
10889
10900
|
}
|
|
10890
10901
|
}]);
|
|
10891
|
-
return SignedShort;
|
|
10892
10902
|
}(ValueRepresentation);
|
|
10893
10903
|
var ShortText = /*#__PURE__*/function (_EncodedStringReprese5) {
|
|
10894
|
-
_inherits(ShortText, _EncodedStringReprese5);
|
|
10895
10904
|
function ShortText() {
|
|
10896
10905
|
var _this19;
|
|
10897
10906
|
_classCallCheck(this, ShortText);
|
|
@@ -10900,7 +10909,8 @@ var ShortText = /*#__PURE__*/function (_EncodedStringReprese5) {
|
|
|
10900
10909
|
_this19.padByte = PADDING_SPACE;
|
|
10901
10910
|
return _this19;
|
|
10902
10911
|
}
|
|
10903
|
-
|
|
10912
|
+
_inherits(ShortText, _EncodedStringReprese5);
|
|
10913
|
+
return _createClass(ShortText, [{
|
|
10904
10914
|
key: "readBytes",
|
|
10905
10915
|
value: function readBytes(stream, length) {
|
|
10906
10916
|
return stream.readEncodedString(length);
|
|
@@ -10911,10 +10921,8 @@ var ShortText = /*#__PURE__*/function (_EncodedStringReprese5) {
|
|
|
10911
10921
|
return rtrim(value);
|
|
10912
10922
|
}
|
|
10913
10923
|
}]);
|
|
10914
|
-
return ShortText;
|
|
10915
10924
|
}(EncodedStringRepresentation);
|
|
10916
10925
|
var TimeValue = /*#__PURE__*/function (_AsciiStringRepresent7) {
|
|
10917
|
-
_inherits(TimeValue, _AsciiStringRepresent7);
|
|
10918
10926
|
function TimeValue() {
|
|
10919
10927
|
var _this20;
|
|
10920
10928
|
_classCallCheck(this, TimeValue);
|
|
@@ -10924,7 +10932,8 @@ var TimeValue = /*#__PURE__*/function (_AsciiStringRepresent7) {
|
|
|
10924
10932
|
_this20.padByte = PADDING_SPACE;
|
|
10925
10933
|
return _this20;
|
|
10926
10934
|
}
|
|
10927
|
-
|
|
10935
|
+
_inherits(TimeValue, _AsciiStringRepresent7);
|
|
10936
|
+
return _createClass(TimeValue, [{
|
|
10928
10937
|
key: "readBytes",
|
|
10929
10938
|
value: function readBytes(stream, length) {
|
|
10930
10939
|
return stream.readAsciiString(length);
|
|
@@ -10944,10 +10953,8 @@ var TimeValue = /*#__PURE__*/function (_AsciiStringRepresent7) {
|
|
|
10944
10953
|
return true;
|
|
10945
10954
|
}
|
|
10946
10955
|
}]);
|
|
10947
|
-
return TimeValue;
|
|
10948
10956
|
}(AsciiStringRepresentation);
|
|
10949
10957
|
var UnlimitedCharacters = /*#__PURE__*/function (_EncodedStringReprese6) {
|
|
10950
|
-
_inherits(UnlimitedCharacters, _EncodedStringReprese6);
|
|
10951
10958
|
function UnlimitedCharacters() {
|
|
10952
10959
|
var _this21;
|
|
10953
10960
|
_classCallCheck(this, UnlimitedCharacters);
|
|
@@ -10957,7 +10964,8 @@ var UnlimitedCharacters = /*#__PURE__*/function (_EncodedStringReprese6) {
|
|
|
10957
10964
|
_this21.padByte = PADDING_SPACE;
|
|
10958
10965
|
return _this21;
|
|
10959
10966
|
}
|
|
10960
|
-
|
|
10967
|
+
_inherits(UnlimitedCharacters, _EncodedStringReprese6);
|
|
10968
|
+
return _createClass(UnlimitedCharacters, [{
|
|
10961
10969
|
key: "readBytes",
|
|
10962
10970
|
value: function readBytes(stream, length) {
|
|
10963
10971
|
return stream.readEncodedString(length);
|
|
@@ -10968,10 +10976,8 @@ var UnlimitedCharacters = /*#__PURE__*/function (_EncodedStringReprese6) {
|
|
|
10968
10976
|
return rtrim(value);
|
|
10969
10977
|
}
|
|
10970
10978
|
}]);
|
|
10971
|
-
return UnlimitedCharacters;
|
|
10972
10979
|
}(EncodedStringRepresentation);
|
|
10973
10980
|
var UnlimitedText = /*#__PURE__*/function (_EncodedStringReprese7) {
|
|
10974
|
-
_inherits(UnlimitedText, _EncodedStringReprese7);
|
|
10975
10981
|
function UnlimitedText() {
|
|
10976
10982
|
var _this22;
|
|
10977
10983
|
_classCallCheck(this, UnlimitedText);
|
|
@@ -10980,7 +10986,8 @@ var UnlimitedText = /*#__PURE__*/function (_EncodedStringReprese7) {
|
|
|
10980
10986
|
_this22.padByte = PADDING_SPACE;
|
|
10981
10987
|
return _this22;
|
|
10982
10988
|
}
|
|
10983
|
-
|
|
10989
|
+
_inherits(UnlimitedText, _EncodedStringReprese7);
|
|
10990
|
+
return _createClass(UnlimitedText, [{
|
|
10984
10991
|
key: "readBytes",
|
|
10985
10992
|
value: function readBytes(stream, length) {
|
|
10986
10993
|
return stream.readEncodedString(length);
|
|
@@ -10991,10 +10998,8 @@ var UnlimitedText = /*#__PURE__*/function (_EncodedStringReprese7) {
|
|
|
10991
10998
|
return rtrim(value);
|
|
10992
10999
|
}
|
|
10993
11000
|
}]);
|
|
10994
|
-
return UnlimitedText;
|
|
10995
11001
|
}(EncodedStringRepresentation);
|
|
10996
11002
|
var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation0) {
|
|
10997
|
-
_inherits(UnsignedShort, _ValueRepresentation0);
|
|
10998
11003
|
function UnsignedShort() {
|
|
10999
11004
|
var _this23;
|
|
11000
11005
|
_classCallCheck(this, UnsignedShort);
|
|
@@ -11005,7 +11010,8 @@ var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation0) {
|
|
|
11005
11010
|
_this23.defaultValue = 0;
|
|
11006
11011
|
return _this23;
|
|
11007
11012
|
}
|
|
11008
|
-
|
|
11013
|
+
_inherits(UnsignedShort, _ValueRepresentation0);
|
|
11014
|
+
return _createClass(UnsignedShort, [{
|
|
11009
11015
|
key: "readBytes",
|
|
11010
11016
|
value: function readBytes(stream) {
|
|
11011
11017
|
return stream.readUint16();
|
|
@@ -11016,10 +11022,8 @@ var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation0) {
|
|
|
11016
11022
|
return _get(_getPrototypeOf(UnsignedShort.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(UnsignedShort.prototype), "write", this).call(this, stream, "Uint16", value), writeOptions);
|
|
11017
11023
|
}
|
|
11018
11024
|
}]);
|
|
11019
|
-
return UnsignedShort;
|
|
11020
11025
|
}(ValueRepresentation);
|
|
11021
11026
|
var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation1) {
|
|
11022
|
-
_inherits(UnsignedLong, _ValueRepresentation1);
|
|
11023
11027
|
function UnsignedLong() {
|
|
11024
11028
|
var _this24;
|
|
11025
11029
|
_classCallCheck(this, UnsignedLong);
|
|
@@ -11030,7 +11034,8 @@ var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation1) {
|
|
|
11030
11034
|
_this24.defaultValue = 0;
|
|
11031
11035
|
return _this24;
|
|
11032
11036
|
}
|
|
11033
|
-
|
|
11037
|
+
_inherits(UnsignedLong, _ValueRepresentation1);
|
|
11038
|
+
return _createClass(UnsignedLong, [{
|
|
11034
11039
|
key: "readBytes",
|
|
11035
11040
|
value: function readBytes(stream) {
|
|
11036
11041
|
return stream.readUint32();
|
|
@@ -11041,19 +11046,42 @@ var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation1) {
|
|
|
11041
11046
|
return _get(_getPrototypeOf(UnsignedLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(UnsignedLong.prototype), "write", this).call(this, stream, "Uint32", value), writeOptions);
|
|
11042
11047
|
}
|
|
11043
11048
|
}]);
|
|
11044
|
-
return UnsignedLong;
|
|
11045
11049
|
}(ValueRepresentation);
|
|
11046
|
-
var
|
|
11047
|
-
|
|
11048
|
-
function UniqueIdentifier() {
|
|
11050
|
+
var Unsigned64BitVeryLong = /*#__PURE__*/function (_ValueRepresentation10) {
|
|
11051
|
+
function Unsigned64BitVeryLong() {
|
|
11049
11052
|
var _this25;
|
|
11050
|
-
_classCallCheck(this,
|
|
11051
|
-
_this25 = _callSuper(this,
|
|
11052
|
-
_this25.maxLength =
|
|
11053
|
+
_classCallCheck(this, Unsigned64BitVeryLong);
|
|
11054
|
+
_this25 = _callSuper(this, Unsigned64BitVeryLong, ["UV"]);
|
|
11055
|
+
_this25.maxLength = 8;
|
|
11053
11056
|
_this25.padByte = PADDING_NULL;
|
|
11057
|
+
_this25.fixed = true;
|
|
11058
|
+
_this25.defaultValue = 0;
|
|
11054
11059
|
return _this25;
|
|
11055
11060
|
}
|
|
11056
|
-
|
|
11061
|
+
_inherits(Unsigned64BitVeryLong, _ValueRepresentation10);
|
|
11062
|
+
return _createClass(Unsigned64BitVeryLong, [{
|
|
11063
|
+
key: "readBytes",
|
|
11064
|
+
value: function readBytes(stream) {
|
|
11065
|
+
return stream.readBigUint64();
|
|
11066
|
+
}
|
|
11067
|
+
}, {
|
|
11068
|
+
key: "writeBytes",
|
|
11069
|
+
value: function writeBytes(stream, value, writeOptions) {
|
|
11070
|
+
return _get(_getPrototypeOf(Unsigned64BitVeryLong.prototype), "writeBytes", this).call(this, stream, value, _get(_getPrototypeOf(Unsigned64BitVeryLong.prototype), "write", this).call(this, stream, "BigUint64", value), writeOptions);
|
|
11071
|
+
}
|
|
11072
|
+
}]);
|
|
11073
|
+
}(ValueRepresentation);
|
|
11074
|
+
var UniqueIdentifier = /*#__PURE__*/function (_AsciiStringRepresent8) {
|
|
11075
|
+
function UniqueIdentifier() {
|
|
11076
|
+
var _this26;
|
|
11077
|
+
_classCallCheck(this, UniqueIdentifier);
|
|
11078
|
+
_this26 = _callSuper(this, UniqueIdentifier, ["UI"]);
|
|
11079
|
+
_this26.maxLength = 64;
|
|
11080
|
+
_this26.padByte = PADDING_NULL;
|
|
11081
|
+
return _this26;
|
|
11082
|
+
}
|
|
11083
|
+
_inherits(UniqueIdentifier, _AsciiStringRepresent8);
|
|
11084
|
+
return _createClass(UniqueIdentifier, [{
|
|
11057
11085
|
key: "readBytes",
|
|
11058
11086
|
value: function readBytes(stream, length) {
|
|
11059
11087
|
var result = this.readPaddedAsciiString(stream, length);
|
|
@@ -11085,55 +11113,53 @@ var UniqueIdentifier = /*#__PURE__*/function (_AsciiStringRepresent8) {
|
|
|
11085
11113
|
return removeInvalidUidChars(value);
|
|
11086
11114
|
}
|
|
11087
11115
|
}]);
|
|
11088
|
-
return UniqueIdentifier;
|
|
11089
11116
|
}(AsciiStringRepresentation);
|
|
11090
11117
|
var UniversalResource = /*#__PURE__*/function (_AsciiStringRepresent9) {
|
|
11091
|
-
_inherits(UniversalResource, _AsciiStringRepresent9);
|
|
11092
11118
|
function UniversalResource() {
|
|
11093
|
-
var
|
|
11119
|
+
var _this27;
|
|
11094
11120
|
_classCallCheck(this, UniversalResource);
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
return
|
|
11121
|
+
_this27 = _callSuper(this, UniversalResource, ["UR"]);
|
|
11122
|
+
_this27.maxLength = null;
|
|
11123
|
+
_this27.padByte = PADDING_SPACE;
|
|
11124
|
+
return _this27;
|
|
11099
11125
|
}
|
|
11100
|
-
|
|
11126
|
+
_inherits(UniversalResource, _AsciiStringRepresent9);
|
|
11127
|
+
return _createClass(UniversalResource, [{
|
|
11101
11128
|
key: "readBytes",
|
|
11102
11129
|
value: function readBytes(stream, length) {
|
|
11103
11130
|
return stream.readAsciiString(length);
|
|
11104
11131
|
}
|
|
11105
11132
|
}]);
|
|
11106
|
-
return UniversalResource;
|
|
11107
11133
|
}(AsciiStringRepresentation);
|
|
11108
11134
|
var UnknownValue = /*#__PURE__*/function (_BinaryRepresentation) {
|
|
11109
|
-
_inherits(UnknownValue, _BinaryRepresentation);
|
|
11110
11135
|
function UnknownValue() {
|
|
11111
|
-
var
|
|
11136
|
+
var _this28;
|
|
11112
11137
|
_classCallCheck(this, UnknownValue);
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
return
|
|
11138
|
+
_this28 = _callSuper(this, UnknownValue, ["UN"]);
|
|
11139
|
+
_this28.maxLength = null;
|
|
11140
|
+
_this28.padByte = PADDING_NULL;
|
|
11141
|
+
_this28.noMultiple = true;
|
|
11142
|
+
return _this28;
|
|
11118
11143
|
}
|
|
11144
|
+
_inherits(UnknownValue, _BinaryRepresentation);
|
|
11119
11145
|
return _createClass(UnknownValue);
|
|
11120
11146
|
}(BinaryRepresentation);
|
|
11121
11147
|
var ParsedUnknownValue = /*#__PURE__*/function (_BinaryRepresentation2) {
|
|
11122
|
-
_inherits(ParsedUnknownValue, _BinaryRepresentation2);
|
|
11123
11148
|
function ParsedUnknownValue(vr) {
|
|
11124
|
-
var
|
|
11149
|
+
var _this29;
|
|
11125
11150
|
_classCallCheck(this, ParsedUnknownValue);
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
return
|
|
11151
|
+
_this29 = _callSuper(this, ParsedUnknownValue, [vr]);
|
|
11152
|
+
_this29.maxLength = null;
|
|
11153
|
+
_this29.padByte = 0;
|
|
11154
|
+
_this29.noMultiple = true;
|
|
11155
|
+
_this29._isBinary = true;
|
|
11156
|
+
_this29._allowMultiple = false;
|
|
11157
|
+
_this29._isLength32 = true;
|
|
11158
|
+
_this29._storeRaw = true;
|
|
11159
|
+
return _this29;
|
|
11135
11160
|
}
|
|
11136
|
-
|
|
11161
|
+
_inherits(ParsedUnknownValue, _BinaryRepresentation2);
|
|
11162
|
+
return _createClass(ParsedUnknownValue, [{
|
|
11137
11163
|
key: "read",
|
|
11138
11164
|
value: function read(stream, length, syntax, readOptions) {
|
|
11139
11165
|
var arrayBuffer = this.readBytes(stream, length, syntax)[0];
|
|
@@ -11160,58 +11186,57 @@ var ParsedUnknownValue = /*#__PURE__*/function (_BinaryRepresentation2) {
|
|
|
11160
11186
|
}
|
|
11161
11187
|
}
|
|
11162
11188
|
}]);
|
|
11163
|
-
return ParsedUnknownValue;
|
|
11164
11189
|
}(BinaryRepresentation);
|
|
11165
11190
|
var OtherWordString = /*#__PURE__*/function (_BinaryRepresentation3) {
|
|
11166
|
-
_inherits(OtherWordString, _BinaryRepresentation3);
|
|
11167
11191
|
function OtherWordString() {
|
|
11168
|
-
var _this29;
|
|
11169
|
-
_classCallCheck(this, OtherWordString);
|
|
11170
|
-
_this29 = _callSuper(this, OtherWordString, ["OW"]);
|
|
11171
|
-
_this29.maxLength = null;
|
|
11172
|
-
_this29.padByte = PADDING_NULL;
|
|
11173
|
-
_this29.noMultiple = true;
|
|
11174
|
-
return _this29;
|
|
11175
|
-
}
|
|
11176
|
-
return _createClass(OtherWordString);
|
|
11177
|
-
}(BinaryRepresentation);
|
|
11178
|
-
var OtherByteString = /*#__PURE__*/function (_BinaryRepresentation4) {
|
|
11179
|
-
_inherits(OtherByteString, _BinaryRepresentation4);
|
|
11180
|
-
function OtherByteString() {
|
|
11181
11192
|
var _this30;
|
|
11182
|
-
_classCallCheck(this,
|
|
11183
|
-
_this30 = _callSuper(this,
|
|
11193
|
+
_classCallCheck(this, OtherWordString);
|
|
11194
|
+
_this30 = _callSuper(this, OtherWordString, ["OW"]);
|
|
11184
11195
|
_this30.maxLength = null;
|
|
11185
11196
|
_this30.padByte = PADDING_NULL;
|
|
11186
11197
|
_this30.noMultiple = true;
|
|
11187
11198
|
return _this30;
|
|
11188
11199
|
}
|
|
11189
|
-
|
|
11200
|
+
_inherits(OtherWordString, _BinaryRepresentation3);
|
|
11201
|
+
return _createClass(OtherWordString);
|
|
11190
11202
|
}(BinaryRepresentation);
|
|
11191
|
-
var
|
|
11192
|
-
|
|
11193
|
-
function OtherDoubleString() {
|
|
11203
|
+
var OtherByteString = /*#__PURE__*/function (_BinaryRepresentation4) {
|
|
11204
|
+
function OtherByteString() {
|
|
11194
11205
|
var _this31;
|
|
11195
|
-
_classCallCheck(this,
|
|
11196
|
-
_this31 = _callSuper(this,
|
|
11206
|
+
_classCallCheck(this, OtherByteString);
|
|
11207
|
+
_this31 = _callSuper(this, OtherByteString, ["OB"]);
|
|
11197
11208
|
_this31.maxLength = null;
|
|
11198
11209
|
_this31.padByte = PADDING_NULL;
|
|
11199
11210
|
_this31.noMultiple = true;
|
|
11200
11211
|
return _this31;
|
|
11201
11212
|
}
|
|
11202
|
-
|
|
11213
|
+
_inherits(OtherByteString, _BinaryRepresentation4);
|
|
11214
|
+
return _createClass(OtherByteString);
|
|
11203
11215
|
}(BinaryRepresentation);
|
|
11204
|
-
var
|
|
11205
|
-
|
|
11206
|
-
function OtherFloatString() {
|
|
11216
|
+
var OtherDoubleString = /*#__PURE__*/function (_BinaryRepresentation5) {
|
|
11217
|
+
function OtherDoubleString() {
|
|
11207
11218
|
var _this32;
|
|
11208
|
-
_classCallCheck(this,
|
|
11209
|
-
_this32 = _callSuper(this,
|
|
11219
|
+
_classCallCheck(this, OtherDoubleString);
|
|
11220
|
+
_this32 = _callSuper(this, OtherDoubleString, ["OD"]);
|
|
11210
11221
|
_this32.maxLength = null;
|
|
11211
11222
|
_this32.padByte = PADDING_NULL;
|
|
11212
11223
|
_this32.noMultiple = true;
|
|
11213
11224
|
return _this32;
|
|
11214
11225
|
}
|
|
11226
|
+
_inherits(OtherDoubleString, _BinaryRepresentation5);
|
|
11227
|
+
return _createClass(OtherDoubleString);
|
|
11228
|
+
}(BinaryRepresentation);
|
|
11229
|
+
var OtherFloatString = /*#__PURE__*/function (_BinaryRepresentation6) {
|
|
11230
|
+
function OtherFloatString() {
|
|
11231
|
+
var _this33;
|
|
11232
|
+
_classCallCheck(this, OtherFloatString);
|
|
11233
|
+
_this33 = _callSuper(this, OtherFloatString, ["OF"]);
|
|
11234
|
+
_this33.maxLength = null;
|
|
11235
|
+
_this33.padByte = PADDING_NULL;
|
|
11236
|
+
_this33.noMultiple = true;
|
|
11237
|
+
return _this33;
|
|
11238
|
+
}
|
|
11239
|
+
_inherits(OtherFloatString, _BinaryRepresentation6);
|
|
11215
11240
|
return _createClass(OtherFloatString);
|
|
11216
11241
|
}(BinaryRepresentation); // these VR instances are precreate and are reused for each requested vr/tag
|
|
11217
11242
|
var VRinstances = {
|
|
@@ -11244,7 +11269,8 @@ var VRinstances = {
|
|
|
11244
11269
|
UN: new UnknownValue(),
|
|
11245
11270
|
UR: new UniversalResource(),
|
|
11246
11271
|
US: new UnsignedShort(),
|
|
11247
|
-
UT: new UnlimitedText()
|
|
11272
|
+
UT: new UnlimitedText(),
|
|
11273
|
+
UV: new Unsigned64BitVeryLong()
|
|
11248
11274
|
};
|
|
11249
11275
|
|
|
11250
11276
|
var EXPLICIT_LITTLE_ENDIAN = "1.2.840.10008.1.2.1";
|
|
@@ -11255,7 +11281,7 @@ var DicomDict = /*#__PURE__*/function () {
|
|
|
11255
11281
|
this.meta = meta;
|
|
11256
11282
|
this.dict = {};
|
|
11257
11283
|
}
|
|
11258
|
-
_createClass(DicomDict, [{
|
|
11284
|
+
return _createClass(DicomDict, [{
|
|
11259
11285
|
key: "upsertTag",
|
|
11260
11286
|
value: function upsertTag(tag, vr, values) {
|
|
11261
11287
|
if (this.dict[tag]) {
|
|
@@ -11300,7 +11326,6 @@ var DicomDict = /*#__PURE__*/function () {
|
|
|
11300
11326
|
DicomMessage$2 = dicomMessageClass;
|
|
11301
11327
|
}
|
|
11302
11328
|
}]);
|
|
11303
|
-
return DicomDict;
|
|
11304
11329
|
}();
|
|
11305
11330
|
|
|
11306
11331
|
// AUTO-GENERATED from dictionary.js. Exact (GGGG,EEEE) tags only.
|
|
@@ -12139,7 +12164,7 @@ var DicomMetaDictionary = /*#__PURE__*/function () {
|
|
|
12139
12164
|
this.customDictionary = customDictionary;
|
|
12140
12165
|
this.customNameMap = DicomMetaDictionary._generateCustomNameMap(customDictionary);
|
|
12141
12166
|
}
|
|
12142
|
-
_createClass(DicomMetaDictionary, [{
|
|
12167
|
+
return _createClass(DicomMetaDictionary, [{
|
|
12143
12168
|
key: "denaturalizeDataset",
|
|
12144
12169
|
value:
|
|
12145
12170
|
// denaturalizes dataset using custom dictionary and nameMap
|
|
@@ -12485,7 +12510,6 @@ var DicomMetaDictionary = /*#__PURE__*/function () {
|
|
|
12485
12510
|
});
|
|
12486
12511
|
}
|
|
12487
12512
|
}]);
|
|
12488
|
-
return DicomMetaDictionary;
|
|
12489
12513
|
}();
|
|
12490
12514
|
|
|
12491
12515
|
// Subset of those listed at:
|
|
@@ -12541,7 +12565,7 @@ var Tag = /*#__PURE__*/function () {
|
|
|
12541
12565
|
}
|
|
12542
12566
|
|
|
12543
12567
|
/** Helper method to avoid circular dependencies */
|
|
12544
|
-
_createClass(Tag, [{
|
|
12568
|
+
return _createClass(Tag, [{
|
|
12545
12569
|
key: "toString",
|
|
12546
12570
|
value: function toString() {
|
|
12547
12571
|
return "(" + paddingLeft("0000", this.group().toString(16).toUpperCase()) + "," + paddingLeft("0000", this.element().toString(16).toUpperCase()) + ")";
|
|
@@ -12710,7 +12734,6 @@ var Tag = /*#__PURE__*/function () {
|
|
|
12710
12734
|
throw Error("Invalid tag in sequence");
|
|
12711
12735
|
}
|
|
12712
12736
|
}]);
|
|
12713
|
-
return Tag;
|
|
12714
12737
|
}();
|
|
12715
12738
|
ValueRepresentation.setTagClass(Tag);
|
|
12716
12739
|
|
|
@@ -12753,7 +12776,7 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
12753
12776
|
function DicomMessage() {
|
|
12754
12777
|
_classCallCheck(this, DicomMessage);
|
|
12755
12778
|
}
|
|
12756
|
-
_createClass(DicomMessage, null, [{
|
|
12779
|
+
return _createClass(DicomMessage, null, [{
|
|
12757
12780
|
key: "read",
|
|
12758
12781
|
value: function read(bufferStream, syntax, ignoreErrors) {
|
|
12759
12782
|
var untilTag = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
@@ -13074,7 +13097,6 @@ var DicomMessage = /*#__PURE__*/function () {
|
|
|
13074
13097
|
return DicomMetaDictionary.dictionary[tag.toString()];
|
|
13075
13098
|
}
|
|
13076
13099
|
}]);
|
|
13077
|
-
return DicomMessage;
|
|
13078
13100
|
}();
|
|
13079
13101
|
|
|
13080
13102
|
// AUTO-GENERATED from dictionary.mjs by generate/pack_private.mjs
|
|
@@ -13183,7 +13205,7 @@ var DICOMWEB = /*#__PURE__*/function () {
|
|
|
13183
13205
|
this.rootURL = options.rootURL;
|
|
13184
13206
|
this.progressCallback = options.progressCallback;
|
|
13185
13207
|
}
|
|
13186
|
-
_createClass(DICOMWEB, [{
|
|
13208
|
+
return _createClass(DICOMWEB, [{
|
|
13187
13209
|
key: "request",
|
|
13188
13210
|
value: function request(endpoint) {
|
|
13189
13211
|
var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -13293,7 +13315,6 @@ var DICOMWEB = /*#__PURE__*/function () {
|
|
|
13293
13315
|
return array[Math.floor(Math.random() * array.length)];
|
|
13294
13316
|
}
|
|
13295
13317
|
}]);
|
|
13296
|
-
return DICOMWEB;
|
|
13297
13318
|
}();
|
|
13298
13319
|
|
|
13299
13320
|
//
|
|
@@ -13313,7 +13334,7 @@ var Colors = /*#__PURE__*/function () {
|
|
|
13313
13334
|
function Colors() {
|
|
13314
13335
|
_classCallCheck(this, Colors);
|
|
13315
13336
|
}
|
|
13316
|
-
_createClass(Colors, null, [{
|
|
13337
|
+
return _createClass(Colors, null, [{
|
|
13317
13338
|
key: "d65WhitePointXYZ",
|
|
13318
13339
|
value: function d65WhitePointXYZ() {
|
|
13319
13340
|
// white points of D65 light point (CIELAB standard white point)
|
|
@@ -13444,7 +13465,6 @@ var Colors = /*#__PURE__*/function () {
|
|
|
13444
13465
|
}
|
|
13445
13466
|
}
|
|
13446
13467
|
}]);
|
|
13447
|
-
return Colors;
|
|
13448
13468
|
}();
|
|
13449
13469
|
|
|
13450
13470
|
/**
|
|
@@ -13592,7 +13612,7 @@ var DicomMetadataListener = /*#__PURE__*/function () {
|
|
|
13592
13612
|
* @param {Object} options.information - Optional information to pass to the filters
|
|
13593
13613
|
* @returns {void}
|
|
13594
13614
|
*/
|
|
13595
|
-
_createClass(DicomMetadataListener, [{
|
|
13615
|
+
return _createClass(DicomMetadataListener, [{
|
|
13596
13616
|
key: "setDrain",
|
|
13597
13617
|
value:
|
|
13598
13618
|
/**
|
|
@@ -13792,7 +13812,6 @@ var DicomMetadataListener = /*#__PURE__*/function () {
|
|
|
13792
13812
|
return undefined;
|
|
13793
13813
|
}
|
|
13794
13814
|
}]);
|
|
13795
|
-
return DicomMetadataListener;
|
|
13796
13815
|
}();
|
|
13797
13816
|
|
|
13798
13817
|
var readLog = log.getLogger("AsyncDicomReader");
|
|
@@ -13820,7 +13839,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
13820
13839
|
}
|
|
13821
13840
|
|
|
13822
13841
|
/** Sentinel returned when stream is Part 10 but has no preamble (starts with meta). */
|
|
13823
|
-
_createClass(AsyncDicomReader, [{
|
|
13842
|
+
return _createClass(AsyncDicomReader, [{
|
|
13824
13843
|
key: "readPreamble",
|
|
13825
13844
|
value: (
|
|
13826
13845
|
/**
|
|
@@ -13836,40 +13855,40 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
13836
13855
|
function () {
|
|
13837
13856
|
var _readPreamble = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
13838
13857
|
var stream, group;
|
|
13839
|
-
return _regeneratorRuntime().wrap(function
|
|
13858
|
+
return _regeneratorRuntime().wrap(function (_context) {
|
|
13840
13859
|
while (1) switch (_context.prev = _context.next) {
|
|
13841
13860
|
case 0:
|
|
13842
13861
|
stream = this.stream;
|
|
13843
|
-
_context.next =
|
|
13862
|
+
_context.next = 1;
|
|
13844
13863
|
return stream.ensureAvailable();
|
|
13845
|
-
case
|
|
13864
|
+
case 1:
|
|
13846
13865
|
stream.reset();
|
|
13847
13866
|
stream.increment(128);
|
|
13848
13867
|
if (!(stream.readAsciiString(4) !== "DICM")) {
|
|
13849
|
-
_context.next =
|
|
13868
|
+
_context.next = 5;
|
|
13850
13869
|
break;
|
|
13851
13870
|
}
|
|
13852
13871
|
stream.reset();
|
|
13853
|
-
_context.next =
|
|
13872
|
+
_context.next = 2;
|
|
13854
13873
|
return stream.ensureAvailable(4);
|
|
13855
|
-
case
|
|
13874
|
+
case 2:
|
|
13856
13875
|
stream.setEndian(true); // Part 10 meta and tag are little-endian
|
|
13857
13876
|
group = stream.readUint16();
|
|
13858
13877
|
stream.readUint16(); // element
|
|
13859
13878
|
stream.reset();
|
|
13860
13879
|
if (!(group === 0x0002)) {
|
|
13861
|
-
_context.next =
|
|
13880
|
+
_context.next = 3;
|
|
13862
13881
|
break;
|
|
13863
13882
|
}
|
|
13864
13883
|
return _context.abrupt("return", AsyncDicomReader.PART10_NO_PREAMBLE);
|
|
13865
|
-
case
|
|
13866
|
-
_context.next =
|
|
13884
|
+
case 3:
|
|
13885
|
+
_context.next = 4;
|
|
13867
13886
|
return this.detectRawEncoding();
|
|
13868
|
-
case
|
|
13887
|
+
case 4:
|
|
13869
13888
|
return _context.abrupt("return", false);
|
|
13870
|
-
case
|
|
13889
|
+
case 5:
|
|
13871
13890
|
return _context.abrupt("return", true);
|
|
13872
|
-
case
|
|
13891
|
+
case 6:
|
|
13873
13892
|
case "end":
|
|
13874
13893
|
return _context.stop();
|
|
13875
13894
|
}
|
|
@@ -13895,13 +13914,13 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
13895
13914
|
value: (function () {
|
|
13896
13915
|
var _detectRawEncoding = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13897
13916
|
var stream, group, byte4, byte5, potentialLength, isASCIILetter, vrCandidate;
|
|
13898
|
-
return _regeneratorRuntime().wrap(function
|
|
13917
|
+
return _regeneratorRuntime().wrap(function (_context2) {
|
|
13899
13918
|
while (1) switch (_context2.prev = _context2.next) {
|
|
13900
13919
|
case 0:
|
|
13901
13920
|
stream = this.stream;
|
|
13902
|
-
_context2.next =
|
|
13921
|
+
_context2.next = 1;
|
|
13903
13922
|
return stream.ensureAvailable(8);
|
|
13904
|
-
case
|
|
13923
|
+
case 1:
|
|
13905
13924
|
// Need at least 8 bytes (tag + length) to detect
|
|
13906
13925
|
|
|
13907
13926
|
stream.reset();
|
|
@@ -13913,18 +13932,18 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
13913
13932
|
|
|
13914
13933
|
// Part 10 meta (group 0002) is handled in readPreamble; raw dataset can start with 0008, 0028, etc.
|
|
13915
13934
|
if (!(group === 0x0002)) {
|
|
13916
|
-
_context2.next =
|
|
13935
|
+
_context2.next = 2;
|
|
13917
13936
|
break;
|
|
13918
13937
|
}
|
|
13919
13938
|
throw new Error("Invalid DICOM file: stream starts with meta (0002,xxxx) but was not handled as Part 10");
|
|
13920
|
-
case
|
|
13939
|
+
case 2:
|
|
13921
13940
|
// Check if bytes 4-5 (after tag) look like a valid VR (2 ASCII letters)
|
|
13922
13941
|
byte4 = stream.peekUint8(0);
|
|
13923
13942
|
byte5 = stream.peekUint8(1); // If we're going to assume LEI, check the length is even (DICOM requirement)
|
|
13924
13943
|
// Read the length value (4 bytes after tag in LEI format) as little-endian uint32
|
|
13925
|
-
_context2.next =
|
|
13944
|
+
_context2.next = 3;
|
|
13926
13945
|
return stream.ensureAvailable(8);
|
|
13927
|
-
case
|
|
13946
|
+
case 3:
|
|
13928
13947
|
// Need at least 8 bytes (tag + length)
|
|
13929
13948
|
potentialLength = stream.view.getUint32(stream.offset, true); // true = little endian
|
|
13930
13949
|
isASCIILetter = function isASCIILetter(byte) {
|
|
@@ -13933,42 +13952,42 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
13933
13952
|
byte >= 0x61 && byte <= 0x7a; // a-z
|
|
13934
13953
|
};
|
|
13935
13954
|
if (!(isASCIILetter(byte4) && isASCIILetter(byte5))) {
|
|
13936
|
-
_context2.next =
|
|
13955
|
+
_context2.next = 7;
|
|
13937
13956
|
break;
|
|
13938
13957
|
}
|
|
13939
13958
|
// Check if it's a valid VR code
|
|
13940
13959
|
vrCandidate = String.fromCharCode(byte4, byte5).toUpperCase();
|
|
13941
13960
|
if (!VALID_VRS.has(vrCandidate)) {
|
|
13942
|
-
_context2.next =
|
|
13961
|
+
_context2.next = 4;
|
|
13943
13962
|
break;
|
|
13944
13963
|
}
|
|
13945
13964
|
// Valid VR detected - this is LEE (Explicit Little Endian)
|
|
13946
13965
|
this.syntax = EXPLICIT_LITTLE_ENDIAN$1;
|
|
13947
|
-
_context2.next =
|
|
13966
|
+
_context2.next = 6;
|
|
13948
13967
|
break;
|
|
13949
|
-
case
|
|
13968
|
+
case 4:
|
|
13950
13969
|
if (!(potentialLength % 2 !== 0)) {
|
|
13951
|
-
_context2.next =
|
|
13970
|
+
_context2.next = 5;
|
|
13952
13971
|
break;
|
|
13953
13972
|
}
|
|
13954
13973
|
throw new Error("Invalid DICOM file: detected LEI encoding but length is odd (".concat(potentialLength, "), which is not allowed in DICOM"));
|
|
13955
|
-
case
|
|
13974
|
+
case 5:
|
|
13956
13975
|
this.syntax = IMPLICIT_LITTLE_ENDIAN;
|
|
13957
|
-
case
|
|
13958
|
-
_context2.next =
|
|
13976
|
+
case 6:
|
|
13977
|
+
_context2.next = 9;
|
|
13959
13978
|
break;
|
|
13960
|
-
case
|
|
13979
|
+
case 7:
|
|
13961
13980
|
if (!(potentialLength % 2 !== 0)) {
|
|
13962
|
-
_context2.next =
|
|
13981
|
+
_context2.next = 8;
|
|
13963
13982
|
break;
|
|
13964
13983
|
}
|
|
13965
13984
|
throw new Error("Invalid DICOM file: detected LEI encoding but length is odd (".concat(potentialLength, "), which is not allowed in DICOM"));
|
|
13966
|
-
case
|
|
13985
|
+
case 8:
|
|
13967
13986
|
this.syntax = IMPLICIT_LITTLE_ENDIAN;
|
|
13968
|
-
case
|
|
13987
|
+
case 9:
|
|
13969
13988
|
// Reset stream to beginning for reading
|
|
13970
13989
|
stream.reset();
|
|
13971
|
-
case
|
|
13990
|
+
case 10:
|
|
13972
13991
|
case "end":
|
|
13973
13992
|
return _context2.stop();
|
|
13974
13993
|
}
|
|
@@ -13994,23 +14013,23 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
13994
14013
|
_this$meta2,
|
|
13995
14014
|
_information2,
|
|
13996
14015
|
_args3 = arguments;
|
|
13997
|
-
return _regeneratorRuntime().wrap(function
|
|
14016
|
+
return _regeneratorRuntime().wrap(function (_context3) {
|
|
13998
14017
|
while (1) switch (_context3.prev = _context3.next) {
|
|
13999
14018
|
case 0:
|
|
14000
14019
|
options = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : undefined;
|
|
14001
|
-
_context3.next =
|
|
14020
|
+
_context3.next = 1;
|
|
14002
14021
|
return this.readPreamble();
|
|
14003
|
-
case
|
|
14022
|
+
case 1:
|
|
14004
14023
|
hasPreamble = _context3.sent;
|
|
14005
14024
|
if (!(hasPreamble === AsyncDicomReader.PART10_NO_PREAMBLE)) {
|
|
14006
|
-
_context3.next =
|
|
14025
|
+
_context3.next = 4;
|
|
14007
14026
|
break;
|
|
14008
14027
|
}
|
|
14009
|
-
_context3.next =
|
|
14028
|
+
_context3.next = 2;
|
|
14010
14029
|
return this.readMeta(_objectSpread2(_objectSpread2({}, options), {}, {
|
|
14011
14030
|
ignoreErrors: true
|
|
14012
14031
|
}));
|
|
14013
|
-
case
|
|
14032
|
+
case 2:
|
|
14014
14033
|
this.meta = _context3.sent;
|
|
14015
14034
|
_listener = (options === null || options === void 0 ? void 0 : options.listener) || new DicomMetadataListener();
|
|
14016
14035
|
if (_listener.information) {
|
|
@@ -14020,14 +14039,14 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14020
14039
|
}
|
|
14021
14040
|
this.dict || (this.dict = {});
|
|
14022
14041
|
_listener.startObject(this.dict);
|
|
14023
|
-
_context3.next =
|
|
14042
|
+
_context3.next = 3;
|
|
14024
14043
|
return this.read(_listener, options);
|
|
14025
|
-
case
|
|
14044
|
+
case 3:
|
|
14026
14045
|
this.dict = _context3.sent;
|
|
14027
14046
|
return _context3.abrupt("return", this);
|
|
14028
|
-
case
|
|
14047
|
+
case 4:
|
|
14029
14048
|
if (hasPreamble) {
|
|
14030
|
-
_context3.next =
|
|
14049
|
+
_context3.next = 6;
|
|
14031
14050
|
break;
|
|
14032
14051
|
}
|
|
14033
14052
|
// Handle raw dataset (no Part 10 preamble)
|
|
@@ -14040,15 +14059,15 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14040
14059
|
}
|
|
14041
14060
|
this.dict || (this.dict = {});
|
|
14042
14061
|
_listener2.startObject(this.dict);
|
|
14043
|
-
_context3.next =
|
|
14062
|
+
_context3.next = 5;
|
|
14044
14063
|
return this.read(_listener2, options);
|
|
14045
|
-
case
|
|
14064
|
+
case 5:
|
|
14046
14065
|
this.dict = _context3.sent;
|
|
14047
14066
|
return _context3.abrupt("return", this);
|
|
14048
|
-
case
|
|
14049
|
-
_context3.next =
|
|
14067
|
+
case 6:
|
|
14068
|
+
_context3.next = 7;
|
|
14050
14069
|
return this.readMeta(options);
|
|
14051
|
-
case
|
|
14070
|
+
case 7:
|
|
14052
14071
|
this.meta = _context3.sent;
|
|
14053
14072
|
listener = (options === null || options === void 0 ? void 0 : options.listener) || new DicomMetadataListener();
|
|
14054
14073
|
if (listener.information) {
|
|
@@ -14058,12 +14077,12 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14058
14077
|
}
|
|
14059
14078
|
this.dict || (this.dict = {});
|
|
14060
14079
|
listener.startObject(this.dict);
|
|
14061
|
-
_context3.next =
|
|
14080
|
+
_context3.next = 8;
|
|
14062
14081
|
return this.read(listener, options);
|
|
14063
|
-
case
|
|
14082
|
+
case 8:
|
|
14064
14083
|
this.dict = _context3.sent;
|
|
14065
14084
|
return _context3.abrupt("return", this);
|
|
14066
|
-
case
|
|
14085
|
+
case 9:
|
|
14067
14086
|
case "end":
|
|
14068
14087
|
return _context3.stop();
|
|
14069
14088
|
}
|
|
@@ -14093,54 +14112,54 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14093
14112
|
metaLength,
|
|
14094
14113
|
metaStream,
|
|
14095
14114
|
_args4 = arguments;
|
|
14096
|
-
return _regeneratorRuntime().wrap(function
|
|
14115
|
+
return _regeneratorRuntime().wrap(function (_context4) {
|
|
14097
14116
|
while (1) switch (_context4.prev = _context4.next) {
|
|
14098
14117
|
case 0:
|
|
14099
14118
|
options = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : undefined;
|
|
14100
14119
|
stream = this.stream;
|
|
14101
|
-
_context4.next =
|
|
14120
|
+
_context4.next = 1;
|
|
14102
14121
|
return stream.ensureAvailable();
|
|
14103
|
-
case
|
|
14122
|
+
case 1:
|
|
14104
14123
|
metaStartPos = stream.offset;
|
|
14105
14124
|
el = this.readTagHeader();
|
|
14106
14125
|
if (!(el.tag !== TagHex.FileMetaInformationGroupLength)) {
|
|
14107
|
-
_context4.next =
|
|
14126
|
+
_context4.next = 4;
|
|
14108
14127
|
break;
|
|
14109
14128
|
}
|
|
14110
14129
|
if (options !== null && options !== void 0 && options.ignoreErrors) {
|
|
14111
|
-
_context4.next =
|
|
14130
|
+
_context4.next = 2;
|
|
14112
14131
|
break;
|
|
14113
14132
|
}
|
|
14114
14133
|
throw new Error("Invalid DICOM file, meta length tag is malformed or not present.");
|
|
14115
|
-
case
|
|
14134
|
+
case 2:
|
|
14116
14135
|
// reset stream to the position where we started reading tags
|
|
14117
14136
|
stream.offset = metaStartPos;
|
|
14118
14137
|
// Wait for at least 10k to be available to make sure there is enough
|
|
14119
14138
|
// data to read the entire Meta header
|
|
14120
|
-
_context4.next =
|
|
14139
|
+
_context4.next = 3;
|
|
14121
14140
|
return stream.ensureAvailable((options === null || options === void 0 ? void 0 : options.maxSizeMeta) || 1024 * 10);
|
|
14122
|
-
case
|
|
14141
|
+
case 3:
|
|
14123
14142
|
// read meta header elements sequentially
|
|
14124
14143
|
this.meta = DicomMessage._read(stream, EXPLICIT_LITTLE_ENDIAN$1, {
|
|
14125
14144
|
untilTag: "00030000",
|
|
14126
14145
|
stopOnGreaterTag: true,
|
|
14127
14146
|
ignoreErrors: true
|
|
14128
14147
|
});
|
|
14129
|
-
_context4.next =
|
|
14148
|
+
_context4.next = 6;
|
|
14130
14149
|
break;
|
|
14131
|
-
case
|
|
14150
|
+
case 4:
|
|
14132
14151
|
// meta length tag is present
|
|
14133
14152
|
metaLength = el.vrObj.readBytes(stream);
|
|
14134
|
-
_context4.next =
|
|
14153
|
+
_context4.next = 5;
|
|
14135
14154
|
return stream.ensureAvailable(metaLength);
|
|
14136
|
-
case
|
|
14155
|
+
case 5:
|
|
14137
14156
|
// read header buffer using the specified meta length
|
|
14138
14157
|
metaStream = stream.more(metaLength);
|
|
14139
14158
|
this.meta = DicomMessage._read(metaStream, EXPLICIT_LITTLE_ENDIAN$1, {});
|
|
14140
|
-
case
|
|
14159
|
+
case 6:
|
|
14141
14160
|
this.syntax = this.meta[TagHex.TransferSyntaxUID].Value[0];
|
|
14142
14161
|
return _context4.abrupt("return", this.meta);
|
|
14143
|
-
case
|
|
14162
|
+
case 7:
|
|
14144
14163
|
case "end":
|
|
14145
14164
|
return _context4.stop();
|
|
14146
14165
|
}
|
|
@@ -14156,94 +14175,104 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14156
14175
|
value: function () {
|
|
14157
14176
|
var _read = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(listener, options) {
|
|
14158
14177
|
var untilOffset, stream, tagInfo, tag, tagObj, length, addTagResult;
|
|
14159
|
-
return _regeneratorRuntime().wrap(function
|
|
14178
|
+
return _regeneratorRuntime().wrap(function (_context5) {
|
|
14160
14179
|
while (1) switch (_context5.prev = _context5.next) {
|
|
14161
14180
|
case 0:
|
|
14162
14181
|
untilOffset = (options === null || options === void 0 ? void 0 : options.untilOffset) || Number.MAX_SAFE_INTEGER;
|
|
14163
14182
|
this.listener = listener;
|
|
14164
14183
|
stream = this.stream;
|
|
14165
|
-
_context5.next =
|
|
14184
|
+
_context5.next = 1;
|
|
14166
14185
|
return stream.ensureAvailable();
|
|
14167
|
-
case
|
|
14186
|
+
case 1:
|
|
14168
14187
|
if (!(stream.offset < untilOffset && stream.isAvailable(1, false))) {
|
|
14169
|
-
_context5.next =
|
|
14188
|
+
_context5.next = 15;
|
|
14170
14189
|
break;
|
|
14171
14190
|
}
|
|
14172
14191
|
readLog.debug("read loop", stream.offset, untilOffset);
|
|
14173
14192
|
// Consume before reading the tag so that data before the
|
|
14174
14193
|
// current tag can be cleared.
|
|
14175
14194
|
stream.consume();
|
|
14176
|
-
tagInfo = this.readTagHeader(options);
|
|
14195
|
+
tagInfo = this.readTagHeader(options); // Stop when the requested tag boundary is reached. readTagHeader()
|
|
14196
|
+
// has already consumed the 4-byte tag but nothing beyond it, so
|
|
14197
|
+
// stream.offset now points at the first byte after the tag (i.e.
|
|
14198
|
+
// the VR field for explicit-LE). Callers that need the start
|
|
14199
|
+
// offset of the tag itself should subtract 4 from stream.offset.
|
|
14200
|
+
if (!tagInfo.isUntilTag) {
|
|
14201
|
+
_context5.next = 2;
|
|
14202
|
+
break;
|
|
14203
|
+
}
|
|
14204
|
+
return _context5.abrupt("continue", 15);
|
|
14205
|
+
case 2:
|
|
14177
14206
|
tag = tagInfo.tag, tagObj = tagInfo.tagObj, length = tagInfo.length;
|
|
14178
14207
|
if (!(tag === TagHex.ItemDelimitationEnd)) {
|
|
14179
|
-
_context5.next =
|
|
14208
|
+
_context5.next = 3;
|
|
14180
14209
|
break;
|
|
14181
14210
|
}
|
|
14182
14211
|
return _context5.abrupt("return", listener.pop());
|
|
14183
|
-
case
|
|
14212
|
+
case 3:
|
|
14184
14213
|
if (!tagObj.isInstruction()) {
|
|
14185
|
-
_context5.next =
|
|
14214
|
+
_context5.next = 4;
|
|
14186
14215
|
break;
|
|
14187
14216
|
}
|
|
14188
|
-
return _context5.abrupt("continue",
|
|
14189
|
-
case
|
|
14217
|
+
return _context5.abrupt("continue", 1);
|
|
14218
|
+
case 4:
|
|
14190
14219
|
if (!(tagObj.group() === 0 || tag === TagHex.DataSetTrailingPadding)) {
|
|
14191
|
-
_context5.next =
|
|
14220
|
+
_context5.next = 5;
|
|
14192
14221
|
break;
|
|
14193
14222
|
}
|
|
14194
14223
|
// Group length
|
|
14195
14224
|
stream.increment(tagObj.length);
|
|
14196
|
-
return _context5.abrupt("continue",
|
|
14197
|
-
case
|
|
14225
|
+
return _context5.abrupt("continue", 1);
|
|
14226
|
+
case 5:
|
|
14198
14227
|
addTagResult = listener.addTag(tag, tagInfo);
|
|
14199
14228
|
if (!this.isSequence(tagInfo)) {
|
|
14200
|
-
_context5.next =
|
|
14229
|
+
_context5.next = 7;
|
|
14201
14230
|
break;
|
|
14202
14231
|
}
|
|
14203
|
-
_context5.next =
|
|
14232
|
+
_context5.next = 6;
|
|
14204
14233
|
return this.readSequence(listener, tagInfo, options);
|
|
14205
|
-
case
|
|
14206
|
-
_context5.next =
|
|
14234
|
+
case 6:
|
|
14235
|
+
_context5.next = 13;
|
|
14207
14236
|
break;
|
|
14208
|
-
case
|
|
14237
|
+
case 7:
|
|
14209
14238
|
if (!tagObj.isPixelDataTag()) {
|
|
14210
|
-
_context5.next =
|
|
14239
|
+
_context5.next = 9;
|
|
14211
14240
|
break;
|
|
14212
14241
|
}
|
|
14213
|
-
_context5.next =
|
|
14242
|
+
_context5.next = 8;
|
|
14214
14243
|
return this.readPixelData(tagInfo);
|
|
14215
|
-
case
|
|
14216
|
-
_context5.next =
|
|
14244
|
+
case 8:
|
|
14245
|
+
_context5.next = 13;
|
|
14217
14246
|
break;
|
|
14218
|
-
case
|
|
14247
|
+
case 9:
|
|
14219
14248
|
if (!(length === UNDEFINED_LENGTH_FIX)) {
|
|
14220
|
-
_context5.next =
|
|
14249
|
+
_context5.next = 10;
|
|
14221
14250
|
break;
|
|
14222
14251
|
}
|
|
14223
14252
|
throw new Error("Can't handle tag ".concat(tagInfo.tag, " with -1 length and not sequence"));
|
|
14224
|
-
case
|
|
14253
|
+
case 10:
|
|
14225
14254
|
if (!((addTagResult === null || addTagResult === void 0 ? void 0 : addTagResult.expectsRaw) === true && length > 0)) {
|
|
14226
|
-
_context5.next =
|
|
14255
|
+
_context5.next = 12;
|
|
14227
14256
|
break;
|
|
14228
14257
|
}
|
|
14229
|
-
_context5.next =
|
|
14258
|
+
_context5.next = 11;
|
|
14230
14259
|
return this.readRawBinary(tagInfo);
|
|
14231
|
-
case
|
|
14232
|
-
_context5.next =
|
|
14260
|
+
case 11:
|
|
14261
|
+
_context5.next = 13;
|
|
14233
14262
|
break;
|
|
14234
|
-
case
|
|
14235
|
-
_context5.next =
|
|
14263
|
+
case 12:
|
|
14264
|
+
_context5.next = 13;
|
|
14236
14265
|
return this.readSingle(tagInfo, listener, options);
|
|
14237
|
-
case
|
|
14266
|
+
case 13:
|
|
14238
14267
|
listener.pop();
|
|
14239
|
-
_context5.next =
|
|
14268
|
+
_context5.next = 14;
|
|
14240
14269
|
return this.stream.ensureAvailable();
|
|
14241
|
-
case
|
|
14242
|
-
_context5.next =
|
|
14270
|
+
case 14:
|
|
14271
|
+
_context5.next = 1;
|
|
14243
14272
|
break;
|
|
14244
|
-
case
|
|
14273
|
+
case 15:
|
|
14245
14274
|
return _context5.abrupt("return", listener.pop());
|
|
14246
|
-
case
|
|
14275
|
+
case 16:
|
|
14247
14276
|
case "end":
|
|
14248
14277
|
return _context5.stop();
|
|
14249
14278
|
}
|
|
@@ -14258,33 +14287,33 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14258
14287
|
key: "readSequence",
|
|
14259
14288
|
value: function () {
|
|
14260
14289
|
var _readSequence = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(listener, sqTagInfo, options) {
|
|
14261
|
-
var length, stream, syntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset;
|
|
14262
|
-
return _regeneratorRuntime().wrap(function
|
|
14290
|
+
var length, stream, syntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset, _t;
|
|
14291
|
+
return _regeneratorRuntime().wrap(function (_context6) {
|
|
14263
14292
|
while (1) switch (_context6.prev = _context6.next) {
|
|
14264
14293
|
case 0:
|
|
14265
14294
|
length = sqTagInfo.length;
|
|
14266
14295
|
stream = this.stream, syntax = this.syntax;
|
|
14267
14296
|
endOffset = length === UNDEFINED_LENGTH_FIX ? Number.MAX_SAFE_INTEGER : stream.offset + length;
|
|
14268
|
-
case
|
|
14269
|
-
|
|
14270
|
-
if (!
|
|
14271
|
-
_context6.next =
|
|
14297
|
+
case 1:
|
|
14298
|
+
_t = stream.offset < endOffset;
|
|
14299
|
+
if (!_t) {
|
|
14300
|
+
_context6.next = 3;
|
|
14272
14301
|
break;
|
|
14273
14302
|
}
|
|
14274
|
-
_context6.next =
|
|
14303
|
+
_context6.next = 2;
|
|
14275
14304
|
return stream.ensureAvailable();
|
|
14276
|
-
case
|
|
14277
|
-
|
|
14278
|
-
case
|
|
14279
|
-
if (!
|
|
14280
|
-
_context6.next =
|
|
14305
|
+
case 2:
|
|
14306
|
+
_t = _context6.sent;
|
|
14307
|
+
case 3:
|
|
14308
|
+
if (!_t) {
|
|
14309
|
+
_context6.next = 8;
|
|
14281
14310
|
break;
|
|
14282
14311
|
}
|
|
14283
14312
|
readLog.debug("readSequence loop", stream.offset, endOffset);
|
|
14284
14313
|
tagInfo = this.readTagHeader(syntax, options);
|
|
14285
14314
|
tag = tagInfo.tag;
|
|
14286
14315
|
if (!(tag === TagHex.Item)) {
|
|
14287
|
-
_context6.next =
|
|
14316
|
+
_context6.next = 5;
|
|
14288
14317
|
break;
|
|
14289
14318
|
}
|
|
14290
14319
|
listener.startObject();
|
|
@@ -14296,26 +14325,26 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14296
14325
|
// as instructions and skips them.
|
|
14297
14326
|
itemLength = tagInfo.length;
|
|
14298
14327
|
itemUntilOffset = itemLength === UNDEFINED_LENGTH_FIX ? endOffset : Math.min(stream.offset + itemLength, endOffset);
|
|
14299
|
-
_context6.next =
|
|
14328
|
+
_context6.next = 4;
|
|
14300
14329
|
return this.read(listener, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
14301
14330
|
untilOffset: itemUntilOffset
|
|
14302
14331
|
}));
|
|
14303
|
-
case
|
|
14304
|
-
_context6.next =
|
|
14332
|
+
case 4:
|
|
14333
|
+
_context6.next = 7;
|
|
14305
14334
|
break;
|
|
14306
|
-
case
|
|
14335
|
+
case 5:
|
|
14307
14336
|
if (!(tag === TagHex.SequenceDelimitationEnd)) {
|
|
14308
|
-
_context6.next =
|
|
14337
|
+
_context6.next = 6;
|
|
14309
14338
|
break;
|
|
14310
14339
|
}
|
|
14311
14340
|
return _context6.abrupt("return");
|
|
14312
|
-
case
|
|
14341
|
+
case 6:
|
|
14313
14342
|
console.warn("Unknown tag info", length, tagInfo);
|
|
14314
14343
|
throw new Error();
|
|
14315
|
-
case
|
|
14316
|
-
_context6.next =
|
|
14344
|
+
case 7:
|
|
14345
|
+
_context6.next = 1;
|
|
14317
14346
|
break;
|
|
14318
|
-
case
|
|
14347
|
+
case 8:
|
|
14319
14348
|
case "end":
|
|
14320
14349
|
return _context6.stop();
|
|
14321
14350
|
}
|
|
@@ -14345,38 +14374,38 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14345
14374
|
var _emitSplitValues2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(length) {
|
|
14346
14375
|
var _listener$awaitDrain;
|
|
14347
14376
|
var stream, listener, maxFragmentSize, offset, chunkSize, buffer;
|
|
14348
|
-
return _regeneratorRuntime().wrap(function
|
|
14377
|
+
return _regeneratorRuntime().wrap(function (_context7) {
|
|
14349
14378
|
while (1) switch (_context7.prev = _context7.next) {
|
|
14350
14379
|
case 0:
|
|
14351
14380
|
stream = this.stream, listener = this.listener;
|
|
14352
|
-
_context7.next =
|
|
14381
|
+
_context7.next = 1;
|
|
14353
14382
|
return (_listener$awaitDrain = listener.awaitDrain) === null || _listener$awaitDrain === void 0 ? void 0 : _listener$awaitDrain.call(listener);
|
|
14354
|
-
case
|
|
14383
|
+
case 1:
|
|
14355
14384
|
maxFragmentSize = this.maxFragmentSize;
|
|
14356
14385
|
if (!(typeof maxFragmentSize !== "number" || maxFragmentSize <= 0)) {
|
|
14357
|
-
_context7.next =
|
|
14386
|
+
_context7.next = 2;
|
|
14358
14387
|
break;
|
|
14359
14388
|
}
|
|
14360
14389
|
throw new Error("maxFragmentSize must be a positive number, got ".concat(maxFragmentSize));
|
|
14361
|
-
case
|
|
14390
|
+
case 2:
|
|
14362
14391
|
offset = 0;
|
|
14363
|
-
case
|
|
14392
|
+
case 3:
|
|
14364
14393
|
if (!(offset < length)) {
|
|
14365
|
-
_context7.next =
|
|
14394
|
+
_context7.next = 5;
|
|
14366
14395
|
break;
|
|
14367
14396
|
}
|
|
14368
14397
|
readLog.trace("_emitSplitValues loop", offset, length);
|
|
14369
14398
|
chunkSize = Math.min(maxFragmentSize, length - offset);
|
|
14370
|
-
_context7.next =
|
|
14399
|
+
_context7.next = 4;
|
|
14371
14400
|
return stream.ensureAvailable(chunkSize);
|
|
14372
|
-
case
|
|
14401
|
+
case 4:
|
|
14373
14402
|
buffer = stream.readArrayBuffer(chunkSize);
|
|
14374
14403
|
listener.value(buffer);
|
|
14375
14404
|
offset += chunkSize;
|
|
14376
14405
|
stream.consume();
|
|
14377
|
-
_context7.next =
|
|
14406
|
+
_context7.next = 3;
|
|
14378
14407
|
break;
|
|
14379
|
-
case
|
|
14408
|
+
case 5:
|
|
14380
14409
|
case "end":
|
|
14381
14410
|
return _context7.stop();
|
|
14382
14411
|
}
|
|
@@ -14397,21 +14426,21 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14397
14426
|
var _readCompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_tagInfo) {
|
|
14398
14427
|
var _listener$information;
|
|
14399
14428
|
var stream, listener, transferSyntaxUid, isVideo, numberOfFrames, isSingleFrame, offsets, singleArray, startOffset, frameNumber, lastFrame, frameTag, length;
|
|
14400
|
-
return _regeneratorRuntime().wrap(function
|
|
14429
|
+
return _regeneratorRuntime().wrap(function (_context8) {
|
|
14401
14430
|
while (1) switch (_context8.prev = _context8.next) {
|
|
14402
14431
|
case 0:
|
|
14403
14432
|
stream = this.stream, listener = this.listener;
|
|
14404
14433
|
transferSyntaxUid = this.syntax;
|
|
14405
|
-
_context8.next =
|
|
14434
|
+
_context8.next = 1;
|
|
14406
14435
|
return stream.ensureAvailable();
|
|
14407
|
-
case
|
|
14436
|
+
case 1:
|
|
14408
14437
|
// Check if this is a video transfer syntax
|
|
14409
14438
|
isVideo = isVideoTransferSyntax(transferSyntaxUid); // Check number of frames - only use video logic for single frame (or undefined)
|
|
14410
14439
|
numberOfFrames = (_listener$information = listener.information) === null || _listener$information === void 0 ? void 0 : _listener$information.numberOfFrames;
|
|
14411
14440
|
isSingleFrame = !numberOfFrames || parseInt(numberOfFrames) <= 1;
|
|
14412
|
-
_context8.next =
|
|
14441
|
+
_context8.next = 2;
|
|
14413
14442
|
return this.readOffsets();
|
|
14414
|
-
case
|
|
14443
|
+
case 2:
|
|
14415
14444
|
offsets = _context8.sent;
|
|
14416
14445
|
singleArray = isVideo || isSingleFrame;
|
|
14417
14446
|
if (singleArray && !offsets) {
|
|
@@ -14424,15 +14453,15 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14424
14453
|
startOffset = stream.offset;
|
|
14425
14454
|
frameNumber = 0;
|
|
14426
14455
|
lastFrame = null;
|
|
14427
|
-
case
|
|
14456
|
+
case 3:
|
|
14428
14457
|
readLog.debug("readCompressed frame loop", frameNumber);
|
|
14429
14458
|
stream.consume();
|
|
14430
|
-
_context8.next =
|
|
14459
|
+
_context8.next = 4;
|
|
14431
14460
|
return stream.ensureAvailable();
|
|
14432
|
-
case
|
|
14461
|
+
case 4:
|
|
14433
14462
|
frameTag = this.readTagHeader();
|
|
14434
14463
|
if (!(frameTag.tag === TagHex.SequenceDelimitationEnd)) {
|
|
14435
|
-
_context8.next =
|
|
14464
|
+
_context8.next = 5;
|
|
14436
14465
|
break;
|
|
14437
14466
|
}
|
|
14438
14467
|
if (lastFrame) {
|
|
@@ -14440,29 +14469,29 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14440
14469
|
listener.pop();
|
|
14441
14470
|
}
|
|
14442
14471
|
return _context8.abrupt("return");
|
|
14443
|
-
case
|
|
14472
|
+
case 5:
|
|
14444
14473
|
if (!(frameTag.tag !== TagHex.Item)) {
|
|
14445
|
-
_context8.next =
|
|
14474
|
+
_context8.next = 6;
|
|
14446
14475
|
break;
|
|
14447
14476
|
}
|
|
14448
14477
|
throw new Error("frame tag isn't item: ".concat(frameTag.tag));
|
|
14449
|
-
case
|
|
14478
|
+
case 6:
|
|
14450
14479
|
length = frameTag.length;
|
|
14451
14480
|
if (!lastFrame) {
|
|
14452
14481
|
lastFrame = [];
|
|
14453
14482
|
listener.startObject(lastFrame);
|
|
14454
14483
|
}
|
|
14455
|
-
_context8.next =
|
|
14484
|
+
_context8.next = 7;
|
|
14456
14485
|
return this._emitSplitValues(length);
|
|
14457
|
-
case
|
|
14486
|
+
case 7:
|
|
14458
14487
|
if (!offsets || stream.offset >= offsets[frameNumber + 1] + startOffset) {
|
|
14459
14488
|
lastFrame = null;
|
|
14460
14489
|
listener.pop();
|
|
14461
14490
|
frameNumber++;
|
|
14462
14491
|
}
|
|
14463
|
-
_context8.next =
|
|
14492
|
+
_context8.next = 3;
|
|
14464
14493
|
break;
|
|
14465
|
-
case
|
|
14494
|
+
case 8:
|
|
14466
14495
|
case "end":
|
|
14467
14496
|
return _context8.stop();
|
|
14468
14497
|
}
|
|
@@ -14478,33 +14507,33 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14478
14507
|
value: function () {
|
|
14479
14508
|
var _readOffsets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
14480
14509
|
var tagInfo, offsets, numOfFrames, i;
|
|
14481
|
-
return _regeneratorRuntime().wrap(function
|
|
14510
|
+
return _regeneratorRuntime().wrap(function (_context9) {
|
|
14482
14511
|
while (1) switch (_context9.prev = _context9.next) {
|
|
14483
14512
|
case 0:
|
|
14484
14513
|
tagInfo = this.readTagHeader();
|
|
14485
14514
|
if (!(tagInfo.tag !== TagHex.Item)) {
|
|
14486
|
-
_context9.next =
|
|
14515
|
+
_context9.next = 1;
|
|
14487
14516
|
break;
|
|
14488
14517
|
}
|
|
14489
14518
|
throw new Error("Offsets tag is missing: ".concat(tagInfo.tag));
|
|
14490
|
-
case
|
|
14519
|
+
case 1:
|
|
14491
14520
|
if (!(tagInfo.length === 0)) {
|
|
14492
|
-
_context9.next =
|
|
14521
|
+
_context9.next = 2;
|
|
14493
14522
|
break;
|
|
14494
14523
|
}
|
|
14495
14524
|
return _context9.abrupt("return");
|
|
14496
|
-
case
|
|
14525
|
+
case 2:
|
|
14497
14526
|
offsets = [];
|
|
14498
14527
|
numOfFrames = tagInfo.length / 4;
|
|
14499
|
-
_context9.next =
|
|
14528
|
+
_context9.next = 3;
|
|
14500
14529
|
return this.stream.ensureAvailable(tagInfo.length);
|
|
14501
|
-
case
|
|
14530
|
+
case 3:
|
|
14502
14531
|
for (i = 0; i < numOfFrames; i++) {
|
|
14503
14532
|
readLog.trace("readOffsets loop", i, numOfFrames);
|
|
14504
14533
|
offsets.push(this.stream.readUint32());
|
|
14505
14534
|
}
|
|
14506
14535
|
return _context9.abrupt("return", offsets);
|
|
14507
|
-
case
|
|
14536
|
+
case 4:
|
|
14508
14537
|
case "end":
|
|
14509
14538
|
return _context9.stop();
|
|
14510
14539
|
}
|
|
@@ -14524,7 +14553,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14524
14553
|
var _readUncompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(tagInfo) {
|
|
14525
14554
|
var _listener$information2;
|
|
14526
14555
|
var length, listener, numberOfFrames, frameLength, _listener$information3, _listener$information4, _listener$information5, _listener$information6, rows, cols, samplesPerPixel, bitsAllocated, bitsPerFrame, frameNumber;
|
|
14527
|
-
return _regeneratorRuntime().wrap(function
|
|
14556
|
+
return _regeneratorRuntime().wrap(function (_context0) {
|
|
14528
14557
|
while (1) switch (_context0.prev = _context0.next) {
|
|
14529
14558
|
case 0:
|
|
14530
14559
|
length = tagInfo.length;
|
|
@@ -14532,7 +14561,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14532
14561
|
numberOfFrames = parseInt(((_listener$information2 = listener.information) === null || _listener$information2 === void 0 ? void 0 : _listener$information2.numberOfFrames) || 1);
|
|
14533
14562
|
frameLength = Math.floor(length / numberOfFrames);
|
|
14534
14563
|
if (!(numberOfFrames > 1)) {
|
|
14535
|
-
_context0.next =
|
|
14564
|
+
_context0.next = 4;
|
|
14536
14565
|
break;
|
|
14537
14566
|
}
|
|
14538
14567
|
rows = (_listener$information3 = listener.information) === null || _listener$information3 === void 0 ? void 0 : _listener$information3.rows;
|
|
@@ -14541,44 +14570,44 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14541
14570
|
bitsAllocated = (_listener$information6 = listener.information) === null || _listener$information6 === void 0 ? void 0 : _listener$information6.bitsAllocated;
|
|
14542
14571
|
bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
|
|
14543
14572
|
if (!(bitsPerFrame % 8 !== 0)) {
|
|
14544
|
-
_context0.next =
|
|
14573
|
+
_context0.next = 3;
|
|
14545
14574
|
break;
|
|
14546
14575
|
}
|
|
14547
14576
|
if (!(bitsAllocated === 1)) {
|
|
14548
|
-
_context0.next =
|
|
14577
|
+
_context0.next = 2;
|
|
14549
14578
|
break;
|
|
14550
14579
|
}
|
|
14551
|
-
_context0.next =
|
|
14580
|
+
_context0.next = 1;
|
|
14552
14581
|
return this.readUncompressedBitFrame(tagInfo);
|
|
14553
|
-
case
|
|
14582
|
+
case 1:
|
|
14554
14583
|
return _context0.abrupt("return", _context0.sent);
|
|
14555
|
-
case
|
|
14584
|
+
case 2:
|
|
14556
14585
|
throw new Error("Odd frame length must be single bit: ".concat(rows, ",").concat(cols, " ").concat(samplesPerPixel, " ").concat(bitsAllocated));
|
|
14557
|
-
case
|
|
14586
|
+
case 3:
|
|
14558
14587
|
if (!(length % numberOfFrames !== 0)) {
|
|
14559
|
-
_context0.next =
|
|
14588
|
+
_context0.next = 4;
|
|
14560
14589
|
break;
|
|
14561
14590
|
}
|
|
14562
14591
|
throw new Error("Invalid frame length: ".concat(length, " for ").concat(numberOfFrames, " frames"));
|
|
14563
|
-
case
|
|
14592
|
+
case 4:
|
|
14564
14593
|
frameNumber = 0;
|
|
14565
|
-
case
|
|
14594
|
+
case 5:
|
|
14566
14595
|
if (!(frameNumber < numberOfFrames)) {
|
|
14567
|
-
_context0.next =
|
|
14596
|
+
_context0.next = 8;
|
|
14568
14597
|
break;
|
|
14569
14598
|
}
|
|
14570
14599
|
readLog.trace("readUncompressed loop", frameNumber, numberOfFrames);
|
|
14571
14600
|
listener.startObject([]);
|
|
14572
|
-
_context0.next =
|
|
14601
|
+
_context0.next = 6;
|
|
14573
14602
|
return this._emitSplitValues(frameLength);
|
|
14574
|
-
case
|
|
14603
|
+
case 6:
|
|
14575
14604
|
listener.pop();
|
|
14576
14605
|
// console.log(stream.getBufferMemoryInfo());
|
|
14577
|
-
case
|
|
14606
|
+
case 7:
|
|
14578
14607
|
frameNumber++;
|
|
14579
|
-
_context0.next =
|
|
14608
|
+
_context0.next = 5;
|
|
14580
14609
|
break;
|
|
14581
|
-
case
|
|
14610
|
+
case 8:
|
|
14582
14611
|
case "end":
|
|
14583
14612
|
return _context0.stop();
|
|
14584
14613
|
}
|
|
@@ -14609,7 +14638,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14609
14638
|
var _readUncompressedBitFrame = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(tagInfo) {
|
|
14610
14639
|
var _listener$information7, _listener$information8, _listener$information9, _listener$information0, _listener$information1;
|
|
14611
14640
|
var length, listener, stream, numberOfFrames, rows, cols, samplesPerPixel, bitsAllocated, bitsPerFrame, bytesPerFrame, totalBits, totalBytes, allPixelData, frameNumber, bitOffset, frameBuffer, frameView, sourceView, bitIndex, globalBitIndex, sourceByteIndex, sourceBitIndex, targetByteIndex, targetBitIndex, sourceByte, bitValue;
|
|
14612
|
-
return _regeneratorRuntime().wrap(function
|
|
14641
|
+
return _regeneratorRuntime().wrap(function (_context1) {
|
|
14613
14642
|
while (1) switch (_context1.prev = _context1.next) {
|
|
14614
14643
|
case 0:
|
|
14615
14644
|
length = tagInfo.length;
|
|
@@ -14620,30 +14649,30 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14620
14649
|
samplesPerPixel = ((_listener$information0 = listener.information) === null || _listener$information0 === void 0 ? void 0 : _listener$information0.samplesPerPixel) || 1;
|
|
14621
14650
|
bitsAllocated = (_listener$information1 = listener.information) === null || _listener$information1 === void 0 ? void 0 : _listener$information1.bitsAllocated;
|
|
14622
14651
|
if (!(!rows || !cols || !bitsAllocated)) {
|
|
14623
|
-
_context1.next =
|
|
14652
|
+
_context1.next = 1;
|
|
14624
14653
|
break;
|
|
14625
14654
|
}
|
|
14626
14655
|
throw new Error("Missing required pixel data information: rows, columns, or bitsAllocated");
|
|
14627
|
-
case
|
|
14656
|
+
case 1:
|
|
14628
14657
|
if (!(bitsAllocated !== 1)) {
|
|
14629
|
-
_context1.next =
|
|
14658
|
+
_context1.next = 2;
|
|
14630
14659
|
break;
|
|
14631
14660
|
}
|
|
14632
14661
|
throw new Error("Odd-length bit frames require bitsAllocated=1, got ".concat(bitsAllocated));
|
|
14633
|
-
case
|
|
14662
|
+
case 2:
|
|
14634
14663
|
bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
|
|
14635
14664
|
bytesPerFrame = Math.ceil(bitsPerFrame / 8);
|
|
14636
14665
|
totalBits = bitsPerFrame * numberOfFrames;
|
|
14637
14666
|
totalBytes = Math.ceil(totalBits / 8);
|
|
14638
14667
|
if (!(totalBytes !== length)) {
|
|
14639
|
-
_context1.next =
|
|
14668
|
+
_context1.next = 3;
|
|
14640
14669
|
break;
|
|
14641
14670
|
}
|
|
14642
14671
|
throw new Error("The calculated length ".concat(totalBytes, " does not match the actual length ").concat(length));
|
|
14643
|
-
case
|
|
14644
|
-
_context1.next =
|
|
14672
|
+
case 3:
|
|
14673
|
+
_context1.next = 4;
|
|
14645
14674
|
return stream.ensureAvailable(length);
|
|
14646
|
-
case
|
|
14675
|
+
case 4:
|
|
14647
14676
|
allPixelData = stream.readArrayBuffer(totalBytes);
|
|
14648
14677
|
stream.consume();
|
|
14649
14678
|
|
|
@@ -14674,7 +14703,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14674
14703
|
listener.value(frameBuffer);
|
|
14675
14704
|
listener.pop();
|
|
14676
14705
|
}
|
|
14677
|
-
case
|
|
14706
|
+
case 5:
|
|
14678
14707
|
case "end":
|
|
14679
14708
|
return _context1.stop();
|
|
14680
14709
|
}
|
|
@@ -14695,13 +14724,13 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14695
14724
|
value: (function () {
|
|
14696
14725
|
var _readRawBinary = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(tagInfo) {
|
|
14697
14726
|
var length;
|
|
14698
|
-
return _regeneratorRuntime().wrap(function
|
|
14727
|
+
return _regeneratorRuntime().wrap(function (_context10) {
|
|
14699
14728
|
while (1) switch (_context10.prev = _context10.next) {
|
|
14700
14729
|
case 0:
|
|
14701
14730
|
length = tagInfo.length;
|
|
14702
|
-
_context10.next =
|
|
14731
|
+
_context10.next = 1;
|
|
14703
14732
|
return this._emitSplitValues(length);
|
|
14704
|
-
case
|
|
14733
|
+
case 1:
|
|
14705
14734
|
case "end":
|
|
14706
14735
|
return _context10.stop();
|
|
14707
14736
|
}
|
|
@@ -14746,7 +14775,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14746
14775
|
tagObj: tagObj,
|
|
14747
14776
|
vr: 0,
|
|
14748
14777
|
values: 0,
|
|
14749
|
-
|
|
14778
|
+
isUntilTag: true
|
|
14750
14779
|
};
|
|
14751
14780
|
}
|
|
14752
14781
|
}
|
|
@@ -14823,15 +14852,15 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14823
14852
|
key: "readSingle",
|
|
14824
14853
|
value: (function () {
|
|
14825
14854
|
var _readSingle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(tagInfo, listener, options) {
|
|
14826
|
-
var length, stream, syntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding;
|
|
14827
|
-
return _regeneratorRuntime().wrap(function
|
|
14855
|
+
var length, stream, syntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding, valuesForListener;
|
|
14856
|
+
return _regeneratorRuntime().wrap(function (_context11) {
|
|
14828
14857
|
while (1) switch (_context11.prev = _context11.next) {
|
|
14829
14858
|
case 0:
|
|
14830
14859
|
length = tagInfo.length;
|
|
14831
14860
|
stream = this.stream, syntax = this.syntax;
|
|
14832
|
-
_context11.next =
|
|
14861
|
+
_context11.next = 1;
|
|
14833
14862
|
return this.stream.ensureAvailable(length);
|
|
14834
|
-
case
|
|
14863
|
+
case 1:
|
|
14835
14864
|
vr = ValueRepresentation.createByTypeString(tagInfo.vr);
|
|
14836
14865
|
values = [];
|
|
14837
14866
|
if (vr.isBinary() && length > vr.maxLength && !vr.noMultiple) {
|
|
@@ -14857,34 +14886,34 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14857
14886
|
}
|
|
14858
14887
|
}
|
|
14859
14888
|
if (!(tagInfo.tag === TagHex.SpecificCharacterSet)) {
|
|
14860
|
-
_context11.next =
|
|
14889
|
+
_context11.next = 5;
|
|
14861
14890
|
break;
|
|
14862
14891
|
}
|
|
14863
14892
|
if (!(values.length > 0)) {
|
|
14864
|
-
_context11.next =
|
|
14893
|
+
_context11.next = 4;
|
|
14865
14894
|
break;
|
|
14866
14895
|
}
|
|
14867
14896
|
_values = values, _values2 = _slicedToArray(_values, 1), coding = _values2[0];
|
|
14868
14897
|
coding = coding.replace(/[_ ]/g, "-").toLowerCase();
|
|
14869
14898
|
if (!(coding in encodingMapping)) {
|
|
14870
|
-
_context11.next =
|
|
14899
|
+
_context11.next = 2;
|
|
14871
14900
|
break;
|
|
14872
14901
|
}
|
|
14873
14902
|
coding = encodingMapping[coding];
|
|
14874
14903
|
this.stream.setDecoder(new TextDecoder(coding));
|
|
14875
|
-
_context11.next =
|
|
14904
|
+
_context11.next = 4;
|
|
14876
14905
|
break;
|
|
14877
|
-
case
|
|
14906
|
+
case 2:
|
|
14878
14907
|
if (!(options !== null && options !== void 0 && options.ignoreErrors)) {
|
|
14879
|
-
_context11.next =
|
|
14908
|
+
_context11.next = 3;
|
|
14880
14909
|
break;
|
|
14881
14910
|
}
|
|
14882
14911
|
log.warn("Unsupported character set: ".concat(coding, ", using default character set"));
|
|
14883
|
-
_context11.next =
|
|
14912
|
+
_context11.next = 4;
|
|
14884
14913
|
break;
|
|
14885
|
-
case
|
|
14914
|
+
case 3:
|
|
14886
14915
|
throw Error("Unsupported character set: ".concat(coding));
|
|
14887
|
-
case
|
|
14916
|
+
case 4:
|
|
14888
14917
|
// Normalize to UTF-8 in the stored value, matching the synchronous
|
|
14889
14918
|
// DicomMessage path which always rewrites SpecificCharacterSet to
|
|
14890
14919
|
// ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
|
|
@@ -14892,12 +14921,13 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14892
14921
|
// TODO: the original charset value should also be preserved:
|
|
14893
14922
|
// it is needed for bulk data decoding.
|
|
14894
14923
|
values = ["ISO_IR 192"];
|
|
14895
|
-
case
|
|
14896
|
-
|
|
14924
|
+
case 5:
|
|
14925
|
+
valuesForListener = Array.isArray(values) ? values : [values];
|
|
14926
|
+
valuesForListener.forEach(function (value) {
|
|
14897
14927
|
return listener.value(value);
|
|
14898
14928
|
});
|
|
14899
14929
|
return _context11.abrupt("return", values);
|
|
14900
|
-
case
|
|
14930
|
+
case 6:
|
|
14901
14931
|
case "end":
|
|
14902
14932
|
return _context11.stop();
|
|
14903
14933
|
}
|
|
@@ -14909,7 +14939,6 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14909
14939
|
return readSingle;
|
|
14910
14940
|
}())
|
|
14911
14941
|
}]);
|
|
14912
|
-
return AsyncDicomReader;
|
|
14913
14942
|
}();
|
|
14914
14943
|
_defineProperty(AsyncDicomReader, "PART10_NO_PREAMBLE", Symbol("PART10_NO_PREAMBLE"));
|
|
14915
14944
|
|
|
@@ -14975,7 +15004,7 @@ var DerivedDataset = /*#__PURE__*/function () {
|
|
|
14975
15004
|
};
|
|
14976
15005
|
this.derive();
|
|
14977
15006
|
}
|
|
14978
|
-
_createClass(DerivedDataset, [{
|
|
15007
|
+
return _createClass(DerivedDataset, [{
|
|
14979
15008
|
key: "assignToDataset",
|
|
14980
15009
|
value: function assignToDataset(data) {
|
|
14981
15010
|
var _this = this;
|
|
@@ -15013,11 +15042,9 @@ var DerivedDataset = /*#__PURE__*/function () {
|
|
|
15013
15042
|
return JSON.parse(JSON.stringify(dataset));
|
|
15014
15043
|
}
|
|
15015
15044
|
}]);
|
|
15016
|
-
return DerivedDataset;
|
|
15017
15045
|
}();
|
|
15018
15046
|
|
|
15019
15047
|
var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
15020
|
-
_inherits(DerivedPixels, _DerivedDataset);
|
|
15021
15048
|
function DerivedPixels(datasets) {
|
|
15022
15049
|
var _this;
|
|
15023
15050
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -15032,7 +15059,8 @@ var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15032
15059
|
|
|
15033
15060
|
// this assumes a normalized multiframe input and will create
|
|
15034
15061
|
// a multiframe derived image
|
|
15035
|
-
|
|
15062
|
+
_inherits(DerivedPixels, _DerivedDataset);
|
|
15063
|
+
return _createClass(DerivedPixels, [{
|
|
15036
15064
|
key: "derive",
|
|
15037
15065
|
value: function derive() {
|
|
15038
15066
|
_get(_getPrototypeOf(DerivedPixels.prototype), "derive", this).call(this);
|
|
@@ -15059,29 +15087,26 @@ var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15059
15087
|
this.dataset.PixelData = new ArrayBuffer(this.referencedDataset.PixelData.byteLength);
|
|
15060
15088
|
}
|
|
15061
15089
|
}]);
|
|
15062
|
-
return DerivedPixels;
|
|
15063
15090
|
}(DerivedDataset);
|
|
15064
15091
|
|
|
15065
15092
|
var DerivedImage = /*#__PURE__*/function (_DerivedPixels) {
|
|
15066
|
-
_inherits(DerivedImage, _DerivedPixels);
|
|
15067
15093
|
function DerivedImage(datasets) {
|
|
15068
15094
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15069
15095
|
_classCallCheck(this, DerivedImage);
|
|
15070
15096
|
return _callSuper(this, DerivedImage, [datasets, options]);
|
|
15071
15097
|
}
|
|
15072
|
-
|
|
15098
|
+
_inherits(DerivedImage, _DerivedPixels);
|
|
15099
|
+
return _createClass(DerivedImage, [{
|
|
15073
15100
|
key: "derive",
|
|
15074
15101
|
value: function derive() {
|
|
15075
15102
|
_get(_getPrototypeOf(DerivedImage.prototype), "derive", this).call(this);
|
|
15076
15103
|
this.assignFromReference(["WindowCenter", "WindowWidth", "BitsAllocated", "PixelRepresentation", "BodyPartExamined", "Laterality", "PatientPosition", "RescaleSlope", "RescaleIntercept", "PixelPresentation", "VolumetricProperties", "VolumeBasedCalculationTechnique", "PresentationLUTShape"]);
|
|
15077
15104
|
}
|
|
15078
15105
|
}]);
|
|
15079
|
-
return DerivedImage;
|
|
15080
15106
|
}(DerivedPixels);
|
|
15081
15107
|
|
|
15082
15108
|
var Normalizer$1;
|
|
15083
15109
|
var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
15084
|
-
_inherits(Segmentation, _DerivedPixels);
|
|
15085
15110
|
function Segmentation(datasets) {
|
|
15086
15111
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15087
15112
|
includeSliceSpacing: true
|
|
@@ -15089,7 +15114,8 @@ var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
|
15089
15114
|
_classCallCheck(this, Segmentation);
|
|
15090
15115
|
return _callSuper(this, Segmentation, [datasets, options]);
|
|
15091
15116
|
}
|
|
15092
|
-
|
|
15117
|
+
_inherits(Segmentation, _DerivedPixels);
|
|
15118
|
+
return _createClass(Segmentation, [{
|
|
15093
15119
|
key: "derive",
|
|
15094
15120
|
value: function derive() {
|
|
15095
15121
|
_get(_getPrototypeOf(Segmentation.prototype), "derive", this).call(this);
|
|
@@ -15404,11 +15430,9 @@ var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
|
15404
15430
|
Normalizer$1 = normalizer;
|
|
15405
15431
|
}
|
|
15406
15432
|
}]);
|
|
15407
|
-
return Segmentation;
|
|
15408
15433
|
}(DerivedPixels);
|
|
15409
15434
|
|
|
15410
15435
|
var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
15411
|
-
_inherits(ParametricMap, _DerivedDataset);
|
|
15412
15436
|
function ParametricMap(datasets) {
|
|
15413
15437
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15414
15438
|
_classCallCheck(this, ParametricMap);
|
|
@@ -15417,7 +15441,8 @@ var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15417
15441
|
|
|
15418
15442
|
// this assumes a normalized multiframe input and will create
|
|
15419
15443
|
// a multiframe derived image
|
|
15420
|
-
|
|
15444
|
+
_inherits(ParametricMap, _DerivedDataset);
|
|
15445
|
+
return _createClass(ParametricMap, [{
|
|
15421
15446
|
key: "derive",
|
|
15422
15447
|
value: function derive() {
|
|
15423
15448
|
_get(_getPrototypeOf(ParametricMap.prototype), "derive", this).call(this);
|
|
@@ -15427,11 +15452,9 @@ var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15427
15452
|
this.assignFromReference([]);
|
|
15428
15453
|
}
|
|
15429
15454
|
}]);
|
|
15430
|
-
return ParametricMap;
|
|
15431
15455
|
}(DerivedDataset);
|
|
15432
15456
|
|
|
15433
15457
|
var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
15434
|
-
_inherits(StructuredReport, _DerivedDataset);
|
|
15435
15458
|
function StructuredReport(datasets) {
|
|
15436
15459
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15437
15460
|
_classCallCheck(this, StructuredReport);
|
|
@@ -15440,7 +15463,8 @@ var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15440
15463
|
|
|
15441
15464
|
// this assumes a normalized multiframe input and will create
|
|
15442
15465
|
// a multiframe derived image
|
|
15443
|
-
|
|
15466
|
+
_inherits(StructuredReport, _DerivedDataset);
|
|
15467
|
+
return _createClass(StructuredReport, [{
|
|
15444
15468
|
key: "derive",
|
|
15445
15469
|
value: function derive() {
|
|
15446
15470
|
_get(_getPrototypeOf(StructuredReport.prototype), "derive", this).call(this);
|
|
@@ -15452,7 +15476,6 @@ var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15452
15476
|
this.assignFromReference([]);
|
|
15453
15477
|
}
|
|
15454
15478
|
}]);
|
|
15455
|
-
return StructuredReport;
|
|
15456
15479
|
}(DerivedDataset);
|
|
15457
15480
|
|
|
15458
15481
|
var Normalizer = /*#__PURE__*/function () {
|
|
@@ -15461,7 +15484,7 @@ var Normalizer = /*#__PURE__*/function () {
|
|
|
15461
15484
|
this.datasets = datasets; // one or more dicom-like object instances
|
|
15462
15485
|
this.dataset = undefined; // a normalized multiframe dicom object instance
|
|
15463
15486
|
}
|
|
15464
|
-
_createClass(Normalizer, [{
|
|
15487
|
+
return _createClass(Normalizer, [{
|
|
15465
15488
|
key: "normalize",
|
|
15466
15489
|
value: function normalize() {
|
|
15467
15490
|
return "No normalization defined";
|
|
@@ -15539,15 +15562,14 @@ var Normalizer = /*#__PURE__*/function () {
|
|
|
15539
15562
|
return normalizer.dataset;
|
|
15540
15563
|
}
|
|
15541
15564
|
}]);
|
|
15542
|
-
return Normalizer;
|
|
15543
15565
|
}();
|
|
15544
15566
|
var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
15545
|
-
_inherits(ImageNormalizer, _Normalizer);
|
|
15546
15567
|
function ImageNormalizer() {
|
|
15547
15568
|
_classCallCheck(this, ImageNormalizer);
|
|
15548
15569
|
return _callSuper(this, ImageNormalizer, arguments);
|
|
15549
15570
|
}
|
|
15550
|
-
|
|
15571
|
+
_inherits(ImageNormalizer, _Normalizer);
|
|
15572
|
+
return _createClass(ImageNormalizer, [{
|
|
15551
15573
|
key: "normalize",
|
|
15552
15574
|
value: function normalize() {
|
|
15553
15575
|
this.convertToMultiframe();
|
|
@@ -15844,15 +15866,14 @@ var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
|
15844
15866
|
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
15845
15867
|
}
|
|
15846
15868
|
}]);
|
|
15847
|
-
return ImageNormalizer;
|
|
15848
15869
|
}(Normalizer);
|
|
15849
15870
|
var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
15850
|
-
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15851
15871
|
function MRImageNormalizer() {
|
|
15852
15872
|
_classCallCheck(this, MRImageNormalizer);
|
|
15853
15873
|
return _callSuper(this, MRImageNormalizer, arguments);
|
|
15854
15874
|
}
|
|
15855
|
-
|
|
15875
|
+
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15876
|
+
return _createClass(MRImageNormalizer, [{
|
|
15856
15877
|
key: "normalize",
|
|
15857
15878
|
value: function normalize() {
|
|
15858
15879
|
_get(_getPrototypeOf(MRImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15879,57 +15900,53 @@ var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
|
15879
15900
|
};
|
|
15880
15901
|
}
|
|
15881
15902
|
}]);
|
|
15882
|
-
return MRImageNormalizer;
|
|
15883
15903
|
}(ImageNormalizer);
|
|
15884
15904
|
var EnhancedCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer2) {
|
|
15885
|
-
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15886
15905
|
function EnhancedCTImageNormalizer() {
|
|
15887
15906
|
_classCallCheck(this, EnhancedCTImageNormalizer);
|
|
15888
15907
|
return _callSuper(this, EnhancedCTImageNormalizer, arguments);
|
|
15889
15908
|
}
|
|
15890
|
-
|
|
15909
|
+
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15910
|
+
return _createClass(EnhancedCTImageNormalizer, [{
|
|
15891
15911
|
key: "normalize",
|
|
15892
15912
|
value: function normalize() {
|
|
15893
15913
|
_get(_getPrototypeOf(EnhancedCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
15894
15914
|
}
|
|
15895
15915
|
}]);
|
|
15896
|
-
return EnhancedCTImageNormalizer;
|
|
15897
15916
|
}(ImageNormalizer);
|
|
15898
15917
|
var EnhancedMRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer3) {
|
|
15899
|
-
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15900
15918
|
function EnhancedMRImageNormalizer() {
|
|
15901
15919
|
_classCallCheck(this, EnhancedMRImageNormalizer);
|
|
15902
15920
|
return _callSuper(this, EnhancedMRImageNormalizer, arguments);
|
|
15903
15921
|
}
|
|
15904
|
-
|
|
15922
|
+
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15923
|
+
return _createClass(EnhancedMRImageNormalizer, [{
|
|
15905
15924
|
key: "normalize",
|
|
15906
15925
|
value: function normalize() {
|
|
15907
15926
|
_get(_getPrototypeOf(EnhancedMRImageNormalizer.prototype), "normalize", this).call(this);
|
|
15908
15927
|
}
|
|
15909
15928
|
}]);
|
|
15910
|
-
return EnhancedMRImageNormalizer;
|
|
15911
15929
|
}(ImageNormalizer);
|
|
15912
15930
|
var EnhancedUSVolumeNormalizer = /*#__PURE__*/function (_ImageNormalizer4) {
|
|
15913
|
-
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15914
15931
|
function EnhancedUSVolumeNormalizer() {
|
|
15915
15932
|
_classCallCheck(this, EnhancedUSVolumeNormalizer);
|
|
15916
15933
|
return _callSuper(this, EnhancedUSVolumeNormalizer, arguments);
|
|
15917
15934
|
}
|
|
15918
|
-
|
|
15935
|
+
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15936
|
+
return _createClass(EnhancedUSVolumeNormalizer, [{
|
|
15919
15937
|
key: "normalize",
|
|
15920
15938
|
value: function normalize() {
|
|
15921
15939
|
_get(_getPrototypeOf(EnhancedUSVolumeNormalizer.prototype), "normalize", this).call(this);
|
|
15922
15940
|
}
|
|
15923
15941
|
}]);
|
|
15924
|
-
return EnhancedUSVolumeNormalizer;
|
|
15925
15942
|
}(ImageNormalizer);
|
|
15926
15943
|
var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
15927
|
-
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15928
15944
|
function NMImageNormalizer() {
|
|
15929
15945
|
_classCallCheck(this, NMImageNormalizer);
|
|
15930
15946
|
return _callSuper(this, NMImageNormalizer, arguments);
|
|
15931
15947
|
}
|
|
15932
|
-
|
|
15948
|
+
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15949
|
+
return _createClass(NMImageNormalizer, [{
|
|
15933
15950
|
key: "normalize",
|
|
15934
15951
|
value: function normalize() {
|
|
15935
15952
|
_get(_getPrototypeOf(NMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15938,15 +15955,14 @@ var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
|
15938
15955
|
this.dataset.SOPClassUID = toUID.NMImage;
|
|
15939
15956
|
}
|
|
15940
15957
|
}]);
|
|
15941
|
-
return NMImageNormalizer;
|
|
15942
15958
|
}(ImageNormalizer);
|
|
15943
15959
|
var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
15944
|
-
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15945
15960
|
function CTImageNormalizer() {
|
|
15946
15961
|
_classCallCheck(this, CTImageNormalizer);
|
|
15947
15962
|
return _callSuper(this, CTImageNormalizer, arguments);
|
|
15948
15963
|
}
|
|
15949
|
-
|
|
15964
|
+
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15965
|
+
return _createClass(CTImageNormalizer, [{
|
|
15950
15966
|
key: "normalize",
|
|
15951
15967
|
value: function normalize() {
|
|
15952
15968
|
_get(_getPrototypeOf(CTImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15956,15 +15972,14 @@ var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
|
15956
15972
|
this.dataset.SOPClassUID = toUID.EnhancedCTImage;
|
|
15957
15973
|
}
|
|
15958
15974
|
}]);
|
|
15959
|
-
return CTImageNormalizer;
|
|
15960
15975
|
}(ImageNormalizer);
|
|
15961
15976
|
var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
15962
|
-
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15963
15977
|
function PETImageNormalizer() {
|
|
15964
15978
|
_classCallCheck(this, PETImageNormalizer);
|
|
15965
15979
|
return _callSuper(this, PETImageNormalizer, arguments);
|
|
15966
15980
|
}
|
|
15967
|
-
|
|
15981
|
+
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15982
|
+
return _createClass(PETImageNormalizer, [{
|
|
15968
15983
|
key: "normalize",
|
|
15969
15984
|
value: function normalize() {
|
|
15970
15985
|
_get(_getPrototypeOf(PETImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15974,29 +15989,27 @@ var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
|
15974
15989
|
this.dataset.SOPClassUID = toUID.EnhancedPETImage;
|
|
15975
15990
|
}
|
|
15976
15991
|
}]);
|
|
15977
|
-
return PETImageNormalizer;
|
|
15978
15992
|
}(ImageNormalizer);
|
|
15979
15993
|
var SEGImageNormalizer = /*#__PURE__*/function (_ImageNormalizer8) {
|
|
15980
|
-
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15981
15994
|
function SEGImageNormalizer() {
|
|
15982
15995
|
_classCallCheck(this, SEGImageNormalizer);
|
|
15983
15996
|
return _callSuper(this, SEGImageNormalizer, arguments);
|
|
15984
15997
|
}
|
|
15985
|
-
|
|
15998
|
+
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15999
|
+
return _createClass(SEGImageNormalizer, [{
|
|
15986
16000
|
key: "normalize",
|
|
15987
16001
|
value: function normalize() {
|
|
15988
16002
|
_get(_getPrototypeOf(SEGImageNormalizer.prototype), "normalize", this).call(this);
|
|
15989
16003
|
}
|
|
15990
16004
|
}]);
|
|
15991
|
-
return SEGImageNormalizer;
|
|
15992
16005
|
}(ImageNormalizer);
|
|
15993
16006
|
var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
15994
|
-
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
15995
16007
|
function PMImageNormalizer() {
|
|
15996
16008
|
_classCallCheck(this, PMImageNormalizer);
|
|
15997
16009
|
return _callSuper(this, PMImageNormalizer, arguments);
|
|
15998
16010
|
}
|
|
15999
|
-
|
|
16011
|
+
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
16012
|
+
return _createClass(PMImageNormalizer, [{
|
|
16000
16013
|
key: "normalize",
|
|
16001
16014
|
value: function normalize() {
|
|
16002
16015
|
_get(_getPrototypeOf(PMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -16006,49 +16019,45 @@ var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
|
16006
16019
|
}
|
|
16007
16020
|
}
|
|
16008
16021
|
}]);
|
|
16009
|
-
return PMImageNormalizer;
|
|
16010
16022
|
}(ImageNormalizer);
|
|
16011
16023
|
var DSRNormalizer = /*#__PURE__*/function (_Normalizer2) {
|
|
16012
|
-
_inherits(DSRNormalizer, _Normalizer2);
|
|
16013
16024
|
function DSRNormalizer() {
|
|
16014
16025
|
_classCallCheck(this, DSRNormalizer);
|
|
16015
16026
|
return _callSuper(this, DSRNormalizer, arguments);
|
|
16016
16027
|
}
|
|
16017
|
-
|
|
16028
|
+
_inherits(DSRNormalizer, _Normalizer2);
|
|
16029
|
+
return _createClass(DSRNormalizer, [{
|
|
16018
16030
|
key: "normalize",
|
|
16019
16031
|
value: function normalize() {
|
|
16020
16032
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16021
16033
|
}
|
|
16022
16034
|
}]);
|
|
16023
|
-
return DSRNormalizer;
|
|
16024
16035
|
}(Normalizer);
|
|
16025
16036
|
var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
|
|
16026
|
-
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16027
16037
|
function OPImageNormalizer() {
|
|
16028
16038
|
_classCallCheck(this, OPImageNormalizer);
|
|
16029
16039
|
return _callSuper(this, OPImageNormalizer, arguments);
|
|
16030
16040
|
}
|
|
16031
|
-
|
|
16041
|
+
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16042
|
+
return _createClass(OPImageNormalizer, [{
|
|
16032
16043
|
key: "normalize",
|
|
16033
16044
|
value: function normalize() {
|
|
16034
16045
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16035
16046
|
}
|
|
16036
16047
|
}]);
|
|
16037
|
-
return OPImageNormalizer;
|
|
16038
16048
|
}(Normalizer);
|
|
16039
16049
|
var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer0) {
|
|
16040
|
-
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16041
16050
|
function OCTImageNormalizer() {
|
|
16042
16051
|
_classCallCheck(this, OCTImageNormalizer);
|
|
16043
16052
|
return _callSuper(this, OCTImageNormalizer, arguments);
|
|
16044
16053
|
}
|
|
16045
|
-
|
|
16054
|
+
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16055
|
+
return _createClass(OCTImageNormalizer, [{
|
|
16046
16056
|
key: "normalize",
|
|
16047
16057
|
value: function normalize() {
|
|
16048
16058
|
_get(_getPrototypeOf(OCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
16049
16059
|
}
|
|
16050
16060
|
}]);
|
|
16051
|
-
return OCTImageNormalizer;
|
|
16052
16061
|
}(ImageNormalizer); // Avoid import loops
|
|
16053
16062
|
Segmentation$4.setNormalizer(Normalizer);
|
|
16054
16063
|
|
|
@@ -16156,7 +16165,7 @@ var TID1500MeasurementReport = /*#__PURE__*/function () {
|
|
|
16156
16165
|
}]
|
|
16157
16166
|
};
|
|
16158
16167
|
}
|
|
16159
|
-
_createClass(TID1500MeasurementReport, [{
|
|
16168
|
+
return _createClass(TID1500MeasurementReport, [{
|
|
16160
16169
|
key: "validate",
|
|
16161
16170
|
value: function validate() {}
|
|
16162
16171
|
}, {
|
|
@@ -16247,7 +16256,6 @@ var TID1500MeasurementReport = /*#__PURE__*/function () {
|
|
|
16247
16256
|
this.tid1500.ContentSequence.push(ImagingMeasurments);
|
|
16248
16257
|
}
|
|
16249
16258
|
}]);
|
|
16250
|
-
return TID1500MeasurementReport;
|
|
16251
16259
|
}();
|
|
16252
16260
|
|
|
16253
16261
|
var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
@@ -16255,7 +16263,7 @@ var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
|
16255
16263
|
_classCallCheck(this, TID1501MeasurementGroup);
|
|
16256
16264
|
this.TID300Measurements = TID300Measurements;
|
|
16257
16265
|
}
|
|
16258
|
-
_createClass(TID1501MeasurementGroup, [{
|
|
16266
|
+
return _createClass(TID1501MeasurementGroup, [{
|
|
16259
16267
|
key: "contentItem",
|
|
16260
16268
|
value: function contentItem() {
|
|
16261
16269
|
var _this = this;
|
|
@@ -16284,7 +16292,6 @@ var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
|
16284
16292
|
};
|
|
16285
16293
|
}
|
|
16286
16294
|
}]);
|
|
16287
|
-
return TID1501MeasurementGroup;
|
|
16288
16295
|
}();
|
|
16289
16296
|
|
|
16290
16297
|
var toArray = function toArray(x) {
|
|
@@ -16344,7 +16351,7 @@ var MeasurementReport$3 = /*#__PURE__*/function () {
|
|
|
16344
16351
|
function MeasurementReport() {
|
|
16345
16352
|
_classCallCheck(this, MeasurementReport);
|
|
16346
16353
|
}
|
|
16347
|
-
_createClass(MeasurementReport, null, [{
|
|
16354
|
+
return _createClass(MeasurementReport, null, [{
|
|
16348
16355
|
key: "getSetupMeasurementData",
|
|
16349
16356
|
value: function getSetupMeasurementData(MeasurementGroup) {
|
|
16350
16357
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -16555,7 +16562,6 @@ var MeasurementReport$3 = /*#__PURE__*/function () {
|
|
|
16555
16562
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
16556
16563
|
}
|
|
16557
16564
|
}]);
|
|
16558
|
-
return MeasurementReport;
|
|
16559
16565
|
}();
|
|
16560
16566
|
MeasurementReport$3.MEASUREMENT_BY_TOOLTYPE = {};
|
|
16561
16567
|
MeasurementReport$3.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -16567,7 +16573,7 @@ var TID300Measurement = /*#__PURE__*/function () {
|
|
|
16567
16573
|
this.ReferencedSOPSequence = props.ReferencedSOPSequence;
|
|
16568
16574
|
this.props = props;
|
|
16569
16575
|
}
|
|
16570
|
-
_createClass(TID300Measurement, [{
|
|
16576
|
+
return _createClass(TID300Measurement, [{
|
|
16571
16577
|
key: "getMeasurement",
|
|
16572
16578
|
value: function getMeasurement(contentSequenceEntries) {
|
|
16573
16579
|
return [].concat(_toConsumableArray(this.getTrackingGroups()), _toConsumableArray(this.getFindingGroup()), _toConsumableArray(this.getFindingSiteGroups()), _toConsumableArray(contentSequenceEntries));
|
|
@@ -16675,7 +16681,6 @@ var TID300Measurement = /*#__PURE__*/function () {
|
|
|
16675
16681
|
return flattenedCoordinates;
|
|
16676
16682
|
}
|
|
16677
16683
|
}]);
|
|
16678
|
-
return TID300Measurement;
|
|
16679
16684
|
}();
|
|
16680
16685
|
|
|
16681
16686
|
/**
|
|
@@ -16697,7 +16702,7 @@ var TID320ContentItem = /*#__PURE__*/function () {
|
|
|
16697
16702
|
this.referencedSOPSequence = referencedSOPSequence;
|
|
16698
16703
|
this.referencedFrameOfReferenceUID = referencedFrameOfReferenceUID;
|
|
16699
16704
|
}
|
|
16700
|
-
_createClass(TID320ContentItem, [{
|
|
16705
|
+
return _createClass(TID320ContentItem, [{
|
|
16701
16706
|
key: "contentItem",
|
|
16702
16707
|
value: function contentItem() {
|
|
16703
16708
|
var content = {
|
|
@@ -16718,16 +16723,15 @@ var TID320ContentItem = /*#__PURE__*/function () {
|
|
|
16718
16723
|
return content;
|
|
16719
16724
|
}
|
|
16720
16725
|
}]);
|
|
16721
|
-
return TID320ContentItem;
|
|
16722
16726
|
}();
|
|
16723
16727
|
|
|
16724
16728
|
var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
16725
|
-
_inherits(OpenPolyline, _TID300Measurement);
|
|
16726
16729
|
function OpenPolyline() {
|
|
16727
16730
|
_classCallCheck(this, OpenPolyline);
|
|
16728
16731
|
return _callSuper(this, OpenPolyline, arguments);
|
|
16729
16732
|
}
|
|
16730
|
-
|
|
16733
|
+
_inherits(OpenPolyline, _TID300Measurement);
|
|
16734
|
+
return _createClass(OpenPolyline, [{
|
|
16731
16735
|
key: "getPoints",
|
|
16732
16736
|
value: function getPoints() {
|
|
16733
16737
|
throw new Error("getPoints() must be implemented by subclass");
|
|
@@ -16776,7 +16780,6 @@ var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
16776
16780
|
}]);
|
|
16777
16781
|
}
|
|
16778
16782
|
}]);
|
|
16779
|
-
return OpenPolyline;
|
|
16780
16783
|
}(TID300Measurement);
|
|
16781
16784
|
|
|
16782
16785
|
var knownUnits = [
|
|
@@ -16954,12 +16957,12 @@ var unit2CodingValue = function unit2CodingValue(units) {
|
|
|
16954
16957
|
unit2CodingValue.measurementMap = unitCodeMap;
|
|
16955
16958
|
|
|
16956
16959
|
var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
16957
|
-
_inherits(Length, _OpenPolyline);
|
|
16958
16960
|
function Length() {
|
|
16959
16961
|
_classCallCheck(this, Length);
|
|
16960
16962
|
return _callSuper(this, Length, arguments);
|
|
16961
16963
|
}
|
|
16962
|
-
|
|
16964
|
+
_inherits(Length, _OpenPolyline);
|
|
16965
|
+
return _createClass(Length, [{
|
|
16963
16966
|
key: "getPoints",
|
|
16964
16967
|
value: function getPoints() {
|
|
16965
16968
|
var _this$props = this.props,
|
|
@@ -16989,7 +16992,6 @@ var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
16989
16992
|
};
|
|
16990
16993
|
}
|
|
16991
16994
|
}]);
|
|
16992
|
-
return Length;
|
|
16993
16995
|
}(OpenPolyline);
|
|
16994
16996
|
|
|
16995
16997
|
var CORNERSTONE_4_TAG = "cornerstoneTools@^4.0.0";
|
|
@@ -17001,7 +17003,7 @@ var Length$1 = /*#__PURE__*/function () {
|
|
|
17001
17003
|
}
|
|
17002
17004
|
|
|
17003
17005
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17004
|
-
_createClass(Length, null, [{
|
|
17006
|
+
return _createClass(Length, null, [{
|
|
17005
17007
|
key: "getMeasurementData",
|
|
17006
17008
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17007
17009
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17050,7 +17052,6 @@ var Length$1 = /*#__PURE__*/function () {
|
|
|
17050
17052
|
};
|
|
17051
17053
|
}
|
|
17052
17054
|
}]);
|
|
17053
|
-
return Length;
|
|
17054
17055
|
}();
|
|
17055
17056
|
Length$1.toolType = LENGTH$1;
|
|
17056
17057
|
Length$1.utilityToolType = LENGTH$1;
|
|
@@ -17087,7 +17088,7 @@ var MeasurementBuilder = /*#__PURE__*/function () {
|
|
|
17087
17088
|
function MeasurementBuilder() {
|
|
17088
17089
|
_classCallCheck(this, MeasurementBuilder);
|
|
17089
17090
|
}
|
|
17090
|
-
_createClass(MeasurementBuilder, null, [{
|
|
17091
|
+
return _createClass(MeasurementBuilder, null, [{
|
|
17091
17092
|
key: "createNumericMeasurement",
|
|
17092
17093
|
value:
|
|
17093
17094
|
/**
|
|
@@ -17181,16 +17182,15 @@ var MeasurementBuilder = /*#__PURE__*/function () {
|
|
|
17181
17182
|
});
|
|
17182
17183
|
}
|
|
17183
17184
|
}]);
|
|
17184
|
-
return MeasurementBuilder;
|
|
17185
17185
|
}();
|
|
17186
17186
|
|
|
17187
17187
|
var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17188
|
-
_inherits(Polyline, _TID300Measurement);
|
|
17189
17188
|
function Polyline() {
|
|
17190
17189
|
_classCallCheck(this, Polyline);
|
|
17191
17190
|
return _callSuper(this, Polyline, arguments);
|
|
17192
17191
|
}
|
|
17193
|
-
|
|
17192
|
+
_inherits(Polyline, _TID300Measurement);
|
|
17193
|
+
return _createClass(Polyline, [{
|
|
17194
17194
|
key: "contentItem",
|
|
17195
17195
|
value: function contentItem() {
|
|
17196
17196
|
var _this$props = this.props,
|
|
@@ -17256,14 +17256,13 @@ var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17256
17256
|
return this.getMeasurement(measurements);
|
|
17257
17257
|
}
|
|
17258
17258
|
}]);
|
|
17259
|
-
return Polyline;
|
|
17260
17259
|
}(TID300Measurement);
|
|
17261
17260
|
|
|
17262
17261
|
var FreehandRoi = /*#__PURE__*/function () {
|
|
17263
17262
|
function FreehandRoi() {
|
|
17264
17263
|
_classCallCheck(this, FreehandRoi);
|
|
17265
17264
|
}
|
|
17266
|
-
_createClass(FreehandRoi, null, [{
|
|
17265
|
+
return _createClass(FreehandRoi, null, [{
|
|
17267
17266
|
key: "getMeasurementData",
|
|
17268
17267
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17269
17268
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17322,7 +17321,6 @@ var FreehandRoi = /*#__PURE__*/function () {
|
|
|
17322
17321
|
};
|
|
17323
17322
|
}
|
|
17324
17323
|
}]);
|
|
17325
|
-
return FreehandRoi;
|
|
17326
17324
|
}();
|
|
17327
17325
|
FreehandRoi.toolType = "FreehandRoi";
|
|
17328
17326
|
FreehandRoi.utilityToolType = "FreehandRoi";
|
|
@@ -17343,12 +17341,12 @@ FreehandRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier)
|
|
|
17343
17341
|
MeasurementReport$3.registerTool(FreehandRoi);
|
|
17344
17342
|
|
|
17345
17343
|
var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17346
|
-
_inherits(Bidirectional, _TID300Measurement);
|
|
17347
17344
|
function Bidirectional() {
|
|
17348
17345
|
_classCallCheck(this, Bidirectional);
|
|
17349
17346
|
return _callSuper(this, Bidirectional, arguments);
|
|
17350
17347
|
}
|
|
17351
|
-
|
|
17348
|
+
_inherits(Bidirectional, _TID300Measurement);
|
|
17349
|
+
return _createClass(Bidirectional, [{
|
|
17352
17350
|
key: "contentItem",
|
|
17353
17351
|
value: function contentItem() {
|
|
17354
17352
|
var _this$props = this.props,
|
|
@@ -17412,7 +17410,6 @@ var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17412
17410
|
}]);
|
|
17413
17411
|
}
|
|
17414
17412
|
}]);
|
|
17415
|
-
return Bidirectional;
|
|
17416
17413
|
}(TID300Measurement);
|
|
17417
17414
|
|
|
17418
17415
|
var BIDIRECTIONAL$1 = "Bidirectional";
|
|
@@ -17426,7 +17423,7 @@ var Bidirectional$1 = /*#__PURE__*/function () {
|
|
|
17426
17423
|
}
|
|
17427
17424
|
|
|
17428
17425
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17429
|
-
_createClass(Bidirectional, null, [{
|
|
17426
|
+
return _createClass(Bidirectional, null, [{
|
|
17430
17427
|
key: "getMeasurementData",
|
|
17431
17428
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17432
17429
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -17557,7 +17554,6 @@ var Bidirectional$1 = /*#__PURE__*/function () {
|
|
|
17557
17554
|
};
|
|
17558
17555
|
}
|
|
17559
17556
|
}]);
|
|
17560
|
-
return Bidirectional;
|
|
17561
17557
|
}();
|
|
17562
17558
|
Bidirectional$1.toolType = BIDIRECTIONAL$1;
|
|
17563
17559
|
Bidirectional$1.utilityToolType = BIDIRECTIONAL$1;
|
|
@@ -17578,12 +17574,12 @@ Bidirectional$1.isValidCornerstoneTrackingIdentifier = function (TrackingIdentif
|
|
|
17578
17574
|
MeasurementReport$3.registerTool(Bidirectional$1);
|
|
17579
17575
|
|
|
17580
17576
|
var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17581
|
-
_inherits(Ellipse, _TID300Measurement);
|
|
17582
17577
|
function Ellipse() {
|
|
17583
17578
|
_classCallCheck(this, Ellipse);
|
|
17584
17579
|
return _callSuper(this, Ellipse, arguments);
|
|
17585
17580
|
}
|
|
17586
|
-
|
|
17581
|
+
_inherits(Ellipse, _TID300Measurement);
|
|
17582
|
+
return _createClass(Ellipse, [{
|
|
17587
17583
|
key: "contentItem",
|
|
17588
17584
|
value: function contentItem() {
|
|
17589
17585
|
var _this$props = this.props,
|
|
@@ -17641,7 +17637,6 @@ var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17641
17637
|
return this.getMeasurement(measurements);
|
|
17642
17638
|
}
|
|
17643
17639
|
}]);
|
|
17644
|
-
return Ellipse;
|
|
17645
17640
|
}(TID300Measurement);
|
|
17646
17641
|
|
|
17647
17642
|
var ELLIPTICALROI$1 = "EllipticalRoi";
|
|
@@ -17651,7 +17646,7 @@ var EllipticalRoi = /*#__PURE__*/function () {
|
|
|
17651
17646
|
}
|
|
17652
17647
|
|
|
17653
17648
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17654
|
-
_createClass(EllipticalRoi, null, [{
|
|
17649
|
+
return _createClass(EllipticalRoi, null, [{
|
|
17655
17650
|
key: "getMeasurementData",
|
|
17656
17651
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17657
17652
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17796,7 +17791,6 @@ var EllipticalRoi = /*#__PURE__*/function () {
|
|
|
17796
17791
|
};
|
|
17797
17792
|
}
|
|
17798
17793
|
}]);
|
|
17799
|
-
return EllipticalRoi;
|
|
17800
17794
|
}();
|
|
17801
17795
|
EllipticalRoi.toolType = ELLIPTICALROI$1;
|
|
17802
17796
|
EllipticalRoi.utilityToolType = ELLIPTICALROI$1;
|
|
@@ -17817,12 +17811,12 @@ EllipticalRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifie
|
|
|
17817
17811
|
MeasurementReport$3.registerTool(EllipticalRoi);
|
|
17818
17812
|
|
|
17819
17813
|
var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17820
|
-
_inherits(Circle, _TID300Measurement);
|
|
17821
17814
|
function Circle() {
|
|
17822
17815
|
_classCallCheck(this, Circle);
|
|
17823
17816
|
return _callSuper(this, Circle, arguments);
|
|
17824
17817
|
}
|
|
17825
|
-
|
|
17818
|
+
_inherits(Circle, _TID300Measurement);
|
|
17819
|
+
return _createClass(Circle, [{
|
|
17826
17820
|
key: "contentItem",
|
|
17827
17821
|
value: function contentItem() {
|
|
17828
17822
|
var _this$props = this.props,
|
|
@@ -17899,7 +17893,6 @@ var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17899
17893
|
return this.getMeasurement(measurements);
|
|
17900
17894
|
}
|
|
17901
17895
|
}]);
|
|
17902
|
-
return Circle;
|
|
17903
17896
|
}(TID300Measurement);
|
|
17904
17897
|
|
|
17905
17898
|
var CIRCLEROI = "CircleRoi";
|
|
@@ -17909,7 +17902,7 @@ var CircleRoi = /*#__PURE__*/function () {
|
|
|
17909
17902
|
}
|
|
17910
17903
|
|
|
17911
17904
|
/** Gets the measurement data for cornerstone, given DICOM SR measurement data. */
|
|
17912
|
-
_createClass(CircleRoi, null, [{
|
|
17905
|
+
return _createClass(CircleRoi, null, [{
|
|
17913
17906
|
key: "getMeasurementData",
|
|
17914
17907
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17915
17908
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17998,7 +17991,6 @@ var CircleRoi = /*#__PURE__*/function () {
|
|
|
17998
17991
|
};
|
|
17999
17992
|
}
|
|
18000
17993
|
}]);
|
|
18001
|
-
return CircleRoi;
|
|
18002
17994
|
}();
|
|
18003
17995
|
CircleRoi.toolType = CIRCLEROI;
|
|
18004
17996
|
CircleRoi.utilityToolType = CIRCLEROI;
|
|
@@ -18019,12 +18011,12 @@ CircleRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier) {
|
|
|
18019
18011
|
MeasurementReport$3.registerTool(CircleRoi);
|
|
18020
18012
|
|
|
18021
18013
|
var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
18022
|
-
_inherits(Point, _TID300Measurement);
|
|
18023
18014
|
function Point() {
|
|
18024
18015
|
_classCallCheck(this, Point);
|
|
18025
18016
|
return _callSuper(this, Point, arguments);
|
|
18026
18017
|
}
|
|
18027
|
-
|
|
18018
|
+
_inherits(Point, _TID300Measurement);
|
|
18019
|
+
return _createClass(Point, [{
|
|
18028
18020
|
key: "contentItem",
|
|
18029
18021
|
value: function contentItem() {
|
|
18030
18022
|
var _this$props = this.props,
|
|
@@ -18065,7 +18057,6 @@ var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
18065
18057
|
}]);
|
|
18066
18058
|
}
|
|
18067
18059
|
}]);
|
|
18068
|
-
return Point;
|
|
18069
18060
|
}(TID300Measurement);
|
|
18070
18061
|
|
|
18071
18062
|
var ARROW_ANNOTATE$1 = "ArrowAnnotate";
|
|
@@ -18074,7 +18065,7 @@ var ArrowAnnotate$2 = /*#__PURE__*/function () {
|
|
|
18074
18065
|
function ArrowAnnotate() {
|
|
18075
18066
|
_classCallCheck(this, ArrowAnnotate);
|
|
18076
18067
|
}
|
|
18077
|
-
_createClass(ArrowAnnotate, null, [{
|
|
18068
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
18078
18069
|
key: "getMeasurementData",
|
|
18079
18070
|
value: function getMeasurementData(MeasurementGroup) {
|
|
18080
18071
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -18139,7 +18130,6 @@ var ArrowAnnotate$2 = /*#__PURE__*/function () {
|
|
|
18139
18130
|
return TID300RepresentationArguments;
|
|
18140
18131
|
}
|
|
18141
18132
|
}]);
|
|
18142
|
-
return ArrowAnnotate;
|
|
18143
18133
|
}();
|
|
18144
18134
|
ArrowAnnotate$2.toolType = ARROW_ANNOTATE$1;
|
|
18145
18135
|
ArrowAnnotate$2.utilityToolType = ARROW_ANNOTATE$1;
|
|
@@ -22007,12 +21997,12 @@ function fillSegmentation(segmentation, inputLabelmaps3D) {
|
|
|
22007
21997
|
}
|
|
22008
21998
|
|
|
22009
21999
|
var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
22010
|
-
_inherits(CobbAngle, _OpenPolyline);
|
|
22011
22000
|
function CobbAngle() {
|
|
22012
22001
|
_classCallCheck(this, CobbAngle);
|
|
22013
22002
|
return _callSuper(this, CobbAngle, arguments);
|
|
22014
22003
|
}
|
|
22015
|
-
|
|
22004
|
+
_inherits(CobbAngle, _OpenPolyline);
|
|
22005
|
+
return _createClass(CobbAngle, [{
|
|
22016
22006
|
key: "getPoints",
|
|
22017
22007
|
value: function getPoints() {
|
|
22018
22008
|
var _this$props = this.props,
|
|
@@ -22046,7 +22036,6 @@ var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
22046
22036
|
};
|
|
22047
22037
|
}
|
|
22048
22038
|
}]);
|
|
22049
|
-
return CobbAngle;
|
|
22050
22039
|
}(OpenPolyline);
|
|
22051
22040
|
|
|
22052
22041
|
var COBB_ANGLE = "CobbAngle";
|
|
@@ -22056,7 +22045,7 @@ var CobbAngle = /*#__PURE__*/function () {
|
|
|
22056
22045
|
}
|
|
22057
22046
|
|
|
22058
22047
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22059
|
-
_createClass(CobbAngle, null, [{
|
|
22048
|
+
return _createClass(CobbAngle, null, [{
|
|
22060
22049
|
key: "getMeasurementData",
|
|
22061
22050
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22062
22051
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22121,7 +22110,6 @@ var CobbAngle = /*#__PURE__*/function () {
|
|
|
22121
22110
|
};
|
|
22122
22111
|
}
|
|
22123
22112
|
}]);
|
|
22124
|
-
return CobbAngle;
|
|
22125
22113
|
}();
|
|
22126
22114
|
CobbAngle.toolType = COBB_ANGLE;
|
|
22127
22115
|
CobbAngle.utilityToolType = COBB_ANGLE;
|
|
@@ -22152,7 +22140,7 @@ var Angle = /*#__PURE__*/function () {
|
|
|
22152
22140
|
* @param MeasurementGroup
|
|
22153
22141
|
* @returns
|
|
22154
22142
|
*/
|
|
22155
|
-
_createClass(Angle, null, [{
|
|
22143
|
+
return _createClass(Angle, null, [{
|
|
22156
22144
|
key: "getMeasurementData",
|
|
22157
22145
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22158
22146
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22210,7 +22198,6 @@ var Angle = /*#__PURE__*/function () {
|
|
|
22210
22198
|
};
|
|
22211
22199
|
}
|
|
22212
22200
|
}]);
|
|
22213
|
-
return Angle;
|
|
22214
22201
|
}();
|
|
22215
22202
|
Angle.toolType = ANGLE;
|
|
22216
22203
|
Angle.utilityToolType = ANGLE;
|
|
@@ -22234,7 +22221,7 @@ var RectangleRoi = /*#__PURE__*/function () {
|
|
|
22234
22221
|
function RectangleRoi() {
|
|
22235
22222
|
_classCallCheck(this, RectangleRoi);
|
|
22236
22223
|
}
|
|
22237
|
-
_createClass(RectangleRoi, null, [{
|
|
22224
|
+
return _createClass(RectangleRoi, null, [{
|
|
22238
22225
|
key: "getMeasurementData",
|
|
22239
22226
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22240
22227
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22303,7 +22290,6 @@ var RectangleRoi = /*#__PURE__*/function () {
|
|
|
22303
22290
|
};
|
|
22304
22291
|
}
|
|
22305
22292
|
}]);
|
|
22306
|
-
return RectangleRoi;
|
|
22307
22293
|
}();
|
|
22308
22294
|
RectangleRoi.toolType = "RectangleRoi";
|
|
22309
22295
|
RectangleRoi.utilityToolType = "RectangleRoi";
|
|
@@ -22423,7 +22409,7 @@ var MeasurementReport$2 = /*#__PURE__*/function () {
|
|
|
22423
22409
|
function MeasurementReport() {
|
|
22424
22410
|
_classCallCheck(this, MeasurementReport);
|
|
22425
22411
|
}
|
|
22426
|
-
_createClass(MeasurementReport, null, [{
|
|
22412
|
+
return _createClass(MeasurementReport, null, [{
|
|
22427
22413
|
key: "getCornerstoneLabelFromDefaultState",
|
|
22428
22414
|
value: function getCornerstoneLabelFromDefaultState(defaultState) {
|
|
22429
22415
|
var _defaultState$finding = defaultState.findingSites,
|
|
@@ -22674,7 +22660,6 @@ var MeasurementReport$2 = /*#__PURE__*/function () {
|
|
|
22674
22660
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
22675
22661
|
}
|
|
22676
22662
|
}]);
|
|
22677
|
-
return MeasurementReport;
|
|
22678
22663
|
}();
|
|
22679
22664
|
MeasurementReport$2.MEASUREMENT_BY_TOOLTYPE = {};
|
|
22680
22665
|
MeasurementReport$2.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -22690,7 +22675,7 @@ var Length = /*#__PURE__*/function () {
|
|
|
22690
22675
|
}
|
|
22691
22676
|
|
|
22692
22677
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22693
|
-
_createClass(Length, null, [{
|
|
22678
|
+
return _createClass(Length, null, [{
|
|
22694
22679
|
key: "getMeasurementData",
|
|
22695
22680
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22696
22681
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Length.toolType),
|
|
@@ -22757,7 +22742,6 @@ var Length = /*#__PURE__*/function () {
|
|
|
22757
22742
|
};
|
|
22758
22743
|
}
|
|
22759
22744
|
}]);
|
|
22760
|
-
return Length;
|
|
22761
22745
|
}();
|
|
22762
22746
|
Length.toolType = LENGTH;
|
|
22763
22747
|
Length.utilityToolType = LENGTH;
|
|
@@ -22785,7 +22769,7 @@ var Bidirectional = /*#__PURE__*/function () {
|
|
|
22785
22769
|
function Bidirectional() {
|
|
22786
22770
|
_classCallCheck(this, Bidirectional);
|
|
22787
22771
|
}
|
|
22788
|
-
_createClass(Bidirectional, null, [{
|
|
22772
|
+
return _createClass(Bidirectional, null, [{
|
|
22789
22773
|
key: "getMeasurementData",
|
|
22790
22774
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22791
22775
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Bidirectional.toolType),
|
|
@@ -22896,7 +22880,6 @@ var Bidirectional = /*#__PURE__*/function () {
|
|
|
22896
22880
|
};
|
|
22897
22881
|
}
|
|
22898
22882
|
}]);
|
|
22899
|
-
return Bidirectional;
|
|
22900
22883
|
}();
|
|
22901
22884
|
Bidirectional.toolType = BIDIRECTIONAL;
|
|
22902
22885
|
Bidirectional.utilityToolType = BIDIRECTIONAL;
|
|
@@ -23781,7 +23764,7 @@ var EllipticalROI = /*#__PURE__*/function () {
|
|
|
23781
23764
|
function EllipticalROI() {
|
|
23782
23765
|
_classCallCheck(this, EllipticalROI);
|
|
23783
23766
|
}
|
|
23784
|
-
_createClass(EllipticalROI, null, [{
|
|
23767
|
+
return _createClass(EllipticalROI, null, [{
|
|
23785
23768
|
key: "getMeasurementData",
|
|
23786
23769
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
23787
23770
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, EllipticalROI.toolType),
|
|
@@ -23927,7 +23910,6 @@ var EllipticalROI = /*#__PURE__*/function () {
|
|
|
23927
23910
|
};
|
|
23928
23911
|
}
|
|
23929
23912
|
}]);
|
|
23930
|
-
return EllipticalROI;
|
|
23931
23913
|
}();
|
|
23932
23914
|
EllipticalROI.toolType = ELLIPTICALROI;
|
|
23933
23915
|
EllipticalROI.utilityToolType = ELLIPTICALROI;
|
|
@@ -23951,12 +23933,12 @@ EllipticalROI.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifie
|
|
|
23951
23933
|
MeasurementReport$2.registerTool(EllipticalROI);
|
|
23952
23934
|
|
|
23953
23935
|
var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
23954
|
-
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23955
23936
|
function ArrowAnnotate() {
|
|
23956
23937
|
_classCallCheck(this, ArrowAnnotate);
|
|
23957
23938
|
return _callSuper(this, ArrowAnnotate, arguments);
|
|
23958
23939
|
}
|
|
23959
|
-
|
|
23940
|
+
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23941
|
+
return _createClass(ArrowAnnotate, [{
|
|
23960
23942
|
key: "getPoints",
|
|
23961
23943
|
value: function getPoints() {
|
|
23962
23944
|
return this.props.points;
|
|
@@ -23983,7 +23965,6 @@ var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
23983
23965
|
};
|
|
23984
23966
|
}
|
|
23985
23967
|
}]);
|
|
23986
|
-
return ArrowAnnotate;
|
|
23987
23968
|
}(OpenPolyline);
|
|
23988
23969
|
|
|
23989
23970
|
var ARROW_ANNOTATE = "ArrowAnnotate";
|
|
@@ -23994,7 +23975,7 @@ var ArrowAnnotate = /*#__PURE__*/function () {
|
|
|
23994
23975
|
function ArrowAnnotate() {
|
|
23995
23976
|
_classCallCheck(this, ArrowAnnotate);
|
|
23996
23977
|
}
|
|
23997
|
-
_createClass(ArrowAnnotate, null, [{
|
|
23978
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
23998
23979
|
key: "getMeasurementData",
|
|
23999
23980
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24000
23981
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, ArrowAnnotate.toolType),
|
|
@@ -24082,7 +24063,6 @@ var ArrowAnnotate = /*#__PURE__*/function () {
|
|
|
24082
24063
|
return TID300RepresentationArguments;
|
|
24083
24064
|
}
|
|
24084
24065
|
}]);
|
|
24085
|
-
return ArrowAnnotate;
|
|
24086
24066
|
}();
|
|
24087
24067
|
ArrowAnnotate.toolType = ARROW_ANNOTATE;
|
|
24088
24068
|
ArrowAnnotate.utilityToolType = ARROW_ANNOTATE;
|
|
@@ -24108,7 +24088,7 @@ var Probe = /*#__PURE__*/function () {
|
|
|
24108
24088
|
function Probe() {
|
|
24109
24089
|
_classCallCheck(this, Probe);
|
|
24110
24090
|
}
|
|
24111
|
-
_createClass(Probe, null, [{
|
|
24091
|
+
return _createClass(Probe, null, [{
|
|
24112
24092
|
key: "getMeasurementData",
|
|
24113
24093
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24114
24094
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Probe.toolType),
|
|
@@ -24163,7 +24143,6 @@ var Probe = /*#__PURE__*/function () {
|
|
|
24163
24143
|
return TID300RepresentationArguments;
|
|
24164
24144
|
}
|
|
24165
24145
|
}]);
|
|
24166
|
-
return Probe;
|
|
24167
24146
|
}();
|
|
24168
24147
|
Probe.toolType = PROBE;
|
|
24169
24148
|
Probe.utilityToolType = PROBE;
|
|
@@ -24190,7 +24169,7 @@ var PlanarFreehandROI = /*#__PURE__*/function () {
|
|
|
24190
24169
|
function PlanarFreehandROI() {
|
|
24191
24170
|
_classCallCheck(this, PlanarFreehandROI);
|
|
24192
24171
|
}
|
|
24193
|
-
_createClass(PlanarFreehandROI, null, [{
|
|
24172
|
+
return _createClass(PlanarFreehandROI, null, [{
|
|
24194
24173
|
key: "getMeasurementData",
|
|
24195
24174
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24196
24175
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, PlanarFreehandROI.toolType),
|
|
@@ -24267,7 +24246,6 @@ var PlanarFreehandROI = /*#__PURE__*/function () {
|
|
|
24267
24246
|
};
|
|
24268
24247
|
}
|
|
24269
24248
|
}]);
|
|
24270
|
-
return PlanarFreehandROI;
|
|
24271
24249
|
}();
|
|
24272
24250
|
PlanarFreehandROI.toolType = PLANARFREEHANDROI;
|
|
24273
24251
|
PlanarFreehandROI.utilityToolType = PLANARFREEHANDROI;
|
|
@@ -24429,7 +24407,7 @@ var Segmentation = /*#__PURE__*/function () {
|
|
|
24429
24407
|
* @param dataset
|
|
24430
24408
|
* @return {{}}
|
|
24431
24409
|
*/
|
|
24432
|
-
_createClass(Segmentation, null, [{
|
|
24410
|
+
return _createClass(Segmentation, null, [{
|
|
24433
24411
|
key: "generateSegments",
|
|
24434
24412
|
value: function generateSegments(dataset) {
|
|
24435
24413
|
if (dataset.SegmentSequence.constructor.name !== "Array") {
|
|
@@ -24477,7 +24455,6 @@ var Segmentation = /*#__PURE__*/function () {
|
|
|
24477
24455
|
return segments;
|
|
24478
24456
|
}
|
|
24479
24457
|
}]);
|
|
24480
|
-
return Segmentation;
|
|
24481
24458
|
}();
|
|
24482
24459
|
|
|
24483
24460
|
var VTKjs = {
|
|
@@ -24503,7 +24480,7 @@ var MeasurementReport$1 = /*#__PURE__*/function () {
|
|
|
24503
24480
|
function MeasurementReport() {
|
|
24504
24481
|
_classCallCheck(this, MeasurementReport);
|
|
24505
24482
|
}
|
|
24506
|
-
_createClass(MeasurementReport, null, [{
|
|
24483
|
+
return _createClass(MeasurementReport, null, [{
|
|
24507
24484
|
key: "generateReport",
|
|
24508
24485
|
value: function generateReport(rois, metadataProvider, options) {
|
|
24509
24486
|
// Input is all ROIS returned via viewer.getALLROIs()
|
|
@@ -24642,7 +24619,6 @@ var MeasurementReport$1 = /*#__PURE__*/function () {
|
|
|
24642
24619
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.graphicType] = toolClass.utilityToolType;
|
|
24643
24620
|
}
|
|
24644
24621
|
}]);
|
|
24645
|
-
return MeasurementReport;
|
|
24646
24622
|
}();
|
|
24647
24623
|
MeasurementReport$1.MEASUREMENT_BY_TOOLTYPE = {};
|
|
24648
24624
|
MeasurementReport$1.MICROSCOPY_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -24652,7 +24628,7 @@ var Polyline = /*#__PURE__*/function () {
|
|
|
24652
24628
|
function Polyline() {
|
|
24653
24629
|
_classCallCheck(this, Polyline);
|
|
24654
24630
|
}
|
|
24655
|
-
_createClass(Polyline, null, [{
|
|
24631
|
+
return _createClass(Polyline, null, [{
|
|
24656
24632
|
key: "getMeasurementData",
|
|
24657
24633
|
value: function getMeasurementData(measurementContent) {
|
|
24658
24634
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24689,7 +24665,6 @@ var Polyline = /*#__PURE__*/function () {
|
|
|
24689
24665
|
};
|
|
24690
24666
|
}
|
|
24691
24667
|
}]);
|
|
24692
|
-
return Polyline;
|
|
24693
24668
|
}();
|
|
24694
24669
|
Polyline.graphicType = "POLYLINE";
|
|
24695
24670
|
Polyline.toolType = "Polyline";
|
|
@@ -24698,12 +24673,12 @@ Polyline.TID300Representation = Polyline$1;
|
|
|
24698
24673
|
MeasurementReport$1.registerTool(Polyline);
|
|
24699
24674
|
|
|
24700
24675
|
var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
24701
|
-
_inherits(Polygon, _TID300Measurement);
|
|
24702
24676
|
function Polygon() {
|
|
24703
24677
|
_classCallCheck(this, Polygon);
|
|
24704
24678
|
return _callSuper(this, Polygon, arguments);
|
|
24705
24679
|
}
|
|
24706
|
-
|
|
24680
|
+
_inherits(Polygon, _TID300Measurement);
|
|
24681
|
+
return _createClass(Polygon, [{
|
|
24707
24682
|
key: "contentItem",
|
|
24708
24683
|
value: function contentItem() {
|
|
24709
24684
|
var _this$props = this.props,
|
|
@@ -24757,14 +24732,13 @@ var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
24757
24732
|
}]);
|
|
24758
24733
|
}
|
|
24759
24734
|
}]);
|
|
24760
|
-
return Polygon;
|
|
24761
24735
|
}(TID300Measurement);
|
|
24762
24736
|
|
|
24763
24737
|
var Polygon = /*#__PURE__*/function () {
|
|
24764
24738
|
function Polygon() {
|
|
24765
24739
|
_classCallCheck(this, Polygon);
|
|
24766
24740
|
}
|
|
24767
|
-
_createClass(Polygon, null, [{
|
|
24741
|
+
return _createClass(Polygon, null, [{
|
|
24768
24742
|
key: "getMeasurementData",
|
|
24769
24743
|
value: function getMeasurementData(measurementContent) {
|
|
24770
24744
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24801,7 +24775,6 @@ var Polygon = /*#__PURE__*/function () {
|
|
|
24801
24775
|
};
|
|
24802
24776
|
}
|
|
24803
24777
|
}]);
|
|
24804
|
-
return Polygon;
|
|
24805
24778
|
}();
|
|
24806
24779
|
Polygon.graphicType = "POLYGON";
|
|
24807
24780
|
Polygon.toolType = "Polygon";
|
|
@@ -24813,7 +24786,7 @@ var Point = /*#__PURE__*/function () {
|
|
|
24813
24786
|
function Point() {
|
|
24814
24787
|
_classCallCheck(this, Point);
|
|
24815
24788
|
}
|
|
24816
|
-
_createClass(Point, null, [{
|
|
24789
|
+
return _createClass(Point, null, [{
|
|
24817
24790
|
key: "getMeasurementData",
|
|
24818
24791
|
value: function getMeasurementData(measurementContent) {
|
|
24819
24792
|
var measurement = measurementContent.map(function (item) {
|
|
@@ -24841,7 +24814,6 @@ var Point = /*#__PURE__*/function () {
|
|
|
24841
24814
|
};
|
|
24842
24815
|
}
|
|
24843
24816
|
}]);
|
|
24844
|
-
return Point;
|
|
24845
24817
|
}();
|
|
24846
24818
|
Point.graphicType = "POINT";
|
|
24847
24819
|
Point.toolType = "Point";
|
|
@@ -24853,7 +24825,7 @@ var Circle = /*#__PURE__*/function () {
|
|
|
24853
24825
|
function Circle() {
|
|
24854
24826
|
_classCallCheck(this, Circle);
|
|
24855
24827
|
}
|
|
24856
|
-
_createClass(Circle, null, [{
|
|
24828
|
+
return _createClass(Circle, null, [{
|
|
24857
24829
|
key: "getMeasurementData",
|
|
24858
24830
|
value: function getMeasurementData(measurementContent) {
|
|
24859
24831
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24890,7 +24862,6 @@ var Circle = /*#__PURE__*/function () {
|
|
|
24890
24862
|
};
|
|
24891
24863
|
}
|
|
24892
24864
|
}]);
|
|
24893
|
-
return Circle;
|
|
24894
24865
|
}();
|
|
24895
24866
|
Circle.graphicType = "CIRCLE";
|
|
24896
24867
|
Circle.toolType = "Circle";
|
|
@@ -24902,7 +24873,7 @@ var Ellipse = /*#__PURE__*/function () {
|
|
|
24902
24873
|
function Ellipse() {
|
|
24903
24874
|
_classCallCheck(this, Ellipse);
|
|
24904
24875
|
}
|
|
24905
|
-
_createClass(Ellipse, null, [{
|
|
24876
|
+
return _createClass(Ellipse, null, [{
|
|
24906
24877
|
key: "getMeasurementData",
|
|
24907
24878
|
value: function getMeasurementData(measurementContent) {
|
|
24908
24879
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24939,7 +24910,6 @@ var Ellipse = /*#__PURE__*/function () {
|
|
|
24939
24910
|
};
|
|
24940
24911
|
}
|
|
24941
24912
|
}]);
|
|
24942
|
-
return Ellipse;
|
|
24943
24913
|
}();
|
|
24944
24914
|
Ellipse.graphicType = "ELLIPSE";
|
|
24945
24915
|
Ellipse.toolType = "Ellipse";
|
|
@@ -24969,12 +24939,12 @@ var TID1500 = {
|
|
|
24969
24939
|
};
|
|
24970
24940
|
|
|
24971
24941
|
var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
24972
|
-
_inherits(Calibration, _OpenPolyline);
|
|
24973
24942
|
function Calibration() {
|
|
24974
24943
|
_classCallCheck(this, Calibration);
|
|
24975
24944
|
return _callSuper(this, Calibration, arguments);
|
|
24976
24945
|
}
|
|
24977
|
-
|
|
24946
|
+
_inherits(Calibration, _OpenPolyline);
|
|
24947
|
+
return _createClass(Calibration, [{
|
|
24978
24948
|
key: "getPoints",
|
|
24979
24949
|
value: function getPoints() {
|
|
24980
24950
|
var _this$props = this.props,
|
|
@@ -25004,7 +24974,6 @@ var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
25004
24974
|
};
|
|
25005
24975
|
}
|
|
25006
24976
|
}]);
|
|
25007
|
-
return Calibration;
|
|
25008
24977
|
}(OpenPolyline);
|
|
25009
24978
|
|
|
25010
24979
|
// To be implemented:
|
|
@@ -25413,7 +25382,7 @@ var Code = /*#__PURE__*/function () {
|
|
|
25413
25382
|
this[_schemeDesignator] = options.schemeDesignator;
|
|
25414
25383
|
this[_schemeVersion] = options.schemeVersion || null;
|
|
25415
25384
|
}
|
|
25416
|
-
_createClass(Code, [{
|
|
25385
|
+
return _createClass(Code, [{
|
|
25417
25386
|
key: "value",
|
|
25418
25387
|
get: function get() {
|
|
25419
25388
|
return this[_value];
|
|
@@ -25434,7 +25403,6 @@ var Code = /*#__PURE__*/function () {
|
|
|
25434
25403
|
return this[_schemeVersion];
|
|
25435
25404
|
}
|
|
25436
25405
|
}]);
|
|
25437
|
-
return Code;
|
|
25438
25406
|
}();
|
|
25439
25407
|
var CodedConcept = /*#__PURE__*/function () {
|
|
25440
25408
|
function CodedConcept(options) {
|
|
@@ -25455,7 +25423,7 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25455
25423
|
this.CodingSchemeVersion = options.schemeVersion;
|
|
25456
25424
|
}
|
|
25457
25425
|
}
|
|
25458
|
-
_createClass(CodedConcept, [{
|
|
25426
|
+
return _createClass(CodedConcept, [{
|
|
25459
25427
|
key: "equals",
|
|
25460
25428
|
value: function equals(other) {
|
|
25461
25429
|
if (other.value === this.value && other.schemeDesignator === this.schemeDesignator) {
|
|
@@ -25487,7 +25455,6 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25487
25455
|
return this.CodingSchemeVersion;
|
|
25488
25456
|
}
|
|
25489
25457
|
}]);
|
|
25490
|
-
return CodedConcept;
|
|
25491
25458
|
}();
|
|
25492
25459
|
|
|
25493
25460
|
var coding = /*#__PURE__*/Object.freeze({
|
|
@@ -25580,7 +25547,6 @@ function DT(date) {
|
|
|
25580
25547
|
return DA(date) + TM(date);
|
|
25581
25548
|
}
|
|
25582
25549
|
var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
25583
|
-
_inherits(ContentSequence, _Array);
|
|
25584
25550
|
function ContentSequence() {
|
|
25585
25551
|
_classCallCheck(this, ContentSequence);
|
|
25586
25552
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -25591,6 +25557,7 @@ var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
|
25591
25557
|
|
|
25592
25558
|
// filterBy(options) {
|
|
25593
25559
|
// }
|
|
25560
|
+
_inherits(ContentSequence, _Array);
|
|
25594
25561
|
return _createClass(ContentSequence);
|
|
25595
25562
|
}(/*#__PURE__*/_wrapNativeSuper(Array));
|
|
25596
25563
|
var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
@@ -25624,7 +25591,6 @@ var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
|
25624
25591
|
// }
|
|
25625
25592
|
);
|
|
25626
25593
|
var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
25627
|
-
_inherits(CodeContentItem, _ContentItem);
|
|
25628
25594
|
function CodeContentItem(options) {
|
|
25629
25595
|
var _this;
|
|
25630
25596
|
_classCallCheck(this, CodeContentItem);
|
|
@@ -25642,10 +25608,10 @@ var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
|
25642
25608
|
_this.ConceptCodeSequence = addAccessors([options.value]);
|
|
25643
25609
|
return _this;
|
|
25644
25610
|
}
|
|
25611
|
+
_inherits(CodeContentItem, _ContentItem);
|
|
25645
25612
|
return _createClass(CodeContentItem);
|
|
25646
25613
|
}(ContentItem);
|
|
25647
25614
|
var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
25648
|
-
_inherits(TextContentItem, _ContentItem2);
|
|
25649
25615
|
function TextContentItem(options) {
|
|
25650
25616
|
var _this2;
|
|
25651
25617
|
_classCallCheck(this, TextContentItem);
|
|
@@ -25663,10 +25629,10 @@ var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
|
25663
25629
|
_this2.TextValue = options.value;
|
|
25664
25630
|
return _this2;
|
|
25665
25631
|
}
|
|
25632
|
+
_inherits(TextContentItem, _ContentItem2);
|
|
25666
25633
|
return _createClass(TextContentItem);
|
|
25667
25634
|
}(ContentItem);
|
|
25668
25635
|
var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
25669
|
-
_inherits(PNameContentItem, _ContentItem3);
|
|
25670
25636
|
function PNameContentItem(options) {
|
|
25671
25637
|
var _this3;
|
|
25672
25638
|
_classCallCheck(this, PNameContentItem);
|
|
@@ -25684,10 +25650,10 @@ var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
|
25684
25650
|
_this3.PersonName = options.value;
|
|
25685
25651
|
return _this3;
|
|
25686
25652
|
}
|
|
25653
|
+
_inherits(PNameContentItem, _ContentItem3);
|
|
25687
25654
|
return _createClass(PNameContentItem);
|
|
25688
25655
|
}(ContentItem);
|
|
25689
25656
|
var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
25690
|
-
_inherits(TimeContentItem, _ContentItem4);
|
|
25691
25657
|
function TimeContentItem(options) {
|
|
25692
25658
|
var _this4;
|
|
25693
25659
|
_classCallCheck(this, TimeContentItem);
|
|
@@ -25705,10 +25671,10 @@ var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
|
25705
25671
|
_this4.Time = TM(options.value);
|
|
25706
25672
|
return _this4;
|
|
25707
25673
|
}
|
|
25674
|
+
_inherits(TimeContentItem, _ContentItem4);
|
|
25708
25675
|
return _createClass(TimeContentItem);
|
|
25709
25676
|
}(ContentItem);
|
|
25710
25677
|
var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
25711
|
-
_inherits(DateContentItem, _ContentItem5);
|
|
25712
25678
|
function DateContentItem(options) {
|
|
25713
25679
|
var _this5;
|
|
25714
25680
|
_classCallCheck(this, DateContentItem);
|
|
@@ -25726,10 +25692,10 @@ var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
|
25726
25692
|
_this5.Date = DA(options.value);
|
|
25727
25693
|
return _this5;
|
|
25728
25694
|
}
|
|
25695
|
+
_inherits(DateContentItem, _ContentItem5);
|
|
25729
25696
|
return _createClass(DateContentItem);
|
|
25730
25697
|
}(ContentItem);
|
|
25731
25698
|
var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
25732
|
-
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25733
25699
|
function DateTimeContentItem(options) {
|
|
25734
25700
|
var _this6;
|
|
25735
25701
|
_classCallCheck(this, DateTimeContentItem);
|
|
@@ -25747,10 +25713,10 @@ var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
|
25747
25713
|
_this6.DateTime = DT(options.value);
|
|
25748
25714
|
return _this6;
|
|
25749
25715
|
}
|
|
25716
|
+
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25750
25717
|
return _createClass(DateTimeContentItem);
|
|
25751
25718
|
}(ContentItem);
|
|
25752
25719
|
var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
25753
|
-
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25754
25720
|
function UIDRefContentItem(options) {
|
|
25755
25721
|
var _this7;
|
|
25756
25722
|
_classCallCheck(this, UIDRefContentItem);
|
|
@@ -25768,10 +25734,10 @@ var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
|
25768
25734
|
_this7.UID = options.value;
|
|
25769
25735
|
return _this7;
|
|
25770
25736
|
}
|
|
25737
|
+
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25771
25738
|
return _createClass(UIDRefContentItem);
|
|
25772
25739
|
}(ContentItem);
|
|
25773
25740
|
var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
25774
|
-
_inherits(NumContentItem, _ContentItem8);
|
|
25775
25741
|
function NumContentItem(options) {
|
|
25776
25742
|
var _this8;
|
|
25777
25743
|
_classCallCheck(this, NumContentItem);
|
|
@@ -25807,10 +25773,10 @@ var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
|
25807
25773
|
}
|
|
25808
25774
|
return _this8;
|
|
25809
25775
|
}
|
|
25776
|
+
_inherits(NumContentItem, _ContentItem8);
|
|
25810
25777
|
return _createClass(NumContentItem);
|
|
25811
25778
|
}(ContentItem);
|
|
25812
25779
|
var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
25813
|
-
_inherits(ContainerContentItem, _ContentItem9);
|
|
25814
25780
|
function ContainerContentItem(options) {
|
|
25815
25781
|
var _this9;
|
|
25816
25782
|
_classCallCheck(this, ContainerContentItem);
|
|
@@ -25835,10 +25801,10 @@ var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
|
25835
25801
|
}
|
|
25836
25802
|
return _this9;
|
|
25837
25803
|
}
|
|
25804
|
+
_inherits(ContainerContentItem, _ContentItem9);
|
|
25838
25805
|
return _createClass(ContainerContentItem);
|
|
25839
25806
|
}(ContentItem);
|
|
25840
25807
|
var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
25841
|
-
_inherits(CompositeContentItem, _ContentItem0);
|
|
25842
25808
|
function CompositeContentItem(options) {
|
|
25843
25809
|
var _this0;
|
|
25844
25810
|
_classCallCheck(this, CompositeContentItem);
|
|
@@ -25865,10 +25831,10 @@ var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
|
25865
25831
|
_this0.ReferenceSOPSequence = [item];
|
|
25866
25832
|
return _this0;
|
|
25867
25833
|
}
|
|
25834
|
+
_inherits(CompositeContentItem, _ContentItem0);
|
|
25868
25835
|
return _createClass(CompositeContentItem);
|
|
25869
25836
|
}(ContentItem);
|
|
25870
25837
|
var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
25871
|
-
_inherits(ImageContentItem, _ContentItem1);
|
|
25872
25838
|
function ImageContentItem(options) {
|
|
25873
25839
|
var _this1;
|
|
25874
25840
|
_classCallCheck(this, ImageContentItem);
|
|
@@ -25909,10 +25875,10 @@ var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
|
25909
25875
|
_this1.ReferencedSOPSequence = [item];
|
|
25910
25876
|
return _this1;
|
|
25911
25877
|
}
|
|
25878
|
+
_inherits(ImageContentItem, _ContentItem1);
|
|
25912
25879
|
return _createClass(ImageContentItem);
|
|
25913
25880
|
}(ContentItem);
|
|
25914
25881
|
var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
25915
|
-
_inherits(ScoordContentItem, _ContentItem10);
|
|
25916
25882
|
function ScoordContentItem(options) {
|
|
25917
25883
|
var _this10;
|
|
25918
25884
|
_classCallCheck(this, ScoordContentItem);
|
|
@@ -25956,10 +25922,10 @@ var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
|
25956
25922
|
}
|
|
25957
25923
|
return _this10;
|
|
25958
25924
|
}
|
|
25925
|
+
_inherits(ScoordContentItem, _ContentItem10);
|
|
25959
25926
|
return _createClass(ScoordContentItem);
|
|
25960
25927
|
}(ContentItem);
|
|
25961
25928
|
var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
25962
|
-
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
25963
25929
|
function Scoord3DContentItem(options) {
|
|
25964
25930
|
var _this11;
|
|
25965
25931
|
_classCallCheck(this, Scoord3DContentItem);
|
|
@@ -26003,10 +25969,10 @@ var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
|
26003
25969
|
}
|
|
26004
25970
|
return _this11;
|
|
26005
25971
|
}
|
|
25972
|
+
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
26006
25973
|
return _createClass(Scoord3DContentItem);
|
|
26007
25974
|
}(ContentItem);
|
|
26008
25975
|
var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
26009
|
-
_inherits(TcoordContentItem, _ContentItem12);
|
|
26010
25976
|
function TcoordContentItem(options) {
|
|
26011
25977
|
var _this12;
|
|
26012
25978
|
_classCallCheck(this, TcoordContentItem);
|
|
@@ -26043,6 +26009,7 @@ var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
|
26043
26009
|
}
|
|
26044
26010
|
return _this12;
|
|
26045
26011
|
}
|
|
26012
|
+
_inherits(TcoordContentItem, _ContentItem12);
|
|
26046
26013
|
return _createClass(TcoordContentItem);
|
|
26047
26014
|
}(ContentItem);
|
|
26048
26015
|
|
|
@@ -26072,7 +26039,6 @@ var valueTypes = /*#__PURE__*/Object.freeze({
|
|
|
26072
26039
|
});
|
|
26073
26040
|
|
|
26074
26041
|
var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
|
|
26075
|
-
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26076
26042
|
function LongitudinalTemporalOffsetFromEvent(options) {
|
|
26077
26043
|
var _this;
|
|
26078
26044
|
_classCallCheck(this, LongitudinalTemporalOffsetFromEvent);
|
|
@@ -26099,10 +26065,10 @@ var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem
|
|
|
26099
26065
|
_this.ContentSequence.push(item);
|
|
26100
26066
|
return _this;
|
|
26101
26067
|
}
|
|
26068
|
+
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26102
26069
|
return _createClass(LongitudinalTemporalOffsetFromEvent);
|
|
26103
26070
|
}(NumContentItem);
|
|
26104
26071
|
var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
26105
|
-
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26106
26072
|
function SourceImageForRegion(options) {
|
|
26107
26073
|
_classCallCheck(this, SourceImageForRegion);
|
|
26108
26074
|
return _callSuper(this, SourceImageForRegion, [{
|
|
@@ -26117,10 +26083,10 @@ var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
|
26117
26083
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26118
26084
|
}]);
|
|
26119
26085
|
}
|
|
26086
|
+
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26120
26087
|
return _createClass(SourceImageForRegion);
|
|
26121
26088
|
}(ImageContentItem);
|
|
26122
26089
|
var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
26123
|
-
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26124
26090
|
function SourceImageForSegmentation(options) {
|
|
26125
26091
|
_classCallCheck(this, SourceImageForSegmentation);
|
|
26126
26092
|
return _callSuper(this, SourceImageForSegmentation, [{
|
|
@@ -26135,10 +26101,10 @@ var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
|
26135
26101
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26136
26102
|
}]);
|
|
26137
26103
|
}
|
|
26104
|
+
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26138
26105
|
return _createClass(SourceImageForSegmentation);
|
|
26139
26106
|
}(ImageContentItem);
|
|
26140
26107
|
var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
26141
|
-
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26142
26108
|
function SourceSeriesForSegmentation(options) {
|
|
26143
26109
|
_classCallCheck(this, SourceSeriesForSegmentation);
|
|
26144
26110
|
return _callSuper(this, SourceSeriesForSegmentation, [{
|
|
@@ -26151,10 +26117,10 @@ var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
|
26151
26117
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26152
26118
|
}]);
|
|
26153
26119
|
}
|
|
26120
|
+
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26154
26121
|
return _createClass(SourceSeriesForSegmentation);
|
|
26155
26122
|
}(UIDRefContentItem);
|
|
26156
26123
|
var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
26157
|
-
_inherits(ImageRegion, _ScoordContentItem);
|
|
26158
26124
|
function ImageRegion(options) {
|
|
26159
26125
|
var _this2;
|
|
26160
26126
|
_classCallCheck(this, ImageRegion);
|
|
@@ -26182,10 +26148,10 @@ var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
|
26182
26148
|
_this2.ContentSequence.push(options.sourceImage);
|
|
26183
26149
|
return _this2;
|
|
26184
26150
|
}
|
|
26151
|
+
_inherits(ImageRegion, _ScoordContentItem);
|
|
26185
26152
|
return _createClass(ImageRegion);
|
|
26186
26153
|
}(ScoordContentItem);
|
|
26187
26154
|
var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
26188
|
-
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26189
26155
|
function ImageRegion3D(options) {
|
|
26190
26156
|
var _this3;
|
|
26191
26157
|
_classCallCheck(this, ImageRegion3D);
|
|
@@ -26208,10 +26174,10 @@ var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
|
26208
26174
|
}
|
|
26209
26175
|
return _this3;
|
|
26210
26176
|
}
|
|
26177
|
+
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26211
26178
|
return _createClass(ImageRegion3D);
|
|
26212
26179
|
}(Scoord3DContentItem);
|
|
26213
26180
|
var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
26214
|
-
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26215
26181
|
function VolumeSurface(options) {
|
|
26216
26182
|
var _this4;
|
|
26217
26183
|
_classCallCheck(this, VolumeSurface);
|
|
@@ -26247,10 +26213,10 @@ var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
|
26247
26213
|
}
|
|
26248
26214
|
return _this4;
|
|
26249
26215
|
}
|
|
26216
|
+
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26250
26217
|
return _createClass(VolumeSurface);
|
|
26251
26218
|
}(Scoord3DContentItem);
|
|
26252
26219
|
var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem) {
|
|
26253
|
-
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26254
26220
|
function ReferencedRealWorldValueMap(options) {
|
|
26255
26221
|
_classCallCheck(this, ReferencedRealWorldValueMap);
|
|
26256
26222
|
return _callSuper(this, ReferencedRealWorldValueMap, [{
|
|
@@ -26264,10 +26230,10 @@ var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem)
|
|
|
26264
26230
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26265
26231
|
}]);
|
|
26266
26232
|
}
|
|
26233
|
+
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26267
26234
|
return _createClass(ReferencedRealWorldValueMap);
|
|
26268
26235
|
}(CompositeContentItem);
|
|
26269
26236
|
var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
26270
|
-
_inherits(FindingSite, _CodeContentItem);
|
|
26271
26237
|
function FindingSite(options) {
|
|
26272
26238
|
var _this5;
|
|
26273
26239
|
_classCallCheck(this, FindingSite);
|
|
@@ -26307,10 +26273,10 @@ var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
|
26307
26273
|
}
|
|
26308
26274
|
return _this5;
|
|
26309
26275
|
}
|
|
26276
|
+
_inherits(FindingSite, _CodeContentItem);
|
|
26310
26277
|
return _createClass(FindingSite);
|
|
26311
26278
|
}(CodeContentItem);
|
|
26312
26279
|
var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
26313
|
-
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26314
26280
|
function ReferencedSegmentationFrame(options) {
|
|
26315
26281
|
var _this6;
|
|
26316
26282
|
_classCallCheck(this, ReferencedSegmentationFrame);
|
|
@@ -26348,10 +26314,10 @@ var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
|
26348
26314
|
_this6.push(options.sourceImage);
|
|
26349
26315
|
return _this6;
|
|
26350
26316
|
}
|
|
26317
|
+
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26351
26318
|
return _createClass(ReferencedSegmentationFrame);
|
|
26352
26319
|
}(ContentSequence);
|
|
26353
26320
|
var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
26354
|
-
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26355
26321
|
function ReferencedSegmentation(options) {
|
|
26356
26322
|
var _this7;
|
|
26357
26323
|
_classCallCheck(this, ReferencedSegmentation);
|
|
@@ -26397,6 +26363,7 @@ var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
|
26397
26363
|
}
|
|
26398
26364
|
return _this7;
|
|
26399
26365
|
}
|
|
26366
|
+
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26400
26367
|
return _createClass(ReferencedSegmentation);
|
|
26401
26368
|
}(ContentSequence);
|
|
26402
26369
|
|
|
@@ -26416,7 +26383,6 @@ var contentItems = /*#__PURE__*/Object.freeze({
|
|
|
26416
26383
|
});
|
|
26417
26384
|
|
|
26418
26385
|
var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
26419
|
-
_inherits(Template, _ContentSequence);
|
|
26420
26386
|
function Template() {
|
|
26421
26387
|
_classCallCheck(this, Template);
|
|
26422
26388
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -26424,10 +26390,10 @@ var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
|
26424
26390
|
}
|
|
26425
26391
|
return _callSuper(this, Template, [].concat(args));
|
|
26426
26392
|
}
|
|
26393
|
+
_inherits(Template, _ContentSequence);
|
|
26427
26394
|
return _createClass(Template);
|
|
26428
26395
|
}(ContentSequence);
|
|
26429
26396
|
var Measurement = /*#__PURE__*/function (_Template) {
|
|
26430
|
-
_inherits(Measurement, _Template);
|
|
26431
26397
|
function Measurement(options) {
|
|
26432
26398
|
var _valueItem$ContentSeq;
|
|
26433
26399
|
var _this;
|
|
@@ -26527,10 +26493,10 @@ var Measurement = /*#__PURE__*/function (_Template) {
|
|
|
26527
26493
|
_this.push(valueItem);
|
|
26528
26494
|
return _this;
|
|
26529
26495
|
}
|
|
26496
|
+
_inherits(Measurement, _Template);
|
|
26530
26497
|
return _createClass(Measurement);
|
|
26531
26498
|
}(Template);
|
|
26532
26499
|
var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
26533
|
-
_inherits(MeasurementProperties, _Template2);
|
|
26534
26500
|
function MeasurementProperties(options) {
|
|
26535
26501
|
var _this2;
|
|
26536
26502
|
_classCallCheck(this, MeasurementProperties);
|
|
@@ -26611,10 +26577,10 @@ var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
|
26611
26577
|
}
|
|
26612
26578
|
return _this2;
|
|
26613
26579
|
}
|
|
26580
|
+
_inherits(MeasurementProperties, _Template2);
|
|
26614
26581
|
return _createClass(MeasurementProperties);
|
|
26615
26582
|
}(Template);
|
|
26616
26583
|
var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
26617
|
-
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26618
26584
|
function MeasurementStatisticalProperties(options) {
|
|
26619
26585
|
var _this5;
|
|
26620
26586
|
_classCallCheck(this, MeasurementStatisticalProperties);
|
|
@@ -26657,10 +26623,10 @@ var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
|
26657
26623
|
}
|
|
26658
26624
|
return _this5;
|
|
26659
26625
|
}
|
|
26626
|
+
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26660
26627
|
return _createClass(MeasurementStatisticalProperties);
|
|
26661
26628
|
}(Template);
|
|
26662
26629
|
var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
26663
|
-
_inherits(NormalRangeProperties, _Template4);
|
|
26664
26630
|
function NormalRangeProperties(options) {
|
|
26665
26631
|
var _this6;
|
|
26666
26632
|
_classCallCheck(this, NormalRangeProperties);
|
|
@@ -26703,10 +26669,10 @@ var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
|
26703
26669
|
}
|
|
26704
26670
|
return _this6;
|
|
26705
26671
|
}
|
|
26672
|
+
_inherits(NormalRangeProperties, _Template4);
|
|
26706
26673
|
return _createClass(NormalRangeProperties);
|
|
26707
26674
|
}(Template);
|
|
26708
26675
|
var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
26709
|
-
_inherits(ObservationContext, _Template5);
|
|
26710
26676
|
function ObservationContext(options) {
|
|
26711
26677
|
var _this8;
|
|
26712
26678
|
var _this7;
|
|
@@ -26735,10 +26701,10 @@ var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
|
26735
26701
|
}
|
|
26736
26702
|
return _this7;
|
|
26737
26703
|
}
|
|
26704
|
+
_inherits(ObservationContext, _Template5);
|
|
26738
26705
|
return _createClass(ObservationContext);
|
|
26739
26706
|
}(Template);
|
|
26740
26707
|
var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
26741
|
-
_inherits(ObserverContext, _Template6);
|
|
26742
26708
|
function ObserverContext(options) {
|
|
26743
26709
|
var _this10;
|
|
26744
26710
|
var _this1;
|
|
@@ -26789,10 +26755,10 @@ var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
|
26789
26755
|
(_this10 = _this1).push.apply(_this10, _toConsumableArray(options.observerIdentifyingAttributes));
|
|
26790
26756
|
return _this1;
|
|
26791
26757
|
}
|
|
26758
|
+
_inherits(ObserverContext, _Template6);
|
|
26792
26759
|
return _createClass(ObserverContext);
|
|
26793
26760
|
}(Template);
|
|
26794
26761
|
var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
26795
|
-
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26796
26762
|
function PersonObserverIdentifyingAttributes(options) {
|
|
26797
26763
|
var _this11;
|
|
26798
26764
|
_classCallCheck(this, PersonObserverIdentifyingAttributes);
|
|
@@ -26860,10 +26826,10 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
|
26860
26826
|
}
|
|
26861
26827
|
return _this11;
|
|
26862
26828
|
}
|
|
26829
|
+
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26863
26830
|
return _createClass(PersonObserverIdentifyingAttributes);
|
|
26864
26831
|
}(Template);
|
|
26865
26832
|
var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
26866
|
-
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26867
26833
|
function DeviceObserverIdentifyingAttributes(options) {
|
|
26868
26834
|
var _this12;
|
|
26869
26835
|
_classCallCheck(this, DeviceObserverIdentifyingAttributes);
|
|
@@ -26943,10 +26909,10 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
|
26943
26909
|
}
|
|
26944
26910
|
return _this12;
|
|
26945
26911
|
}
|
|
26912
|
+
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26946
26913
|
return _createClass(DeviceObserverIdentifyingAttributes);
|
|
26947
26914
|
}(Template);
|
|
26948
26915
|
var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
26949
|
-
_inherits(SubjectContext, _Template9);
|
|
26950
26916
|
function SubjectContext(options) {
|
|
26951
26917
|
var _this14;
|
|
26952
26918
|
var _this13;
|
|
@@ -27001,10 +26967,10 @@ var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
|
27001
26967
|
(_this14 = _this13).push.apply(_this14, _toConsumableArray(options.subjectClassSpecificContext));
|
|
27002
26968
|
return _this13;
|
|
27003
26969
|
}
|
|
26970
|
+
_inherits(SubjectContext, _Template9);
|
|
27004
26971
|
return _createClass(SubjectContext);
|
|
27005
26972
|
}(Template);
|
|
27006
26973
|
var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
27007
|
-
_inherits(SubjectContextFetus, _Template0);
|
|
27008
26974
|
function SubjectContextFetus(options) {
|
|
27009
26975
|
var _this15;
|
|
27010
26976
|
_classCallCheck(this, SubjectContextFetus);
|
|
@@ -27024,10 +26990,10 @@ var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
|
27024
26990
|
_this15.push(subjectIdItem);
|
|
27025
26991
|
return _this15;
|
|
27026
26992
|
}
|
|
26993
|
+
_inherits(SubjectContextFetus, _Template0);
|
|
27027
26994
|
return _createClass(SubjectContextFetus);
|
|
27028
26995
|
}(Template);
|
|
27029
26996
|
var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
27030
|
-
_inherits(SubjectContextSpecimen, _Template1);
|
|
27031
26997
|
function SubjectContextSpecimen(options) {
|
|
27032
26998
|
var _this16;
|
|
27033
26999
|
_classCallCheck(this, SubjectContextSpecimen);
|
|
@@ -27083,10 +27049,10 @@ var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
|
27083
27049
|
}
|
|
27084
27050
|
return _this16;
|
|
27085
27051
|
}
|
|
27052
|
+
_inherits(SubjectContextSpecimen, _Template1);
|
|
27086
27053
|
return _createClass(SubjectContextSpecimen);
|
|
27087
27054
|
}(Template);
|
|
27088
27055
|
var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
27089
|
-
_inherits(SubjectContextDevice, _Template10);
|
|
27090
27056
|
function SubjectContextDevice(options) {
|
|
27091
27057
|
var _this17;
|
|
27092
27058
|
_classCallCheck(this, SubjectContextDevice);
|
|
@@ -27166,10 +27132,10 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
|
27166
27132
|
}
|
|
27167
27133
|
return _this17;
|
|
27168
27134
|
}
|
|
27135
|
+
_inherits(SubjectContextDevice, _Template10);
|
|
27169
27136
|
return _createClass(SubjectContextDevice);
|
|
27170
27137
|
}(Template);
|
|
27171
27138
|
var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
27172
|
-
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27173
27139
|
function LanguageOfContentItemAndDescendants(options) {
|
|
27174
27140
|
var _this18;
|
|
27175
27141
|
_classCallCheck(this, LanguageOfContentItemAndDescendants);
|
|
@@ -27193,10 +27159,10 @@ var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
|
27193
27159
|
_this18.push(languageItem);
|
|
27194
27160
|
return _this18;
|
|
27195
27161
|
}
|
|
27162
|
+
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27196
27163
|
return _createClass(LanguageOfContentItemAndDescendants);
|
|
27197
27164
|
}(Template);
|
|
27198
27165
|
var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
|
|
27199
|
-
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27200
27166
|
function _MeasurementsAndQualitatitiveEvaluations(options) {
|
|
27201
27167
|
var _groupItem$ContentSeq;
|
|
27202
27168
|
var _this19;
|
|
@@ -27286,10 +27252,10 @@ var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template1
|
|
|
27286
27252
|
_this19.push(groupItem);
|
|
27287
27253
|
return _this19;
|
|
27288
27254
|
}
|
|
27255
|
+
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27289
27256
|
return _createClass(_MeasurementsAndQualitatitiveEvaluations);
|
|
27290
27257
|
}(Template);
|
|
27291
27258
|
var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_MeasurementsAndQuali) {
|
|
27292
|
-
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27293
27259
|
function _ROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27294
27260
|
var _this20;
|
|
27295
27261
|
_classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
|
|
@@ -27338,10 +27304,10 @@ var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_Measurem
|
|
|
27338
27304
|
_this20[0] = groupItem;
|
|
27339
27305
|
return _this20;
|
|
27340
27306
|
}
|
|
27307
|
+
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27341
27308
|
return _createClass(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27342
27309
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27343
27310
|
var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu) {
|
|
27344
|
-
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27345
27311
|
function PlanarROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27346
27312
|
_classCallCheck(this, PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27347
27313
|
var wereReferencesProvided = [options.referencedRegion !== undefined, options.referencedSegmentation !== undefined];
|
|
@@ -27365,10 +27331,10 @@ var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROI
|
|
|
27365
27331
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27366
27332
|
}]);
|
|
27367
27333
|
}
|
|
27334
|
+
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27368
27335
|
return _createClass(PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27369
27336
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27370
27337
|
var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu2) {
|
|
27371
|
-
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27372
27338
|
function VolumetricROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27373
27339
|
_classCallCheck(this, VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27374
27340
|
return _callSuper(this, VolumetricROIMeasurementsAndQualitativeEvaluations, [{
|
|
@@ -27383,10 +27349,10 @@ var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (
|
|
|
27383
27349
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27384
27350
|
}]);
|
|
27385
27351
|
}
|
|
27352
|
+
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27386
27353
|
return _createClass(VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27387
27354
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27388
27355
|
var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
|
|
27389
|
-
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27390
27356
|
function MeasurementsDerivedFromMultipleROIMeasurements(options) {
|
|
27391
27357
|
var _this21;
|
|
27392
27358
|
_classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
|
|
@@ -27423,10 +27389,10 @@ var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Tem
|
|
|
27423
27389
|
_this21.push(valueItem);
|
|
27424
27390
|
return _this21;
|
|
27425
27391
|
}
|
|
27392
|
+
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27426
27393
|
return _createClass(MeasurementsDerivedFromMultipleROIMeasurements);
|
|
27427
27394
|
}(Template);
|
|
27428
27395
|
var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_MeasurementsAndQuali2) {
|
|
27429
|
-
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27430
27396
|
function MeasurementAndQualitativeEvaluationGroup(options) {
|
|
27431
27397
|
_classCallCheck(this, MeasurementAndQualitativeEvaluationGroup);
|
|
27432
27398
|
return _callSuper(this, MeasurementAndQualitativeEvaluationGroup, [{
|
|
@@ -27439,10 +27405,10 @@ var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_Measureme
|
|
|
27439
27405
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27440
27406
|
}]);
|
|
27441
27407
|
}
|
|
27408
|
+
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27442
27409
|
return _createClass(MeasurementAndQualitativeEvaluationGroup);
|
|
27443
27410
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27444
27411
|
var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
27445
|
-
_inherits(ROIMeasurements, _Template14);
|
|
27446
27412
|
function ROIMeasurements(options) {
|
|
27447
27413
|
var _this22;
|
|
27448
27414
|
_classCallCheck(this, ROIMeasurements);
|
|
@@ -27487,10 +27453,10 @@ var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
|
27487
27453
|
});
|
|
27488
27454
|
return _this22;
|
|
27489
27455
|
}
|
|
27456
|
+
_inherits(ROIMeasurements, _Template14);
|
|
27490
27457
|
return _createClass(ROIMeasurements);
|
|
27491
27458
|
}(Template);
|
|
27492
27459
|
var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
27493
|
-
_inherits(MeasurementReport, _Template15);
|
|
27494
27460
|
function MeasurementReport(options) {
|
|
27495
27461
|
var _item$ContentSequence, _item$ContentSequence2, _item$ContentSequence3;
|
|
27496
27462
|
var _this23;
|
|
@@ -27583,10 +27549,10 @@ var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
|
27583
27549
|
_this23.push(item);
|
|
27584
27550
|
return _this23;
|
|
27585
27551
|
}
|
|
27552
|
+
_inherits(MeasurementReport, _Template15);
|
|
27586
27553
|
return _createClass(MeasurementReport);
|
|
27587
27554
|
}(Template);
|
|
27588
27555
|
var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
27589
|
-
_inherits(TimePointContext, _Template16);
|
|
27590
27556
|
function TimePointContext(options) {
|
|
27591
27557
|
var _this24;
|
|
27592
27558
|
_classCallCheck(this, TimePointContext);
|
|
@@ -27667,10 +27633,10 @@ var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
|
27667
27633
|
}
|
|
27668
27634
|
return _this24;
|
|
27669
27635
|
}
|
|
27636
|
+
_inherits(TimePointContext, _Template16);
|
|
27670
27637
|
return _createClass(TimePointContext);
|
|
27671
27638
|
}(Template);
|
|
27672
27639
|
var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
27673
|
-
_inherits(ImageLibrary, _Template17);
|
|
27674
27640
|
function ImageLibrary() {
|
|
27675
27641
|
var _this25;
|
|
27676
27642
|
_classCallCheck(this, ImageLibrary);
|
|
@@ -27686,10 +27652,10 @@ var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
|
27686
27652
|
_this25.push(libraryItem);
|
|
27687
27653
|
return _this25;
|
|
27688
27654
|
}
|
|
27655
|
+
_inherits(ImageLibrary, _Template17);
|
|
27689
27656
|
return _createClass(ImageLibrary);
|
|
27690
27657
|
}(Template);
|
|
27691
27658
|
var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
27692
|
-
_inherits(AlgorithmIdentification, _Template18);
|
|
27693
27659
|
function AlgorithmIdentification(options) {
|
|
27694
27660
|
var _this26;
|
|
27695
27661
|
_classCallCheck(this, AlgorithmIdentification);
|
|
@@ -27739,10 +27705,10 @@ var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
|
27739
27705
|
}
|
|
27740
27706
|
return _this26;
|
|
27741
27707
|
}
|
|
27708
|
+
_inherits(AlgorithmIdentification, _Template18);
|
|
27742
27709
|
return _createClass(AlgorithmIdentification);
|
|
27743
27710
|
}(Template);
|
|
27744
27711
|
var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
27745
|
-
_inherits(TrackingIdentifier, _Template19);
|
|
27746
27712
|
function TrackingIdentifier(options) {
|
|
27747
27713
|
var _this27;
|
|
27748
27714
|
_classCallCheck(this, TrackingIdentifier);
|
|
@@ -27774,6 +27740,7 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
|
27774
27740
|
_this27.push(trackingUIDItem);
|
|
27775
27741
|
return _this27;
|
|
27776
27742
|
}
|
|
27743
|
+
_inherits(TrackingIdentifier, _Template19);
|
|
27777
27744
|
return _createClass(TrackingIdentifier);
|
|
27778
27745
|
}(Template);
|
|
27779
27746
|
|