dcmjs 0.50.2 → 0.51.0
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 +625 -660
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +625 -660
- 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,17 +14175,17 @@ 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 = 14;
|
|
14170
14189
|
break;
|
|
14171
14190
|
}
|
|
14172
14191
|
readLog.debug("read loop", stream.offset, untilOffset);
|
|
@@ -14176,74 +14195,74 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14176
14195
|
tagInfo = this.readTagHeader(options);
|
|
14177
14196
|
tag = tagInfo.tag, tagObj = tagInfo.tagObj, length = tagInfo.length;
|
|
14178
14197
|
if (!(tag === TagHex.ItemDelimitationEnd)) {
|
|
14179
|
-
_context5.next =
|
|
14198
|
+
_context5.next = 2;
|
|
14180
14199
|
break;
|
|
14181
14200
|
}
|
|
14182
14201
|
return _context5.abrupt("return", listener.pop());
|
|
14183
|
-
case
|
|
14202
|
+
case 2:
|
|
14184
14203
|
if (!tagObj.isInstruction()) {
|
|
14185
|
-
_context5.next =
|
|
14204
|
+
_context5.next = 3;
|
|
14186
14205
|
break;
|
|
14187
14206
|
}
|
|
14188
|
-
return _context5.abrupt("continue",
|
|
14189
|
-
case
|
|
14207
|
+
return _context5.abrupt("continue", 1);
|
|
14208
|
+
case 3:
|
|
14190
14209
|
if (!(tagObj.group() === 0 || tag === TagHex.DataSetTrailingPadding)) {
|
|
14191
|
-
_context5.next =
|
|
14210
|
+
_context5.next = 4;
|
|
14192
14211
|
break;
|
|
14193
14212
|
}
|
|
14194
14213
|
// Group length
|
|
14195
14214
|
stream.increment(tagObj.length);
|
|
14196
|
-
return _context5.abrupt("continue",
|
|
14197
|
-
case
|
|
14215
|
+
return _context5.abrupt("continue", 1);
|
|
14216
|
+
case 4:
|
|
14198
14217
|
addTagResult = listener.addTag(tag, tagInfo);
|
|
14199
14218
|
if (!this.isSequence(tagInfo)) {
|
|
14200
|
-
_context5.next =
|
|
14219
|
+
_context5.next = 6;
|
|
14201
14220
|
break;
|
|
14202
14221
|
}
|
|
14203
|
-
_context5.next =
|
|
14222
|
+
_context5.next = 5;
|
|
14204
14223
|
return this.readSequence(listener, tagInfo, options);
|
|
14205
|
-
case
|
|
14206
|
-
_context5.next =
|
|
14224
|
+
case 5:
|
|
14225
|
+
_context5.next = 12;
|
|
14207
14226
|
break;
|
|
14208
|
-
case
|
|
14227
|
+
case 6:
|
|
14209
14228
|
if (!tagObj.isPixelDataTag()) {
|
|
14210
|
-
_context5.next =
|
|
14229
|
+
_context5.next = 8;
|
|
14211
14230
|
break;
|
|
14212
14231
|
}
|
|
14213
|
-
_context5.next =
|
|
14232
|
+
_context5.next = 7;
|
|
14214
14233
|
return this.readPixelData(tagInfo);
|
|
14215
|
-
case
|
|
14216
|
-
_context5.next =
|
|
14234
|
+
case 7:
|
|
14235
|
+
_context5.next = 12;
|
|
14217
14236
|
break;
|
|
14218
|
-
case
|
|
14237
|
+
case 8:
|
|
14219
14238
|
if (!(length === UNDEFINED_LENGTH_FIX)) {
|
|
14220
|
-
_context5.next =
|
|
14239
|
+
_context5.next = 9;
|
|
14221
14240
|
break;
|
|
14222
14241
|
}
|
|
14223
14242
|
throw new Error("Can't handle tag ".concat(tagInfo.tag, " with -1 length and not sequence"));
|
|
14224
|
-
case
|
|
14243
|
+
case 9:
|
|
14225
14244
|
if (!((addTagResult === null || addTagResult === void 0 ? void 0 : addTagResult.expectsRaw) === true && length > 0)) {
|
|
14226
|
-
_context5.next =
|
|
14245
|
+
_context5.next = 11;
|
|
14227
14246
|
break;
|
|
14228
14247
|
}
|
|
14229
|
-
_context5.next =
|
|
14248
|
+
_context5.next = 10;
|
|
14230
14249
|
return this.readRawBinary(tagInfo);
|
|
14231
|
-
case
|
|
14232
|
-
_context5.next =
|
|
14250
|
+
case 10:
|
|
14251
|
+
_context5.next = 12;
|
|
14233
14252
|
break;
|
|
14234
|
-
case
|
|
14235
|
-
_context5.next =
|
|
14253
|
+
case 11:
|
|
14254
|
+
_context5.next = 12;
|
|
14236
14255
|
return this.readSingle(tagInfo, listener, options);
|
|
14237
|
-
case
|
|
14256
|
+
case 12:
|
|
14238
14257
|
listener.pop();
|
|
14239
|
-
_context5.next =
|
|
14258
|
+
_context5.next = 13;
|
|
14240
14259
|
return this.stream.ensureAvailable();
|
|
14241
|
-
case
|
|
14242
|
-
_context5.next =
|
|
14260
|
+
case 13:
|
|
14261
|
+
_context5.next = 1;
|
|
14243
14262
|
break;
|
|
14244
|
-
case
|
|
14263
|
+
case 14:
|
|
14245
14264
|
return _context5.abrupt("return", listener.pop());
|
|
14246
|
-
case
|
|
14265
|
+
case 15:
|
|
14247
14266
|
case "end":
|
|
14248
14267
|
return _context5.stop();
|
|
14249
14268
|
}
|
|
@@ -14258,33 +14277,33 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14258
14277
|
key: "readSequence",
|
|
14259
14278
|
value: function () {
|
|
14260
14279
|
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
|
|
14280
|
+
var length, stream, syntax, endOffset, tagInfo, tag, itemLength, itemUntilOffset, _t;
|
|
14281
|
+
return _regeneratorRuntime().wrap(function (_context6) {
|
|
14263
14282
|
while (1) switch (_context6.prev = _context6.next) {
|
|
14264
14283
|
case 0:
|
|
14265
14284
|
length = sqTagInfo.length;
|
|
14266
14285
|
stream = this.stream, syntax = this.syntax;
|
|
14267
14286
|
endOffset = length === UNDEFINED_LENGTH_FIX ? Number.MAX_SAFE_INTEGER : stream.offset + length;
|
|
14268
|
-
case
|
|
14269
|
-
|
|
14270
|
-
if (!
|
|
14271
|
-
_context6.next =
|
|
14287
|
+
case 1:
|
|
14288
|
+
_t = stream.offset < endOffset;
|
|
14289
|
+
if (!_t) {
|
|
14290
|
+
_context6.next = 3;
|
|
14272
14291
|
break;
|
|
14273
14292
|
}
|
|
14274
|
-
_context6.next =
|
|
14293
|
+
_context6.next = 2;
|
|
14275
14294
|
return stream.ensureAvailable();
|
|
14276
|
-
case
|
|
14277
|
-
|
|
14278
|
-
case
|
|
14279
|
-
if (!
|
|
14280
|
-
_context6.next =
|
|
14295
|
+
case 2:
|
|
14296
|
+
_t = _context6.sent;
|
|
14297
|
+
case 3:
|
|
14298
|
+
if (!_t) {
|
|
14299
|
+
_context6.next = 8;
|
|
14281
14300
|
break;
|
|
14282
14301
|
}
|
|
14283
14302
|
readLog.debug("readSequence loop", stream.offset, endOffset);
|
|
14284
14303
|
tagInfo = this.readTagHeader(syntax, options);
|
|
14285
14304
|
tag = tagInfo.tag;
|
|
14286
14305
|
if (!(tag === TagHex.Item)) {
|
|
14287
|
-
_context6.next =
|
|
14306
|
+
_context6.next = 5;
|
|
14288
14307
|
break;
|
|
14289
14308
|
}
|
|
14290
14309
|
listener.startObject();
|
|
@@ -14296,26 +14315,26 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14296
14315
|
// as instructions and skips them.
|
|
14297
14316
|
itemLength = tagInfo.length;
|
|
14298
14317
|
itemUntilOffset = itemLength === UNDEFINED_LENGTH_FIX ? endOffset : Math.min(stream.offset + itemLength, endOffset);
|
|
14299
|
-
_context6.next =
|
|
14318
|
+
_context6.next = 4;
|
|
14300
14319
|
return this.read(listener, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
14301
14320
|
untilOffset: itemUntilOffset
|
|
14302
14321
|
}));
|
|
14303
|
-
case
|
|
14304
|
-
_context6.next =
|
|
14322
|
+
case 4:
|
|
14323
|
+
_context6.next = 7;
|
|
14305
14324
|
break;
|
|
14306
|
-
case
|
|
14325
|
+
case 5:
|
|
14307
14326
|
if (!(tag === TagHex.SequenceDelimitationEnd)) {
|
|
14308
|
-
_context6.next =
|
|
14327
|
+
_context6.next = 6;
|
|
14309
14328
|
break;
|
|
14310
14329
|
}
|
|
14311
14330
|
return _context6.abrupt("return");
|
|
14312
|
-
case
|
|
14331
|
+
case 6:
|
|
14313
14332
|
console.warn("Unknown tag info", length, tagInfo);
|
|
14314
14333
|
throw new Error();
|
|
14315
|
-
case
|
|
14316
|
-
_context6.next =
|
|
14334
|
+
case 7:
|
|
14335
|
+
_context6.next = 1;
|
|
14317
14336
|
break;
|
|
14318
|
-
case
|
|
14337
|
+
case 8:
|
|
14319
14338
|
case "end":
|
|
14320
14339
|
return _context6.stop();
|
|
14321
14340
|
}
|
|
@@ -14345,38 +14364,38 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14345
14364
|
var _emitSplitValues2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(length) {
|
|
14346
14365
|
var _listener$awaitDrain;
|
|
14347
14366
|
var stream, listener, maxFragmentSize, offset, chunkSize, buffer;
|
|
14348
|
-
return _regeneratorRuntime().wrap(function
|
|
14367
|
+
return _regeneratorRuntime().wrap(function (_context7) {
|
|
14349
14368
|
while (1) switch (_context7.prev = _context7.next) {
|
|
14350
14369
|
case 0:
|
|
14351
14370
|
stream = this.stream, listener = this.listener;
|
|
14352
|
-
_context7.next =
|
|
14371
|
+
_context7.next = 1;
|
|
14353
14372
|
return (_listener$awaitDrain = listener.awaitDrain) === null || _listener$awaitDrain === void 0 ? void 0 : _listener$awaitDrain.call(listener);
|
|
14354
|
-
case
|
|
14373
|
+
case 1:
|
|
14355
14374
|
maxFragmentSize = this.maxFragmentSize;
|
|
14356
14375
|
if (!(typeof maxFragmentSize !== "number" || maxFragmentSize <= 0)) {
|
|
14357
|
-
_context7.next =
|
|
14376
|
+
_context7.next = 2;
|
|
14358
14377
|
break;
|
|
14359
14378
|
}
|
|
14360
14379
|
throw new Error("maxFragmentSize must be a positive number, got ".concat(maxFragmentSize));
|
|
14361
|
-
case
|
|
14380
|
+
case 2:
|
|
14362
14381
|
offset = 0;
|
|
14363
|
-
case
|
|
14382
|
+
case 3:
|
|
14364
14383
|
if (!(offset < length)) {
|
|
14365
|
-
_context7.next =
|
|
14384
|
+
_context7.next = 5;
|
|
14366
14385
|
break;
|
|
14367
14386
|
}
|
|
14368
14387
|
readLog.trace("_emitSplitValues loop", offset, length);
|
|
14369
14388
|
chunkSize = Math.min(maxFragmentSize, length - offset);
|
|
14370
|
-
_context7.next =
|
|
14389
|
+
_context7.next = 4;
|
|
14371
14390
|
return stream.ensureAvailable(chunkSize);
|
|
14372
|
-
case
|
|
14391
|
+
case 4:
|
|
14373
14392
|
buffer = stream.readArrayBuffer(chunkSize);
|
|
14374
14393
|
listener.value(buffer);
|
|
14375
14394
|
offset += chunkSize;
|
|
14376
14395
|
stream.consume();
|
|
14377
|
-
_context7.next =
|
|
14396
|
+
_context7.next = 3;
|
|
14378
14397
|
break;
|
|
14379
|
-
case
|
|
14398
|
+
case 5:
|
|
14380
14399
|
case "end":
|
|
14381
14400
|
return _context7.stop();
|
|
14382
14401
|
}
|
|
@@ -14397,21 +14416,21 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14397
14416
|
var _readCompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_tagInfo) {
|
|
14398
14417
|
var _listener$information;
|
|
14399
14418
|
var stream, listener, transferSyntaxUid, isVideo, numberOfFrames, isSingleFrame, offsets, singleArray, startOffset, frameNumber, lastFrame, frameTag, length;
|
|
14400
|
-
return _regeneratorRuntime().wrap(function
|
|
14419
|
+
return _regeneratorRuntime().wrap(function (_context8) {
|
|
14401
14420
|
while (1) switch (_context8.prev = _context8.next) {
|
|
14402
14421
|
case 0:
|
|
14403
14422
|
stream = this.stream, listener = this.listener;
|
|
14404
14423
|
transferSyntaxUid = this.syntax;
|
|
14405
|
-
_context8.next =
|
|
14424
|
+
_context8.next = 1;
|
|
14406
14425
|
return stream.ensureAvailable();
|
|
14407
|
-
case
|
|
14426
|
+
case 1:
|
|
14408
14427
|
// Check if this is a video transfer syntax
|
|
14409
14428
|
isVideo = isVideoTransferSyntax(transferSyntaxUid); // Check number of frames - only use video logic for single frame (or undefined)
|
|
14410
14429
|
numberOfFrames = (_listener$information = listener.information) === null || _listener$information === void 0 ? void 0 : _listener$information.numberOfFrames;
|
|
14411
14430
|
isSingleFrame = !numberOfFrames || parseInt(numberOfFrames) <= 1;
|
|
14412
|
-
_context8.next =
|
|
14431
|
+
_context8.next = 2;
|
|
14413
14432
|
return this.readOffsets();
|
|
14414
|
-
case
|
|
14433
|
+
case 2:
|
|
14415
14434
|
offsets = _context8.sent;
|
|
14416
14435
|
singleArray = isVideo || isSingleFrame;
|
|
14417
14436
|
if (singleArray && !offsets) {
|
|
@@ -14424,15 +14443,15 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14424
14443
|
startOffset = stream.offset;
|
|
14425
14444
|
frameNumber = 0;
|
|
14426
14445
|
lastFrame = null;
|
|
14427
|
-
case
|
|
14446
|
+
case 3:
|
|
14428
14447
|
readLog.debug("readCompressed frame loop", frameNumber);
|
|
14429
14448
|
stream.consume();
|
|
14430
|
-
_context8.next =
|
|
14449
|
+
_context8.next = 4;
|
|
14431
14450
|
return stream.ensureAvailable();
|
|
14432
|
-
case
|
|
14451
|
+
case 4:
|
|
14433
14452
|
frameTag = this.readTagHeader();
|
|
14434
14453
|
if (!(frameTag.tag === TagHex.SequenceDelimitationEnd)) {
|
|
14435
|
-
_context8.next =
|
|
14454
|
+
_context8.next = 5;
|
|
14436
14455
|
break;
|
|
14437
14456
|
}
|
|
14438
14457
|
if (lastFrame) {
|
|
@@ -14440,29 +14459,29 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14440
14459
|
listener.pop();
|
|
14441
14460
|
}
|
|
14442
14461
|
return _context8.abrupt("return");
|
|
14443
|
-
case
|
|
14462
|
+
case 5:
|
|
14444
14463
|
if (!(frameTag.tag !== TagHex.Item)) {
|
|
14445
|
-
_context8.next =
|
|
14464
|
+
_context8.next = 6;
|
|
14446
14465
|
break;
|
|
14447
14466
|
}
|
|
14448
14467
|
throw new Error("frame tag isn't item: ".concat(frameTag.tag));
|
|
14449
|
-
case
|
|
14468
|
+
case 6:
|
|
14450
14469
|
length = frameTag.length;
|
|
14451
14470
|
if (!lastFrame) {
|
|
14452
14471
|
lastFrame = [];
|
|
14453
14472
|
listener.startObject(lastFrame);
|
|
14454
14473
|
}
|
|
14455
|
-
_context8.next =
|
|
14474
|
+
_context8.next = 7;
|
|
14456
14475
|
return this._emitSplitValues(length);
|
|
14457
|
-
case
|
|
14476
|
+
case 7:
|
|
14458
14477
|
if (!offsets || stream.offset >= offsets[frameNumber + 1] + startOffset) {
|
|
14459
14478
|
lastFrame = null;
|
|
14460
14479
|
listener.pop();
|
|
14461
14480
|
frameNumber++;
|
|
14462
14481
|
}
|
|
14463
|
-
_context8.next =
|
|
14482
|
+
_context8.next = 3;
|
|
14464
14483
|
break;
|
|
14465
|
-
case
|
|
14484
|
+
case 8:
|
|
14466
14485
|
case "end":
|
|
14467
14486
|
return _context8.stop();
|
|
14468
14487
|
}
|
|
@@ -14478,33 +14497,33 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14478
14497
|
value: function () {
|
|
14479
14498
|
var _readOffsets = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
14480
14499
|
var tagInfo, offsets, numOfFrames, i;
|
|
14481
|
-
return _regeneratorRuntime().wrap(function
|
|
14500
|
+
return _regeneratorRuntime().wrap(function (_context9) {
|
|
14482
14501
|
while (1) switch (_context9.prev = _context9.next) {
|
|
14483
14502
|
case 0:
|
|
14484
14503
|
tagInfo = this.readTagHeader();
|
|
14485
14504
|
if (!(tagInfo.tag !== TagHex.Item)) {
|
|
14486
|
-
_context9.next =
|
|
14505
|
+
_context9.next = 1;
|
|
14487
14506
|
break;
|
|
14488
14507
|
}
|
|
14489
14508
|
throw new Error("Offsets tag is missing: ".concat(tagInfo.tag));
|
|
14490
|
-
case
|
|
14509
|
+
case 1:
|
|
14491
14510
|
if (!(tagInfo.length === 0)) {
|
|
14492
|
-
_context9.next =
|
|
14511
|
+
_context9.next = 2;
|
|
14493
14512
|
break;
|
|
14494
14513
|
}
|
|
14495
14514
|
return _context9.abrupt("return");
|
|
14496
|
-
case
|
|
14515
|
+
case 2:
|
|
14497
14516
|
offsets = [];
|
|
14498
14517
|
numOfFrames = tagInfo.length / 4;
|
|
14499
|
-
_context9.next =
|
|
14518
|
+
_context9.next = 3;
|
|
14500
14519
|
return this.stream.ensureAvailable(tagInfo.length);
|
|
14501
|
-
case
|
|
14520
|
+
case 3:
|
|
14502
14521
|
for (i = 0; i < numOfFrames; i++) {
|
|
14503
14522
|
readLog.trace("readOffsets loop", i, numOfFrames);
|
|
14504
14523
|
offsets.push(this.stream.readUint32());
|
|
14505
14524
|
}
|
|
14506
14525
|
return _context9.abrupt("return", offsets);
|
|
14507
|
-
case
|
|
14526
|
+
case 4:
|
|
14508
14527
|
case "end":
|
|
14509
14528
|
return _context9.stop();
|
|
14510
14529
|
}
|
|
@@ -14524,7 +14543,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14524
14543
|
var _readUncompressed = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(tagInfo) {
|
|
14525
14544
|
var _listener$information2;
|
|
14526
14545
|
var length, listener, numberOfFrames, frameLength, _listener$information3, _listener$information4, _listener$information5, _listener$information6, rows, cols, samplesPerPixel, bitsAllocated, bitsPerFrame, frameNumber;
|
|
14527
|
-
return _regeneratorRuntime().wrap(function
|
|
14546
|
+
return _regeneratorRuntime().wrap(function (_context0) {
|
|
14528
14547
|
while (1) switch (_context0.prev = _context0.next) {
|
|
14529
14548
|
case 0:
|
|
14530
14549
|
length = tagInfo.length;
|
|
@@ -14532,7 +14551,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14532
14551
|
numberOfFrames = parseInt(((_listener$information2 = listener.information) === null || _listener$information2 === void 0 ? void 0 : _listener$information2.numberOfFrames) || 1);
|
|
14533
14552
|
frameLength = Math.floor(length / numberOfFrames);
|
|
14534
14553
|
if (!(numberOfFrames > 1)) {
|
|
14535
|
-
_context0.next =
|
|
14554
|
+
_context0.next = 4;
|
|
14536
14555
|
break;
|
|
14537
14556
|
}
|
|
14538
14557
|
rows = (_listener$information3 = listener.information) === null || _listener$information3 === void 0 ? void 0 : _listener$information3.rows;
|
|
@@ -14541,44 +14560,44 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14541
14560
|
bitsAllocated = (_listener$information6 = listener.information) === null || _listener$information6 === void 0 ? void 0 : _listener$information6.bitsAllocated;
|
|
14542
14561
|
bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
|
|
14543
14562
|
if (!(bitsPerFrame % 8 !== 0)) {
|
|
14544
|
-
_context0.next =
|
|
14563
|
+
_context0.next = 3;
|
|
14545
14564
|
break;
|
|
14546
14565
|
}
|
|
14547
14566
|
if (!(bitsAllocated === 1)) {
|
|
14548
|
-
_context0.next =
|
|
14567
|
+
_context0.next = 2;
|
|
14549
14568
|
break;
|
|
14550
14569
|
}
|
|
14551
|
-
_context0.next =
|
|
14570
|
+
_context0.next = 1;
|
|
14552
14571
|
return this.readUncompressedBitFrame(tagInfo);
|
|
14553
|
-
case
|
|
14572
|
+
case 1:
|
|
14554
14573
|
return _context0.abrupt("return", _context0.sent);
|
|
14555
|
-
case
|
|
14574
|
+
case 2:
|
|
14556
14575
|
throw new Error("Odd frame length must be single bit: ".concat(rows, ",").concat(cols, " ").concat(samplesPerPixel, " ").concat(bitsAllocated));
|
|
14557
|
-
case
|
|
14576
|
+
case 3:
|
|
14558
14577
|
if (!(length % numberOfFrames !== 0)) {
|
|
14559
|
-
_context0.next =
|
|
14578
|
+
_context0.next = 4;
|
|
14560
14579
|
break;
|
|
14561
14580
|
}
|
|
14562
14581
|
throw new Error("Invalid frame length: ".concat(length, " for ").concat(numberOfFrames, " frames"));
|
|
14563
|
-
case
|
|
14582
|
+
case 4:
|
|
14564
14583
|
frameNumber = 0;
|
|
14565
|
-
case
|
|
14584
|
+
case 5:
|
|
14566
14585
|
if (!(frameNumber < numberOfFrames)) {
|
|
14567
|
-
_context0.next =
|
|
14586
|
+
_context0.next = 8;
|
|
14568
14587
|
break;
|
|
14569
14588
|
}
|
|
14570
14589
|
readLog.trace("readUncompressed loop", frameNumber, numberOfFrames);
|
|
14571
14590
|
listener.startObject([]);
|
|
14572
|
-
_context0.next =
|
|
14591
|
+
_context0.next = 6;
|
|
14573
14592
|
return this._emitSplitValues(frameLength);
|
|
14574
|
-
case
|
|
14593
|
+
case 6:
|
|
14575
14594
|
listener.pop();
|
|
14576
14595
|
// console.log(stream.getBufferMemoryInfo());
|
|
14577
|
-
case
|
|
14596
|
+
case 7:
|
|
14578
14597
|
frameNumber++;
|
|
14579
|
-
_context0.next =
|
|
14598
|
+
_context0.next = 5;
|
|
14580
14599
|
break;
|
|
14581
|
-
case
|
|
14600
|
+
case 8:
|
|
14582
14601
|
case "end":
|
|
14583
14602
|
return _context0.stop();
|
|
14584
14603
|
}
|
|
@@ -14609,7 +14628,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14609
14628
|
var _readUncompressedBitFrame = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(tagInfo) {
|
|
14610
14629
|
var _listener$information7, _listener$information8, _listener$information9, _listener$information0, _listener$information1;
|
|
14611
14630
|
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
|
|
14631
|
+
return _regeneratorRuntime().wrap(function (_context1) {
|
|
14613
14632
|
while (1) switch (_context1.prev = _context1.next) {
|
|
14614
14633
|
case 0:
|
|
14615
14634
|
length = tagInfo.length;
|
|
@@ -14620,30 +14639,30 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14620
14639
|
samplesPerPixel = ((_listener$information0 = listener.information) === null || _listener$information0 === void 0 ? void 0 : _listener$information0.samplesPerPixel) || 1;
|
|
14621
14640
|
bitsAllocated = (_listener$information1 = listener.information) === null || _listener$information1 === void 0 ? void 0 : _listener$information1.bitsAllocated;
|
|
14622
14641
|
if (!(!rows || !cols || !bitsAllocated)) {
|
|
14623
|
-
_context1.next =
|
|
14642
|
+
_context1.next = 1;
|
|
14624
14643
|
break;
|
|
14625
14644
|
}
|
|
14626
14645
|
throw new Error("Missing required pixel data information: rows, columns, or bitsAllocated");
|
|
14627
|
-
case
|
|
14646
|
+
case 1:
|
|
14628
14647
|
if (!(bitsAllocated !== 1)) {
|
|
14629
|
-
_context1.next =
|
|
14648
|
+
_context1.next = 2;
|
|
14630
14649
|
break;
|
|
14631
14650
|
}
|
|
14632
14651
|
throw new Error("Odd-length bit frames require bitsAllocated=1, got ".concat(bitsAllocated));
|
|
14633
|
-
case
|
|
14652
|
+
case 2:
|
|
14634
14653
|
bitsPerFrame = rows * cols * samplesPerPixel * bitsAllocated;
|
|
14635
14654
|
bytesPerFrame = Math.ceil(bitsPerFrame / 8);
|
|
14636
14655
|
totalBits = bitsPerFrame * numberOfFrames;
|
|
14637
14656
|
totalBytes = Math.ceil(totalBits / 8);
|
|
14638
14657
|
if (!(totalBytes !== length)) {
|
|
14639
|
-
_context1.next =
|
|
14658
|
+
_context1.next = 3;
|
|
14640
14659
|
break;
|
|
14641
14660
|
}
|
|
14642
14661
|
throw new Error("The calculated length ".concat(totalBytes, " does not match the actual length ").concat(length));
|
|
14643
|
-
case
|
|
14644
|
-
_context1.next =
|
|
14662
|
+
case 3:
|
|
14663
|
+
_context1.next = 4;
|
|
14645
14664
|
return stream.ensureAvailable(length);
|
|
14646
|
-
case
|
|
14665
|
+
case 4:
|
|
14647
14666
|
allPixelData = stream.readArrayBuffer(totalBytes);
|
|
14648
14667
|
stream.consume();
|
|
14649
14668
|
|
|
@@ -14674,7 +14693,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14674
14693
|
listener.value(frameBuffer);
|
|
14675
14694
|
listener.pop();
|
|
14676
14695
|
}
|
|
14677
|
-
case
|
|
14696
|
+
case 5:
|
|
14678
14697
|
case "end":
|
|
14679
14698
|
return _context1.stop();
|
|
14680
14699
|
}
|
|
@@ -14695,13 +14714,13 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14695
14714
|
value: (function () {
|
|
14696
14715
|
var _readRawBinary = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(tagInfo) {
|
|
14697
14716
|
var length;
|
|
14698
|
-
return _regeneratorRuntime().wrap(function
|
|
14717
|
+
return _regeneratorRuntime().wrap(function (_context10) {
|
|
14699
14718
|
while (1) switch (_context10.prev = _context10.next) {
|
|
14700
14719
|
case 0:
|
|
14701
14720
|
length = tagInfo.length;
|
|
14702
|
-
_context10.next =
|
|
14721
|
+
_context10.next = 1;
|
|
14703
14722
|
return this._emitSplitValues(length);
|
|
14704
|
-
case
|
|
14723
|
+
case 1:
|
|
14705
14724
|
case "end":
|
|
14706
14725
|
return _context10.stop();
|
|
14707
14726
|
}
|
|
@@ -14823,15 +14842,15 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14823
14842
|
key: "readSingle",
|
|
14824
14843
|
value: (function () {
|
|
14825
14844
|
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
|
|
14845
|
+
var length, stream, syntax, vr, values, times, i, _vr$read, value, _vr$read2, _value, delimiterChar, _values, _values2, coding, valuesForListener;
|
|
14846
|
+
return _regeneratorRuntime().wrap(function (_context11) {
|
|
14828
14847
|
while (1) switch (_context11.prev = _context11.next) {
|
|
14829
14848
|
case 0:
|
|
14830
14849
|
length = tagInfo.length;
|
|
14831
14850
|
stream = this.stream, syntax = this.syntax;
|
|
14832
|
-
_context11.next =
|
|
14851
|
+
_context11.next = 1;
|
|
14833
14852
|
return this.stream.ensureAvailable(length);
|
|
14834
|
-
case
|
|
14853
|
+
case 1:
|
|
14835
14854
|
vr = ValueRepresentation.createByTypeString(tagInfo.vr);
|
|
14836
14855
|
values = [];
|
|
14837
14856
|
if (vr.isBinary() && length > vr.maxLength && !vr.noMultiple) {
|
|
@@ -14857,39 +14876,48 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14857
14876
|
}
|
|
14858
14877
|
}
|
|
14859
14878
|
if (!(tagInfo.tag === TagHex.SpecificCharacterSet)) {
|
|
14860
|
-
_context11.next =
|
|
14879
|
+
_context11.next = 5;
|
|
14861
14880
|
break;
|
|
14862
14881
|
}
|
|
14863
14882
|
if (!(values.length > 0)) {
|
|
14864
|
-
_context11.next =
|
|
14883
|
+
_context11.next = 4;
|
|
14865
14884
|
break;
|
|
14866
14885
|
}
|
|
14867
14886
|
_values = values, _values2 = _slicedToArray(_values, 1), coding = _values2[0];
|
|
14868
14887
|
coding = coding.replace(/[_ ]/g, "-").toLowerCase();
|
|
14869
14888
|
if (!(coding in encodingMapping)) {
|
|
14870
|
-
_context11.next =
|
|
14889
|
+
_context11.next = 2;
|
|
14871
14890
|
break;
|
|
14872
14891
|
}
|
|
14873
14892
|
coding = encodingMapping[coding];
|
|
14874
14893
|
this.stream.setDecoder(new TextDecoder(coding));
|
|
14875
|
-
_context11.next =
|
|
14894
|
+
_context11.next = 4;
|
|
14876
14895
|
break;
|
|
14877
|
-
case
|
|
14896
|
+
case 2:
|
|
14878
14897
|
if (!(options !== null && options !== void 0 && options.ignoreErrors)) {
|
|
14879
|
-
_context11.next =
|
|
14898
|
+
_context11.next = 3;
|
|
14880
14899
|
break;
|
|
14881
14900
|
}
|
|
14882
14901
|
log.warn("Unsupported character set: ".concat(coding, ", using default character set"));
|
|
14883
|
-
_context11.next =
|
|
14902
|
+
_context11.next = 4;
|
|
14884
14903
|
break;
|
|
14885
|
-
case
|
|
14904
|
+
case 3:
|
|
14886
14905
|
throw Error("Unsupported character set: ".concat(coding));
|
|
14887
|
-
case
|
|
14888
|
-
|
|
14906
|
+
case 4:
|
|
14907
|
+
// Normalize to UTF-8 in the stored value, matching the synchronous
|
|
14908
|
+
// DicomMessage path which always rewrites SpecificCharacterSet to
|
|
14909
|
+
// ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
|
|
14910
|
+
//
|
|
14911
|
+
// TODO: the original charset value should also be preserved:
|
|
14912
|
+
// it is needed for bulk data decoding.
|
|
14913
|
+
values = ["ISO_IR 192"];
|
|
14914
|
+
case 5:
|
|
14915
|
+
valuesForListener = Array.isArray(values) ? values : [values];
|
|
14916
|
+
valuesForListener.forEach(function (value) {
|
|
14889
14917
|
return listener.value(value);
|
|
14890
14918
|
});
|
|
14891
14919
|
return _context11.abrupt("return", values);
|
|
14892
|
-
case
|
|
14920
|
+
case 6:
|
|
14893
14921
|
case "end":
|
|
14894
14922
|
return _context11.stop();
|
|
14895
14923
|
}
|
|
@@ -14901,7 +14929,6 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14901
14929
|
return readSingle;
|
|
14902
14930
|
}())
|
|
14903
14931
|
}]);
|
|
14904
|
-
return AsyncDicomReader;
|
|
14905
14932
|
}();
|
|
14906
14933
|
_defineProperty(AsyncDicomReader, "PART10_NO_PREAMBLE", Symbol("PART10_NO_PREAMBLE"));
|
|
14907
14934
|
|
|
@@ -14967,7 +14994,7 @@ var DerivedDataset = /*#__PURE__*/function () {
|
|
|
14967
14994
|
};
|
|
14968
14995
|
this.derive();
|
|
14969
14996
|
}
|
|
14970
|
-
_createClass(DerivedDataset, [{
|
|
14997
|
+
return _createClass(DerivedDataset, [{
|
|
14971
14998
|
key: "assignToDataset",
|
|
14972
14999
|
value: function assignToDataset(data) {
|
|
14973
15000
|
var _this = this;
|
|
@@ -15005,11 +15032,9 @@ var DerivedDataset = /*#__PURE__*/function () {
|
|
|
15005
15032
|
return JSON.parse(JSON.stringify(dataset));
|
|
15006
15033
|
}
|
|
15007
15034
|
}]);
|
|
15008
|
-
return DerivedDataset;
|
|
15009
15035
|
}();
|
|
15010
15036
|
|
|
15011
15037
|
var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
15012
|
-
_inherits(DerivedPixels, _DerivedDataset);
|
|
15013
15038
|
function DerivedPixels(datasets) {
|
|
15014
15039
|
var _this;
|
|
15015
15040
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -15024,7 +15049,8 @@ var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15024
15049
|
|
|
15025
15050
|
// this assumes a normalized multiframe input and will create
|
|
15026
15051
|
// a multiframe derived image
|
|
15027
|
-
|
|
15052
|
+
_inherits(DerivedPixels, _DerivedDataset);
|
|
15053
|
+
return _createClass(DerivedPixels, [{
|
|
15028
15054
|
key: "derive",
|
|
15029
15055
|
value: function derive() {
|
|
15030
15056
|
_get(_getPrototypeOf(DerivedPixels.prototype), "derive", this).call(this);
|
|
@@ -15051,29 +15077,26 @@ var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15051
15077
|
this.dataset.PixelData = new ArrayBuffer(this.referencedDataset.PixelData.byteLength);
|
|
15052
15078
|
}
|
|
15053
15079
|
}]);
|
|
15054
|
-
return DerivedPixels;
|
|
15055
15080
|
}(DerivedDataset);
|
|
15056
15081
|
|
|
15057
15082
|
var DerivedImage = /*#__PURE__*/function (_DerivedPixels) {
|
|
15058
|
-
_inherits(DerivedImage, _DerivedPixels);
|
|
15059
15083
|
function DerivedImage(datasets) {
|
|
15060
15084
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15061
15085
|
_classCallCheck(this, DerivedImage);
|
|
15062
15086
|
return _callSuper(this, DerivedImage, [datasets, options]);
|
|
15063
15087
|
}
|
|
15064
|
-
|
|
15088
|
+
_inherits(DerivedImage, _DerivedPixels);
|
|
15089
|
+
return _createClass(DerivedImage, [{
|
|
15065
15090
|
key: "derive",
|
|
15066
15091
|
value: function derive() {
|
|
15067
15092
|
_get(_getPrototypeOf(DerivedImage.prototype), "derive", this).call(this);
|
|
15068
15093
|
this.assignFromReference(["WindowCenter", "WindowWidth", "BitsAllocated", "PixelRepresentation", "BodyPartExamined", "Laterality", "PatientPosition", "RescaleSlope", "RescaleIntercept", "PixelPresentation", "VolumetricProperties", "VolumeBasedCalculationTechnique", "PresentationLUTShape"]);
|
|
15069
15094
|
}
|
|
15070
15095
|
}]);
|
|
15071
|
-
return DerivedImage;
|
|
15072
15096
|
}(DerivedPixels);
|
|
15073
15097
|
|
|
15074
15098
|
var Normalizer$1;
|
|
15075
15099
|
var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
15076
|
-
_inherits(Segmentation, _DerivedPixels);
|
|
15077
15100
|
function Segmentation(datasets) {
|
|
15078
15101
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15079
15102
|
includeSliceSpacing: true
|
|
@@ -15081,7 +15104,8 @@ var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
|
15081
15104
|
_classCallCheck(this, Segmentation);
|
|
15082
15105
|
return _callSuper(this, Segmentation, [datasets, options]);
|
|
15083
15106
|
}
|
|
15084
|
-
|
|
15107
|
+
_inherits(Segmentation, _DerivedPixels);
|
|
15108
|
+
return _createClass(Segmentation, [{
|
|
15085
15109
|
key: "derive",
|
|
15086
15110
|
value: function derive() {
|
|
15087
15111
|
_get(_getPrototypeOf(Segmentation.prototype), "derive", this).call(this);
|
|
@@ -15396,11 +15420,9 @@ var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
|
15396
15420
|
Normalizer$1 = normalizer;
|
|
15397
15421
|
}
|
|
15398
15422
|
}]);
|
|
15399
|
-
return Segmentation;
|
|
15400
15423
|
}(DerivedPixels);
|
|
15401
15424
|
|
|
15402
15425
|
var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
15403
|
-
_inherits(ParametricMap, _DerivedDataset);
|
|
15404
15426
|
function ParametricMap(datasets) {
|
|
15405
15427
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15406
15428
|
_classCallCheck(this, ParametricMap);
|
|
@@ -15409,7 +15431,8 @@ var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15409
15431
|
|
|
15410
15432
|
// this assumes a normalized multiframe input and will create
|
|
15411
15433
|
// a multiframe derived image
|
|
15412
|
-
|
|
15434
|
+
_inherits(ParametricMap, _DerivedDataset);
|
|
15435
|
+
return _createClass(ParametricMap, [{
|
|
15413
15436
|
key: "derive",
|
|
15414
15437
|
value: function derive() {
|
|
15415
15438
|
_get(_getPrototypeOf(ParametricMap.prototype), "derive", this).call(this);
|
|
@@ -15419,11 +15442,9 @@ var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15419
15442
|
this.assignFromReference([]);
|
|
15420
15443
|
}
|
|
15421
15444
|
}]);
|
|
15422
|
-
return ParametricMap;
|
|
15423
15445
|
}(DerivedDataset);
|
|
15424
15446
|
|
|
15425
15447
|
var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
15426
|
-
_inherits(StructuredReport, _DerivedDataset);
|
|
15427
15448
|
function StructuredReport(datasets) {
|
|
15428
15449
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15429
15450
|
_classCallCheck(this, StructuredReport);
|
|
@@ -15432,7 +15453,8 @@ var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15432
15453
|
|
|
15433
15454
|
// this assumes a normalized multiframe input and will create
|
|
15434
15455
|
// a multiframe derived image
|
|
15435
|
-
|
|
15456
|
+
_inherits(StructuredReport, _DerivedDataset);
|
|
15457
|
+
return _createClass(StructuredReport, [{
|
|
15436
15458
|
key: "derive",
|
|
15437
15459
|
value: function derive() {
|
|
15438
15460
|
_get(_getPrototypeOf(StructuredReport.prototype), "derive", this).call(this);
|
|
@@ -15444,7 +15466,6 @@ var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15444
15466
|
this.assignFromReference([]);
|
|
15445
15467
|
}
|
|
15446
15468
|
}]);
|
|
15447
|
-
return StructuredReport;
|
|
15448
15469
|
}(DerivedDataset);
|
|
15449
15470
|
|
|
15450
15471
|
var Normalizer = /*#__PURE__*/function () {
|
|
@@ -15453,7 +15474,7 @@ var Normalizer = /*#__PURE__*/function () {
|
|
|
15453
15474
|
this.datasets = datasets; // one or more dicom-like object instances
|
|
15454
15475
|
this.dataset = undefined; // a normalized multiframe dicom object instance
|
|
15455
15476
|
}
|
|
15456
|
-
_createClass(Normalizer, [{
|
|
15477
|
+
return _createClass(Normalizer, [{
|
|
15457
15478
|
key: "normalize",
|
|
15458
15479
|
value: function normalize() {
|
|
15459
15480
|
return "No normalization defined";
|
|
@@ -15531,15 +15552,14 @@ var Normalizer = /*#__PURE__*/function () {
|
|
|
15531
15552
|
return normalizer.dataset;
|
|
15532
15553
|
}
|
|
15533
15554
|
}]);
|
|
15534
|
-
return Normalizer;
|
|
15535
15555
|
}();
|
|
15536
15556
|
var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
15537
|
-
_inherits(ImageNormalizer, _Normalizer);
|
|
15538
15557
|
function ImageNormalizer() {
|
|
15539
15558
|
_classCallCheck(this, ImageNormalizer);
|
|
15540
15559
|
return _callSuper(this, ImageNormalizer, arguments);
|
|
15541
15560
|
}
|
|
15542
|
-
|
|
15561
|
+
_inherits(ImageNormalizer, _Normalizer);
|
|
15562
|
+
return _createClass(ImageNormalizer, [{
|
|
15543
15563
|
key: "normalize",
|
|
15544
15564
|
value: function normalize() {
|
|
15545
15565
|
this.convertToMultiframe();
|
|
@@ -15836,15 +15856,14 @@ var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
|
15836
15856
|
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
15837
15857
|
}
|
|
15838
15858
|
}]);
|
|
15839
|
-
return ImageNormalizer;
|
|
15840
15859
|
}(Normalizer);
|
|
15841
15860
|
var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
15842
|
-
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15843
15861
|
function MRImageNormalizer() {
|
|
15844
15862
|
_classCallCheck(this, MRImageNormalizer);
|
|
15845
15863
|
return _callSuper(this, MRImageNormalizer, arguments);
|
|
15846
15864
|
}
|
|
15847
|
-
|
|
15865
|
+
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15866
|
+
return _createClass(MRImageNormalizer, [{
|
|
15848
15867
|
key: "normalize",
|
|
15849
15868
|
value: function normalize() {
|
|
15850
15869
|
_get(_getPrototypeOf(MRImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15871,57 +15890,53 @@ var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
|
15871
15890
|
};
|
|
15872
15891
|
}
|
|
15873
15892
|
}]);
|
|
15874
|
-
return MRImageNormalizer;
|
|
15875
15893
|
}(ImageNormalizer);
|
|
15876
15894
|
var EnhancedCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer2) {
|
|
15877
|
-
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15878
15895
|
function EnhancedCTImageNormalizer() {
|
|
15879
15896
|
_classCallCheck(this, EnhancedCTImageNormalizer);
|
|
15880
15897
|
return _callSuper(this, EnhancedCTImageNormalizer, arguments);
|
|
15881
15898
|
}
|
|
15882
|
-
|
|
15899
|
+
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15900
|
+
return _createClass(EnhancedCTImageNormalizer, [{
|
|
15883
15901
|
key: "normalize",
|
|
15884
15902
|
value: function normalize() {
|
|
15885
15903
|
_get(_getPrototypeOf(EnhancedCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
15886
15904
|
}
|
|
15887
15905
|
}]);
|
|
15888
|
-
return EnhancedCTImageNormalizer;
|
|
15889
15906
|
}(ImageNormalizer);
|
|
15890
15907
|
var EnhancedMRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer3) {
|
|
15891
|
-
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15892
15908
|
function EnhancedMRImageNormalizer() {
|
|
15893
15909
|
_classCallCheck(this, EnhancedMRImageNormalizer);
|
|
15894
15910
|
return _callSuper(this, EnhancedMRImageNormalizer, arguments);
|
|
15895
15911
|
}
|
|
15896
|
-
|
|
15912
|
+
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15913
|
+
return _createClass(EnhancedMRImageNormalizer, [{
|
|
15897
15914
|
key: "normalize",
|
|
15898
15915
|
value: function normalize() {
|
|
15899
15916
|
_get(_getPrototypeOf(EnhancedMRImageNormalizer.prototype), "normalize", this).call(this);
|
|
15900
15917
|
}
|
|
15901
15918
|
}]);
|
|
15902
|
-
return EnhancedMRImageNormalizer;
|
|
15903
15919
|
}(ImageNormalizer);
|
|
15904
15920
|
var EnhancedUSVolumeNormalizer = /*#__PURE__*/function (_ImageNormalizer4) {
|
|
15905
|
-
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15906
15921
|
function EnhancedUSVolumeNormalizer() {
|
|
15907
15922
|
_classCallCheck(this, EnhancedUSVolumeNormalizer);
|
|
15908
15923
|
return _callSuper(this, EnhancedUSVolumeNormalizer, arguments);
|
|
15909
15924
|
}
|
|
15910
|
-
|
|
15925
|
+
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15926
|
+
return _createClass(EnhancedUSVolumeNormalizer, [{
|
|
15911
15927
|
key: "normalize",
|
|
15912
15928
|
value: function normalize() {
|
|
15913
15929
|
_get(_getPrototypeOf(EnhancedUSVolumeNormalizer.prototype), "normalize", this).call(this);
|
|
15914
15930
|
}
|
|
15915
15931
|
}]);
|
|
15916
|
-
return EnhancedUSVolumeNormalizer;
|
|
15917
15932
|
}(ImageNormalizer);
|
|
15918
15933
|
var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
15919
|
-
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15920
15934
|
function NMImageNormalizer() {
|
|
15921
15935
|
_classCallCheck(this, NMImageNormalizer);
|
|
15922
15936
|
return _callSuper(this, NMImageNormalizer, arguments);
|
|
15923
15937
|
}
|
|
15924
|
-
|
|
15938
|
+
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15939
|
+
return _createClass(NMImageNormalizer, [{
|
|
15925
15940
|
key: "normalize",
|
|
15926
15941
|
value: function normalize() {
|
|
15927
15942
|
_get(_getPrototypeOf(NMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15930,15 +15945,14 @@ var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
|
15930
15945
|
this.dataset.SOPClassUID = toUID.NMImage;
|
|
15931
15946
|
}
|
|
15932
15947
|
}]);
|
|
15933
|
-
return NMImageNormalizer;
|
|
15934
15948
|
}(ImageNormalizer);
|
|
15935
15949
|
var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
15936
|
-
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15937
15950
|
function CTImageNormalizer() {
|
|
15938
15951
|
_classCallCheck(this, CTImageNormalizer);
|
|
15939
15952
|
return _callSuper(this, CTImageNormalizer, arguments);
|
|
15940
15953
|
}
|
|
15941
|
-
|
|
15954
|
+
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15955
|
+
return _createClass(CTImageNormalizer, [{
|
|
15942
15956
|
key: "normalize",
|
|
15943
15957
|
value: function normalize() {
|
|
15944
15958
|
_get(_getPrototypeOf(CTImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15948,15 +15962,14 @@ var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
|
15948
15962
|
this.dataset.SOPClassUID = toUID.EnhancedCTImage;
|
|
15949
15963
|
}
|
|
15950
15964
|
}]);
|
|
15951
|
-
return CTImageNormalizer;
|
|
15952
15965
|
}(ImageNormalizer);
|
|
15953
15966
|
var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
15954
|
-
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15955
15967
|
function PETImageNormalizer() {
|
|
15956
15968
|
_classCallCheck(this, PETImageNormalizer);
|
|
15957
15969
|
return _callSuper(this, PETImageNormalizer, arguments);
|
|
15958
15970
|
}
|
|
15959
|
-
|
|
15971
|
+
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15972
|
+
return _createClass(PETImageNormalizer, [{
|
|
15960
15973
|
key: "normalize",
|
|
15961
15974
|
value: function normalize() {
|
|
15962
15975
|
_get(_getPrototypeOf(PETImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15966,29 +15979,27 @@ var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
|
15966
15979
|
this.dataset.SOPClassUID = toUID.EnhancedPETImage;
|
|
15967
15980
|
}
|
|
15968
15981
|
}]);
|
|
15969
|
-
return PETImageNormalizer;
|
|
15970
15982
|
}(ImageNormalizer);
|
|
15971
15983
|
var SEGImageNormalizer = /*#__PURE__*/function (_ImageNormalizer8) {
|
|
15972
|
-
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15973
15984
|
function SEGImageNormalizer() {
|
|
15974
15985
|
_classCallCheck(this, SEGImageNormalizer);
|
|
15975
15986
|
return _callSuper(this, SEGImageNormalizer, arguments);
|
|
15976
15987
|
}
|
|
15977
|
-
|
|
15988
|
+
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15989
|
+
return _createClass(SEGImageNormalizer, [{
|
|
15978
15990
|
key: "normalize",
|
|
15979
15991
|
value: function normalize() {
|
|
15980
15992
|
_get(_getPrototypeOf(SEGImageNormalizer.prototype), "normalize", this).call(this);
|
|
15981
15993
|
}
|
|
15982
15994
|
}]);
|
|
15983
|
-
return SEGImageNormalizer;
|
|
15984
15995
|
}(ImageNormalizer);
|
|
15985
15996
|
var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
15986
|
-
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
15987
15997
|
function PMImageNormalizer() {
|
|
15988
15998
|
_classCallCheck(this, PMImageNormalizer);
|
|
15989
15999
|
return _callSuper(this, PMImageNormalizer, arguments);
|
|
15990
16000
|
}
|
|
15991
|
-
|
|
16001
|
+
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
16002
|
+
return _createClass(PMImageNormalizer, [{
|
|
15992
16003
|
key: "normalize",
|
|
15993
16004
|
value: function normalize() {
|
|
15994
16005
|
_get(_getPrototypeOf(PMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15998,49 +16009,45 @@ var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
|
15998
16009
|
}
|
|
15999
16010
|
}
|
|
16000
16011
|
}]);
|
|
16001
|
-
return PMImageNormalizer;
|
|
16002
16012
|
}(ImageNormalizer);
|
|
16003
16013
|
var DSRNormalizer = /*#__PURE__*/function (_Normalizer2) {
|
|
16004
|
-
_inherits(DSRNormalizer, _Normalizer2);
|
|
16005
16014
|
function DSRNormalizer() {
|
|
16006
16015
|
_classCallCheck(this, DSRNormalizer);
|
|
16007
16016
|
return _callSuper(this, DSRNormalizer, arguments);
|
|
16008
16017
|
}
|
|
16009
|
-
|
|
16018
|
+
_inherits(DSRNormalizer, _Normalizer2);
|
|
16019
|
+
return _createClass(DSRNormalizer, [{
|
|
16010
16020
|
key: "normalize",
|
|
16011
16021
|
value: function normalize() {
|
|
16012
16022
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16013
16023
|
}
|
|
16014
16024
|
}]);
|
|
16015
|
-
return DSRNormalizer;
|
|
16016
16025
|
}(Normalizer);
|
|
16017
16026
|
var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
|
|
16018
|
-
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16019
16027
|
function OPImageNormalizer() {
|
|
16020
16028
|
_classCallCheck(this, OPImageNormalizer);
|
|
16021
16029
|
return _callSuper(this, OPImageNormalizer, arguments);
|
|
16022
16030
|
}
|
|
16023
|
-
|
|
16031
|
+
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16032
|
+
return _createClass(OPImageNormalizer, [{
|
|
16024
16033
|
key: "normalize",
|
|
16025
16034
|
value: function normalize() {
|
|
16026
16035
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16027
16036
|
}
|
|
16028
16037
|
}]);
|
|
16029
|
-
return OPImageNormalizer;
|
|
16030
16038
|
}(Normalizer);
|
|
16031
16039
|
var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer0) {
|
|
16032
|
-
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16033
16040
|
function OCTImageNormalizer() {
|
|
16034
16041
|
_classCallCheck(this, OCTImageNormalizer);
|
|
16035
16042
|
return _callSuper(this, OCTImageNormalizer, arguments);
|
|
16036
16043
|
}
|
|
16037
|
-
|
|
16044
|
+
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16045
|
+
return _createClass(OCTImageNormalizer, [{
|
|
16038
16046
|
key: "normalize",
|
|
16039
16047
|
value: function normalize() {
|
|
16040
16048
|
_get(_getPrototypeOf(OCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
16041
16049
|
}
|
|
16042
16050
|
}]);
|
|
16043
|
-
return OCTImageNormalizer;
|
|
16044
16051
|
}(ImageNormalizer); // Avoid import loops
|
|
16045
16052
|
Segmentation$4.setNormalizer(Normalizer);
|
|
16046
16053
|
|
|
@@ -16148,7 +16155,7 @@ var TID1500MeasurementReport = /*#__PURE__*/function () {
|
|
|
16148
16155
|
}]
|
|
16149
16156
|
};
|
|
16150
16157
|
}
|
|
16151
|
-
_createClass(TID1500MeasurementReport, [{
|
|
16158
|
+
return _createClass(TID1500MeasurementReport, [{
|
|
16152
16159
|
key: "validate",
|
|
16153
16160
|
value: function validate() {}
|
|
16154
16161
|
}, {
|
|
@@ -16239,7 +16246,6 @@ var TID1500MeasurementReport = /*#__PURE__*/function () {
|
|
|
16239
16246
|
this.tid1500.ContentSequence.push(ImagingMeasurments);
|
|
16240
16247
|
}
|
|
16241
16248
|
}]);
|
|
16242
|
-
return TID1500MeasurementReport;
|
|
16243
16249
|
}();
|
|
16244
16250
|
|
|
16245
16251
|
var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
@@ -16247,7 +16253,7 @@ var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
|
16247
16253
|
_classCallCheck(this, TID1501MeasurementGroup);
|
|
16248
16254
|
this.TID300Measurements = TID300Measurements;
|
|
16249
16255
|
}
|
|
16250
|
-
_createClass(TID1501MeasurementGroup, [{
|
|
16256
|
+
return _createClass(TID1501MeasurementGroup, [{
|
|
16251
16257
|
key: "contentItem",
|
|
16252
16258
|
value: function contentItem() {
|
|
16253
16259
|
var _this = this;
|
|
@@ -16276,7 +16282,6 @@ var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
|
16276
16282
|
};
|
|
16277
16283
|
}
|
|
16278
16284
|
}]);
|
|
16279
|
-
return TID1501MeasurementGroup;
|
|
16280
16285
|
}();
|
|
16281
16286
|
|
|
16282
16287
|
var toArray = function toArray(x) {
|
|
@@ -16336,7 +16341,7 @@ var MeasurementReport$3 = /*#__PURE__*/function () {
|
|
|
16336
16341
|
function MeasurementReport() {
|
|
16337
16342
|
_classCallCheck(this, MeasurementReport);
|
|
16338
16343
|
}
|
|
16339
|
-
_createClass(MeasurementReport, null, [{
|
|
16344
|
+
return _createClass(MeasurementReport, null, [{
|
|
16340
16345
|
key: "getSetupMeasurementData",
|
|
16341
16346
|
value: function getSetupMeasurementData(MeasurementGroup) {
|
|
16342
16347
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -16547,7 +16552,6 @@ var MeasurementReport$3 = /*#__PURE__*/function () {
|
|
|
16547
16552
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
16548
16553
|
}
|
|
16549
16554
|
}]);
|
|
16550
|
-
return MeasurementReport;
|
|
16551
16555
|
}();
|
|
16552
16556
|
MeasurementReport$3.MEASUREMENT_BY_TOOLTYPE = {};
|
|
16553
16557
|
MeasurementReport$3.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -16559,7 +16563,7 @@ var TID300Measurement = /*#__PURE__*/function () {
|
|
|
16559
16563
|
this.ReferencedSOPSequence = props.ReferencedSOPSequence;
|
|
16560
16564
|
this.props = props;
|
|
16561
16565
|
}
|
|
16562
|
-
_createClass(TID300Measurement, [{
|
|
16566
|
+
return _createClass(TID300Measurement, [{
|
|
16563
16567
|
key: "getMeasurement",
|
|
16564
16568
|
value: function getMeasurement(contentSequenceEntries) {
|
|
16565
16569
|
return [].concat(_toConsumableArray(this.getTrackingGroups()), _toConsumableArray(this.getFindingGroup()), _toConsumableArray(this.getFindingSiteGroups()), _toConsumableArray(contentSequenceEntries));
|
|
@@ -16667,7 +16671,6 @@ var TID300Measurement = /*#__PURE__*/function () {
|
|
|
16667
16671
|
return flattenedCoordinates;
|
|
16668
16672
|
}
|
|
16669
16673
|
}]);
|
|
16670
|
-
return TID300Measurement;
|
|
16671
16674
|
}();
|
|
16672
16675
|
|
|
16673
16676
|
/**
|
|
@@ -16689,7 +16692,7 @@ var TID320ContentItem = /*#__PURE__*/function () {
|
|
|
16689
16692
|
this.referencedSOPSequence = referencedSOPSequence;
|
|
16690
16693
|
this.referencedFrameOfReferenceUID = referencedFrameOfReferenceUID;
|
|
16691
16694
|
}
|
|
16692
|
-
_createClass(TID320ContentItem, [{
|
|
16695
|
+
return _createClass(TID320ContentItem, [{
|
|
16693
16696
|
key: "contentItem",
|
|
16694
16697
|
value: function contentItem() {
|
|
16695
16698
|
var content = {
|
|
@@ -16710,16 +16713,15 @@ var TID320ContentItem = /*#__PURE__*/function () {
|
|
|
16710
16713
|
return content;
|
|
16711
16714
|
}
|
|
16712
16715
|
}]);
|
|
16713
|
-
return TID320ContentItem;
|
|
16714
16716
|
}();
|
|
16715
16717
|
|
|
16716
16718
|
var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
16717
|
-
_inherits(OpenPolyline, _TID300Measurement);
|
|
16718
16719
|
function OpenPolyline() {
|
|
16719
16720
|
_classCallCheck(this, OpenPolyline);
|
|
16720
16721
|
return _callSuper(this, OpenPolyline, arguments);
|
|
16721
16722
|
}
|
|
16722
|
-
|
|
16723
|
+
_inherits(OpenPolyline, _TID300Measurement);
|
|
16724
|
+
return _createClass(OpenPolyline, [{
|
|
16723
16725
|
key: "getPoints",
|
|
16724
16726
|
value: function getPoints() {
|
|
16725
16727
|
throw new Error("getPoints() must be implemented by subclass");
|
|
@@ -16768,7 +16770,6 @@ var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
16768
16770
|
}]);
|
|
16769
16771
|
}
|
|
16770
16772
|
}]);
|
|
16771
|
-
return OpenPolyline;
|
|
16772
16773
|
}(TID300Measurement);
|
|
16773
16774
|
|
|
16774
16775
|
var knownUnits = [
|
|
@@ -16946,12 +16947,12 @@ var unit2CodingValue = function unit2CodingValue(units) {
|
|
|
16946
16947
|
unit2CodingValue.measurementMap = unitCodeMap;
|
|
16947
16948
|
|
|
16948
16949
|
var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
16949
|
-
_inherits(Length, _OpenPolyline);
|
|
16950
16950
|
function Length() {
|
|
16951
16951
|
_classCallCheck(this, Length);
|
|
16952
16952
|
return _callSuper(this, Length, arguments);
|
|
16953
16953
|
}
|
|
16954
|
-
|
|
16954
|
+
_inherits(Length, _OpenPolyline);
|
|
16955
|
+
return _createClass(Length, [{
|
|
16955
16956
|
key: "getPoints",
|
|
16956
16957
|
value: function getPoints() {
|
|
16957
16958
|
var _this$props = this.props,
|
|
@@ -16981,7 +16982,6 @@ var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
16981
16982
|
};
|
|
16982
16983
|
}
|
|
16983
16984
|
}]);
|
|
16984
|
-
return Length;
|
|
16985
16985
|
}(OpenPolyline);
|
|
16986
16986
|
|
|
16987
16987
|
var CORNERSTONE_4_TAG = "cornerstoneTools@^4.0.0";
|
|
@@ -16993,7 +16993,7 @@ var Length$1 = /*#__PURE__*/function () {
|
|
|
16993
16993
|
}
|
|
16994
16994
|
|
|
16995
16995
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
16996
|
-
_createClass(Length, null, [{
|
|
16996
|
+
return _createClass(Length, null, [{
|
|
16997
16997
|
key: "getMeasurementData",
|
|
16998
16998
|
value: function getMeasurementData(MeasurementGroup) {
|
|
16999
16999
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17042,7 +17042,6 @@ var Length$1 = /*#__PURE__*/function () {
|
|
|
17042
17042
|
};
|
|
17043
17043
|
}
|
|
17044
17044
|
}]);
|
|
17045
|
-
return Length;
|
|
17046
17045
|
}();
|
|
17047
17046
|
Length$1.toolType = LENGTH$1;
|
|
17048
17047
|
Length$1.utilityToolType = LENGTH$1;
|
|
@@ -17079,7 +17078,7 @@ var MeasurementBuilder = /*#__PURE__*/function () {
|
|
|
17079
17078
|
function MeasurementBuilder() {
|
|
17080
17079
|
_classCallCheck(this, MeasurementBuilder);
|
|
17081
17080
|
}
|
|
17082
|
-
_createClass(MeasurementBuilder, null, [{
|
|
17081
|
+
return _createClass(MeasurementBuilder, null, [{
|
|
17083
17082
|
key: "createNumericMeasurement",
|
|
17084
17083
|
value:
|
|
17085
17084
|
/**
|
|
@@ -17173,16 +17172,15 @@ var MeasurementBuilder = /*#__PURE__*/function () {
|
|
|
17173
17172
|
});
|
|
17174
17173
|
}
|
|
17175
17174
|
}]);
|
|
17176
|
-
return MeasurementBuilder;
|
|
17177
17175
|
}();
|
|
17178
17176
|
|
|
17179
17177
|
var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17180
|
-
_inherits(Polyline, _TID300Measurement);
|
|
17181
17178
|
function Polyline() {
|
|
17182
17179
|
_classCallCheck(this, Polyline);
|
|
17183
17180
|
return _callSuper(this, Polyline, arguments);
|
|
17184
17181
|
}
|
|
17185
|
-
|
|
17182
|
+
_inherits(Polyline, _TID300Measurement);
|
|
17183
|
+
return _createClass(Polyline, [{
|
|
17186
17184
|
key: "contentItem",
|
|
17187
17185
|
value: function contentItem() {
|
|
17188
17186
|
var _this$props = this.props,
|
|
@@ -17248,14 +17246,13 @@ var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17248
17246
|
return this.getMeasurement(measurements);
|
|
17249
17247
|
}
|
|
17250
17248
|
}]);
|
|
17251
|
-
return Polyline;
|
|
17252
17249
|
}(TID300Measurement);
|
|
17253
17250
|
|
|
17254
17251
|
var FreehandRoi = /*#__PURE__*/function () {
|
|
17255
17252
|
function FreehandRoi() {
|
|
17256
17253
|
_classCallCheck(this, FreehandRoi);
|
|
17257
17254
|
}
|
|
17258
|
-
_createClass(FreehandRoi, null, [{
|
|
17255
|
+
return _createClass(FreehandRoi, null, [{
|
|
17259
17256
|
key: "getMeasurementData",
|
|
17260
17257
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17261
17258
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17314,7 +17311,6 @@ var FreehandRoi = /*#__PURE__*/function () {
|
|
|
17314
17311
|
};
|
|
17315
17312
|
}
|
|
17316
17313
|
}]);
|
|
17317
|
-
return FreehandRoi;
|
|
17318
17314
|
}();
|
|
17319
17315
|
FreehandRoi.toolType = "FreehandRoi";
|
|
17320
17316
|
FreehandRoi.utilityToolType = "FreehandRoi";
|
|
@@ -17335,12 +17331,12 @@ FreehandRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier)
|
|
|
17335
17331
|
MeasurementReport$3.registerTool(FreehandRoi);
|
|
17336
17332
|
|
|
17337
17333
|
var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17338
|
-
_inherits(Bidirectional, _TID300Measurement);
|
|
17339
17334
|
function Bidirectional() {
|
|
17340
17335
|
_classCallCheck(this, Bidirectional);
|
|
17341
17336
|
return _callSuper(this, Bidirectional, arguments);
|
|
17342
17337
|
}
|
|
17343
|
-
|
|
17338
|
+
_inherits(Bidirectional, _TID300Measurement);
|
|
17339
|
+
return _createClass(Bidirectional, [{
|
|
17344
17340
|
key: "contentItem",
|
|
17345
17341
|
value: function contentItem() {
|
|
17346
17342
|
var _this$props = this.props,
|
|
@@ -17404,7 +17400,6 @@ var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17404
17400
|
}]);
|
|
17405
17401
|
}
|
|
17406
17402
|
}]);
|
|
17407
|
-
return Bidirectional;
|
|
17408
17403
|
}(TID300Measurement);
|
|
17409
17404
|
|
|
17410
17405
|
var BIDIRECTIONAL$1 = "Bidirectional";
|
|
@@ -17418,7 +17413,7 @@ var Bidirectional$1 = /*#__PURE__*/function () {
|
|
|
17418
17413
|
}
|
|
17419
17414
|
|
|
17420
17415
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17421
|
-
_createClass(Bidirectional, null, [{
|
|
17416
|
+
return _createClass(Bidirectional, null, [{
|
|
17422
17417
|
key: "getMeasurementData",
|
|
17423
17418
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17424
17419
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -17549,7 +17544,6 @@ var Bidirectional$1 = /*#__PURE__*/function () {
|
|
|
17549
17544
|
};
|
|
17550
17545
|
}
|
|
17551
17546
|
}]);
|
|
17552
|
-
return Bidirectional;
|
|
17553
17547
|
}();
|
|
17554
17548
|
Bidirectional$1.toolType = BIDIRECTIONAL$1;
|
|
17555
17549
|
Bidirectional$1.utilityToolType = BIDIRECTIONAL$1;
|
|
@@ -17570,12 +17564,12 @@ Bidirectional$1.isValidCornerstoneTrackingIdentifier = function (TrackingIdentif
|
|
|
17570
17564
|
MeasurementReport$3.registerTool(Bidirectional$1);
|
|
17571
17565
|
|
|
17572
17566
|
var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17573
|
-
_inherits(Ellipse, _TID300Measurement);
|
|
17574
17567
|
function Ellipse() {
|
|
17575
17568
|
_classCallCheck(this, Ellipse);
|
|
17576
17569
|
return _callSuper(this, Ellipse, arguments);
|
|
17577
17570
|
}
|
|
17578
|
-
|
|
17571
|
+
_inherits(Ellipse, _TID300Measurement);
|
|
17572
|
+
return _createClass(Ellipse, [{
|
|
17579
17573
|
key: "contentItem",
|
|
17580
17574
|
value: function contentItem() {
|
|
17581
17575
|
var _this$props = this.props,
|
|
@@ -17633,7 +17627,6 @@ var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17633
17627
|
return this.getMeasurement(measurements);
|
|
17634
17628
|
}
|
|
17635
17629
|
}]);
|
|
17636
|
-
return Ellipse;
|
|
17637
17630
|
}(TID300Measurement);
|
|
17638
17631
|
|
|
17639
17632
|
var ELLIPTICALROI$1 = "EllipticalRoi";
|
|
@@ -17643,7 +17636,7 @@ var EllipticalRoi = /*#__PURE__*/function () {
|
|
|
17643
17636
|
}
|
|
17644
17637
|
|
|
17645
17638
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17646
|
-
_createClass(EllipticalRoi, null, [{
|
|
17639
|
+
return _createClass(EllipticalRoi, null, [{
|
|
17647
17640
|
key: "getMeasurementData",
|
|
17648
17641
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17649
17642
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17788,7 +17781,6 @@ var EllipticalRoi = /*#__PURE__*/function () {
|
|
|
17788
17781
|
};
|
|
17789
17782
|
}
|
|
17790
17783
|
}]);
|
|
17791
|
-
return EllipticalRoi;
|
|
17792
17784
|
}();
|
|
17793
17785
|
EllipticalRoi.toolType = ELLIPTICALROI$1;
|
|
17794
17786
|
EllipticalRoi.utilityToolType = ELLIPTICALROI$1;
|
|
@@ -17809,12 +17801,12 @@ EllipticalRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifie
|
|
|
17809
17801
|
MeasurementReport$3.registerTool(EllipticalRoi);
|
|
17810
17802
|
|
|
17811
17803
|
var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17812
|
-
_inherits(Circle, _TID300Measurement);
|
|
17813
17804
|
function Circle() {
|
|
17814
17805
|
_classCallCheck(this, Circle);
|
|
17815
17806
|
return _callSuper(this, Circle, arguments);
|
|
17816
17807
|
}
|
|
17817
|
-
|
|
17808
|
+
_inherits(Circle, _TID300Measurement);
|
|
17809
|
+
return _createClass(Circle, [{
|
|
17818
17810
|
key: "contentItem",
|
|
17819
17811
|
value: function contentItem() {
|
|
17820
17812
|
var _this$props = this.props,
|
|
@@ -17891,7 +17883,6 @@ var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17891
17883
|
return this.getMeasurement(measurements);
|
|
17892
17884
|
}
|
|
17893
17885
|
}]);
|
|
17894
|
-
return Circle;
|
|
17895
17886
|
}(TID300Measurement);
|
|
17896
17887
|
|
|
17897
17888
|
var CIRCLEROI = "CircleRoi";
|
|
@@ -17901,7 +17892,7 @@ var CircleRoi = /*#__PURE__*/function () {
|
|
|
17901
17892
|
}
|
|
17902
17893
|
|
|
17903
17894
|
/** Gets the measurement data for cornerstone, given DICOM SR measurement data. */
|
|
17904
|
-
_createClass(CircleRoi, null, [{
|
|
17895
|
+
return _createClass(CircleRoi, null, [{
|
|
17905
17896
|
key: "getMeasurementData",
|
|
17906
17897
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17907
17898
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17990,7 +17981,6 @@ var CircleRoi = /*#__PURE__*/function () {
|
|
|
17990
17981
|
};
|
|
17991
17982
|
}
|
|
17992
17983
|
}]);
|
|
17993
|
-
return CircleRoi;
|
|
17994
17984
|
}();
|
|
17995
17985
|
CircleRoi.toolType = CIRCLEROI;
|
|
17996
17986
|
CircleRoi.utilityToolType = CIRCLEROI;
|
|
@@ -18011,12 +18001,12 @@ CircleRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier) {
|
|
|
18011
18001
|
MeasurementReport$3.registerTool(CircleRoi);
|
|
18012
18002
|
|
|
18013
18003
|
var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
18014
|
-
_inherits(Point, _TID300Measurement);
|
|
18015
18004
|
function Point() {
|
|
18016
18005
|
_classCallCheck(this, Point);
|
|
18017
18006
|
return _callSuper(this, Point, arguments);
|
|
18018
18007
|
}
|
|
18019
|
-
|
|
18008
|
+
_inherits(Point, _TID300Measurement);
|
|
18009
|
+
return _createClass(Point, [{
|
|
18020
18010
|
key: "contentItem",
|
|
18021
18011
|
value: function contentItem() {
|
|
18022
18012
|
var _this$props = this.props,
|
|
@@ -18057,7 +18047,6 @@ var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
18057
18047
|
}]);
|
|
18058
18048
|
}
|
|
18059
18049
|
}]);
|
|
18060
|
-
return Point;
|
|
18061
18050
|
}(TID300Measurement);
|
|
18062
18051
|
|
|
18063
18052
|
var ARROW_ANNOTATE$1 = "ArrowAnnotate";
|
|
@@ -18066,7 +18055,7 @@ var ArrowAnnotate$2 = /*#__PURE__*/function () {
|
|
|
18066
18055
|
function ArrowAnnotate() {
|
|
18067
18056
|
_classCallCheck(this, ArrowAnnotate);
|
|
18068
18057
|
}
|
|
18069
|
-
_createClass(ArrowAnnotate, null, [{
|
|
18058
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
18070
18059
|
key: "getMeasurementData",
|
|
18071
18060
|
value: function getMeasurementData(MeasurementGroup) {
|
|
18072
18061
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -18131,7 +18120,6 @@ var ArrowAnnotate$2 = /*#__PURE__*/function () {
|
|
|
18131
18120
|
return TID300RepresentationArguments;
|
|
18132
18121
|
}
|
|
18133
18122
|
}]);
|
|
18134
|
-
return ArrowAnnotate;
|
|
18135
18123
|
}();
|
|
18136
18124
|
ArrowAnnotate$2.toolType = ARROW_ANNOTATE$1;
|
|
18137
18125
|
ArrowAnnotate$2.utilityToolType = ARROW_ANNOTATE$1;
|
|
@@ -21999,12 +21987,12 @@ function fillSegmentation(segmentation, inputLabelmaps3D) {
|
|
|
21999
21987
|
}
|
|
22000
21988
|
|
|
22001
21989
|
var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
22002
|
-
_inherits(CobbAngle, _OpenPolyline);
|
|
22003
21990
|
function CobbAngle() {
|
|
22004
21991
|
_classCallCheck(this, CobbAngle);
|
|
22005
21992
|
return _callSuper(this, CobbAngle, arguments);
|
|
22006
21993
|
}
|
|
22007
|
-
|
|
21994
|
+
_inherits(CobbAngle, _OpenPolyline);
|
|
21995
|
+
return _createClass(CobbAngle, [{
|
|
22008
21996
|
key: "getPoints",
|
|
22009
21997
|
value: function getPoints() {
|
|
22010
21998
|
var _this$props = this.props,
|
|
@@ -22038,7 +22026,6 @@ var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
22038
22026
|
};
|
|
22039
22027
|
}
|
|
22040
22028
|
}]);
|
|
22041
|
-
return CobbAngle;
|
|
22042
22029
|
}(OpenPolyline);
|
|
22043
22030
|
|
|
22044
22031
|
var COBB_ANGLE = "CobbAngle";
|
|
@@ -22048,7 +22035,7 @@ var CobbAngle = /*#__PURE__*/function () {
|
|
|
22048
22035
|
}
|
|
22049
22036
|
|
|
22050
22037
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22051
|
-
_createClass(CobbAngle, null, [{
|
|
22038
|
+
return _createClass(CobbAngle, null, [{
|
|
22052
22039
|
key: "getMeasurementData",
|
|
22053
22040
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22054
22041
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22113,7 +22100,6 @@ var CobbAngle = /*#__PURE__*/function () {
|
|
|
22113
22100
|
};
|
|
22114
22101
|
}
|
|
22115
22102
|
}]);
|
|
22116
|
-
return CobbAngle;
|
|
22117
22103
|
}();
|
|
22118
22104
|
CobbAngle.toolType = COBB_ANGLE;
|
|
22119
22105
|
CobbAngle.utilityToolType = COBB_ANGLE;
|
|
@@ -22144,7 +22130,7 @@ var Angle = /*#__PURE__*/function () {
|
|
|
22144
22130
|
* @param MeasurementGroup
|
|
22145
22131
|
* @returns
|
|
22146
22132
|
*/
|
|
22147
|
-
_createClass(Angle, null, [{
|
|
22133
|
+
return _createClass(Angle, null, [{
|
|
22148
22134
|
key: "getMeasurementData",
|
|
22149
22135
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22150
22136
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22202,7 +22188,6 @@ var Angle = /*#__PURE__*/function () {
|
|
|
22202
22188
|
};
|
|
22203
22189
|
}
|
|
22204
22190
|
}]);
|
|
22205
|
-
return Angle;
|
|
22206
22191
|
}();
|
|
22207
22192
|
Angle.toolType = ANGLE;
|
|
22208
22193
|
Angle.utilityToolType = ANGLE;
|
|
@@ -22226,7 +22211,7 @@ var RectangleRoi = /*#__PURE__*/function () {
|
|
|
22226
22211
|
function RectangleRoi() {
|
|
22227
22212
|
_classCallCheck(this, RectangleRoi);
|
|
22228
22213
|
}
|
|
22229
|
-
_createClass(RectangleRoi, null, [{
|
|
22214
|
+
return _createClass(RectangleRoi, null, [{
|
|
22230
22215
|
key: "getMeasurementData",
|
|
22231
22216
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22232
22217
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22295,7 +22280,6 @@ var RectangleRoi = /*#__PURE__*/function () {
|
|
|
22295
22280
|
};
|
|
22296
22281
|
}
|
|
22297
22282
|
}]);
|
|
22298
|
-
return RectangleRoi;
|
|
22299
22283
|
}();
|
|
22300
22284
|
RectangleRoi.toolType = "RectangleRoi";
|
|
22301
22285
|
RectangleRoi.utilityToolType = "RectangleRoi";
|
|
@@ -22415,7 +22399,7 @@ var MeasurementReport$2 = /*#__PURE__*/function () {
|
|
|
22415
22399
|
function MeasurementReport() {
|
|
22416
22400
|
_classCallCheck(this, MeasurementReport);
|
|
22417
22401
|
}
|
|
22418
|
-
_createClass(MeasurementReport, null, [{
|
|
22402
|
+
return _createClass(MeasurementReport, null, [{
|
|
22419
22403
|
key: "getCornerstoneLabelFromDefaultState",
|
|
22420
22404
|
value: function getCornerstoneLabelFromDefaultState(defaultState) {
|
|
22421
22405
|
var _defaultState$finding = defaultState.findingSites,
|
|
@@ -22666,7 +22650,6 @@ var MeasurementReport$2 = /*#__PURE__*/function () {
|
|
|
22666
22650
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
22667
22651
|
}
|
|
22668
22652
|
}]);
|
|
22669
|
-
return MeasurementReport;
|
|
22670
22653
|
}();
|
|
22671
22654
|
MeasurementReport$2.MEASUREMENT_BY_TOOLTYPE = {};
|
|
22672
22655
|
MeasurementReport$2.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -22682,7 +22665,7 @@ var Length = /*#__PURE__*/function () {
|
|
|
22682
22665
|
}
|
|
22683
22666
|
|
|
22684
22667
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22685
|
-
_createClass(Length, null, [{
|
|
22668
|
+
return _createClass(Length, null, [{
|
|
22686
22669
|
key: "getMeasurementData",
|
|
22687
22670
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22688
22671
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Length.toolType),
|
|
@@ -22749,7 +22732,6 @@ var Length = /*#__PURE__*/function () {
|
|
|
22749
22732
|
};
|
|
22750
22733
|
}
|
|
22751
22734
|
}]);
|
|
22752
|
-
return Length;
|
|
22753
22735
|
}();
|
|
22754
22736
|
Length.toolType = LENGTH;
|
|
22755
22737
|
Length.utilityToolType = LENGTH;
|
|
@@ -22777,7 +22759,7 @@ var Bidirectional = /*#__PURE__*/function () {
|
|
|
22777
22759
|
function Bidirectional() {
|
|
22778
22760
|
_classCallCheck(this, Bidirectional);
|
|
22779
22761
|
}
|
|
22780
|
-
_createClass(Bidirectional, null, [{
|
|
22762
|
+
return _createClass(Bidirectional, null, [{
|
|
22781
22763
|
key: "getMeasurementData",
|
|
22782
22764
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22783
22765
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Bidirectional.toolType),
|
|
@@ -22888,7 +22870,6 @@ var Bidirectional = /*#__PURE__*/function () {
|
|
|
22888
22870
|
};
|
|
22889
22871
|
}
|
|
22890
22872
|
}]);
|
|
22891
|
-
return Bidirectional;
|
|
22892
22873
|
}();
|
|
22893
22874
|
Bidirectional.toolType = BIDIRECTIONAL;
|
|
22894
22875
|
Bidirectional.utilityToolType = BIDIRECTIONAL;
|
|
@@ -23773,7 +23754,7 @@ var EllipticalROI = /*#__PURE__*/function () {
|
|
|
23773
23754
|
function EllipticalROI() {
|
|
23774
23755
|
_classCallCheck(this, EllipticalROI);
|
|
23775
23756
|
}
|
|
23776
|
-
_createClass(EllipticalROI, null, [{
|
|
23757
|
+
return _createClass(EllipticalROI, null, [{
|
|
23777
23758
|
key: "getMeasurementData",
|
|
23778
23759
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
23779
23760
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, EllipticalROI.toolType),
|
|
@@ -23919,7 +23900,6 @@ var EllipticalROI = /*#__PURE__*/function () {
|
|
|
23919
23900
|
};
|
|
23920
23901
|
}
|
|
23921
23902
|
}]);
|
|
23922
|
-
return EllipticalROI;
|
|
23923
23903
|
}();
|
|
23924
23904
|
EllipticalROI.toolType = ELLIPTICALROI;
|
|
23925
23905
|
EllipticalROI.utilityToolType = ELLIPTICALROI;
|
|
@@ -23943,12 +23923,12 @@ EllipticalROI.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifie
|
|
|
23943
23923
|
MeasurementReport$2.registerTool(EllipticalROI);
|
|
23944
23924
|
|
|
23945
23925
|
var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
23946
|
-
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23947
23926
|
function ArrowAnnotate() {
|
|
23948
23927
|
_classCallCheck(this, ArrowAnnotate);
|
|
23949
23928
|
return _callSuper(this, ArrowAnnotate, arguments);
|
|
23950
23929
|
}
|
|
23951
|
-
|
|
23930
|
+
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23931
|
+
return _createClass(ArrowAnnotate, [{
|
|
23952
23932
|
key: "getPoints",
|
|
23953
23933
|
value: function getPoints() {
|
|
23954
23934
|
return this.props.points;
|
|
@@ -23975,7 +23955,6 @@ var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
23975
23955
|
};
|
|
23976
23956
|
}
|
|
23977
23957
|
}]);
|
|
23978
|
-
return ArrowAnnotate;
|
|
23979
23958
|
}(OpenPolyline);
|
|
23980
23959
|
|
|
23981
23960
|
var ARROW_ANNOTATE = "ArrowAnnotate";
|
|
@@ -23986,7 +23965,7 @@ var ArrowAnnotate = /*#__PURE__*/function () {
|
|
|
23986
23965
|
function ArrowAnnotate() {
|
|
23987
23966
|
_classCallCheck(this, ArrowAnnotate);
|
|
23988
23967
|
}
|
|
23989
|
-
_createClass(ArrowAnnotate, null, [{
|
|
23968
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
23990
23969
|
key: "getMeasurementData",
|
|
23991
23970
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
23992
23971
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, ArrowAnnotate.toolType),
|
|
@@ -24074,7 +24053,6 @@ var ArrowAnnotate = /*#__PURE__*/function () {
|
|
|
24074
24053
|
return TID300RepresentationArguments;
|
|
24075
24054
|
}
|
|
24076
24055
|
}]);
|
|
24077
|
-
return ArrowAnnotate;
|
|
24078
24056
|
}();
|
|
24079
24057
|
ArrowAnnotate.toolType = ARROW_ANNOTATE;
|
|
24080
24058
|
ArrowAnnotate.utilityToolType = ARROW_ANNOTATE;
|
|
@@ -24100,7 +24078,7 @@ var Probe = /*#__PURE__*/function () {
|
|
|
24100
24078
|
function Probe() {
|
|
24101
24079
|
_classCallCheck(this, Probe);
|
|
24102
24080
|
}
|
|
24103
|
-
_createClass(Probe, null, [{
|
|
24081
|
+
return _createClass(Probe, null, [{
|
|
24104
24082
|
key: "getMeasurementData",
|
|
24105
24083
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24106
24084
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Probe.toolType),
|
|
@@ -24155,7 +24133,6 @@ var Probe = /*#__PURE__*/function () {
|
|
|
24155
24133
|
return TID300RepresentationArguments;
|
|
24156
24134
|
}
|
|
24157
24135
|
}]);
|
|
24158
|
-
return Probe;
|
|
24159
24136
|
}();
|
|
24160
24137
|
Probe.toolType = PROBE;
|
|
24161
24138
|
Probe.utilityToolType = PROBE;
|
|
@@ -24182,7 +24159,7 @@ var PlanarFreehandROI = /*#__PURE__*/function () {
|
|
|
24182
24159
|
function PlanarFreehandROI() {
|
|
24183
24160
|
_classCallCheck(this, PlanarFreehandROI);
|
|
24184
24161
|
}
|
|
24185
|
-
_createClass(PlanarFreehandROI, null, [{
|
|
24162
|
+
return _createClass(PlanarFreehandROI, null, [{
|
|
24186
24163
|
key: "getMeasurementData",
|
|
24187
24164
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24188
24165
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, PlanarFreehandROI.toolType),
|
|
@@ -24259,7 +24236,6 @@ var PlanarFreehandROI = /*#__PURE__*/function () {
|
|
|
24259
24236
|
};
|
|
24260
24237
|
}
|
|
24261
24238
|
}]);
|
|
24262
|
-
return PlanarFreehandROI;
|
|
24263
24239
|
}();
|
|
24264
24240
|
PlanarFreehandROI.toolType = PLANARFREEHANDROI;
|
|
24265
24241
|
PlanarFreehandROI.utilityToolType = PLANARFREEHANDROI;
|
|
@@ -24421,7 +24397,7 @@ var Segmentation = /*#__PURE__*/function () {
|
|
|
24421
24397
|
* @param dataset
|
|
24422
24398
|
* @return {{}}
|
|
24423
24399
|
*/
|
|
24424
|
-
_createClass(Segmentation, null, [{
|
|
24400
|
+
return _createClass(Segmentation, null, [{
|
|
24425
24401
|
key: "generateSegments",
|
|
24426
24402
|
value: function generateSegments(dataset) {
|
|
24427
24403
|
if (dataset.SegmentSequence.constructor.name !== "Array") {
|
|
@@ -24469,7 +24445,6 @@ var Segmentation = /*#__PURE__*/function () {
|
|
|
24469
24445
|
return segments;
|
|
24470
24446
|
}
|
|
24471
24447
|
}]);
|
|
24472
|
-
return Segmentation;
|
|
24473
24448
|
}();
|
|
24474
24449
|
|
|
24475
24450
|
var VTKjs = {
|
|
@@ -24495,7 +24470,7 @@ var MeasurementReport$1 = /*#__PURE__*/function () {
|
|
|
24495
24470
|
function MeasurementReport() {
|
|
24496
24471
|
_classCallCheck(this, MeasurementReport);
|
|
24497
24472
|
}
|
|
24498
|
-
_createClass(MeasurementReport, null, [{
|
|
24473
|
+
return _createClass(MeasurementReport, null, [{
|
|
24499
24474
|
key: "generateReport",
|
|
24500
24475
|
value: function generateReport(rois, metadataProvider, options) {
|
|
24501
24476
|
// Input is all ROIS returned via viewer.getALLROIs()
|
|
@@ -24634,7 +24609,6 @@ var MeasurementReport$1 = /*#__PURE__*/function () {
|
|
|
24634
24609
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.graphicType] = toolClass.utilityToolType;
|
|
24635
24610
|
}
|
|
24636
24611
|
}]);
|
|
24637
|
-
return MeasurementReport;
|
|
24638
24612
|
}();
|
|
24639
24613
|
MeasurementReport$1.MEASUREMENT_BY_TOOLTYPE = {};
|
|
24640
24614
|
MeasurementReport$1.MICROSCOPY_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -24644,7 +24618,7 @@ var Polyline = /*#__PURE__*/function () {
|
|
|
24644
24618
|
function Polyline() {
|
|
24645
24619
|
_classCallCheck(this, Polyline);
|
|
24646
24620
|
}
|
|
24647
|
-
_createClass(Polyline, null, [{
|
|
24621
|
+
return _createClass(Polyline, null, [{
|
|
24648
24622
|
key: "getMeasurementData",
|
|
24649
24623
|
value: function getMeasurementData(measurementContent) {
|
|
24650
24624
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24681,7 +24655,6 @@ var Polyline = /*#__PURE__*/function () {
|
|
|
24681
24655
|
};
|
|
24682
24656
|
}
|
|
24683
24657
|
}]);
|
|
24684
|
-
return Polyline;
|
|
24685
24658
|
}();
|
|
24686
24659
|
Polyline.graphicType = "POLYLINE";
|
|
24687
24660
|
Polyline.toolType = "Polyline";
|
|
@@ -24690,12 +24663,12 @@ Polyline.TID300Representation = Polyline$1;
|
|
|
24690
24663
|
MeasurementReport$1.registerTool(Polyline);
|
|
24691
24664
|
|
|
24692
24665
|
var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
24693
|
-
_inherits(Polygon, _TID300Measurement);
|
|
24694
24666
|
function Polygon() {
|
|
24695
24667
|
_classCallCheck(this, Polygon);
|
|
24696
24668
|
return _callSuper(this, Polygon, arguments);
|
|
24697
24669
|
}
|
|
24698
|
-
|
|
24670
|
+
_inherits(Polygon, _TID300Measurement);
|
|
24671
|
+
return _createClass(Polygon, [{
|
|
24699
24672
|
key: "contentItem",
|
|
24700
24673
|
value: function contentItem() {
|
|
24701
24674
|
var _this$props = this.props,
|
|
@@ -24749,14 +24722,13 @@ var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
24749
24722
|
}]);
|
|
24750
24723
|
}
|
|
24751
24724
|
}]);
|
|
24752
|
-
return Polygon;
|
|
24753
24725
|
}(TID300Measurement);
|
|
24754
24726
|
|
|
24755
24727
|
var Polygon = /*#__PURE__*/function () {
|
|
24756
24728
|
function Polygon() {
|
|
24757
24729
|
_classCallCheck(this, Polygon);
|
|
24758
24730
|
}
|
|
24759
|
-
_createClass(Polygon, null, [{
|
|
24731
|
+
return _createClass(Polygon, null, [{
|
|
24760
24732
|
key: "getMeasurementData",
|
|
24761
24733
|
value: function getMeasurementData(measurementContent) {
|
|
24762
24734
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24793,7 +24765,6 @@ var Polygon = /*#__PURE__*/function () {
|
|
|
24793
24765
|
};
|
|
24794
24766
|
}
|
|
24795
24767
|
}]);
|
|
24796
|
-
return Polygon;
|
|
24797
24768
|
}();
|
|
24798
24769
|
Polygon.graphicType = "POLYGON";
|
|
24799
24770
|
Polygon.toolType = "Polygon";
|
|
@@ -24805,7 +24776,7 @@ var Point = /*#__PURE__*/function () {
|
|
|
24805
24776
|
function Point() {
|
|
24806
24777
|
_classCallCheck(this, Point);
|
|
24807
24778
|
}
|
|
24808
|
-
_createClass(Point, null, [{
|
|
24779
|
+
return _createClass(Point, null, [{
|
|
24809
24780
|
key: "getMeasurementData",
|
|
24810
24781
|
value: function getMeasurementData(measurementContent) {
|
|
24811
24782
|
var measurement = measurementContent.map(function (item) {
|
|
@@ -24833,7 +24804,6 @@ var Point = /*#__PURE__*/function () {
|
|
|
24833
24804
|
};
|
|
24834
24805
|
}
|
|
24835
24806
|
}]);
|
|
24836
|
-
return Point;
|
|
24837
24807
|
}();
|
|
24838
24808
|
Point.graphicType = "POINT";
|
|
24839
24809
|
Point.toolType = "Point";
|
|
@@ -24845,7 +24815,7 @@ var Circle = /*#__PURE__*/function () {
|
|
|
24845
24815
|
function Circle() {
|
|
24846
24816
|
_classCallCheck(this, Circle);
|
|
24847
24817
|
}
|
|
24848
|
-
_createClass(Circle, null, [{
|
|
24818
|
+
return _createClass(Circle, null, [{
|
|
24849
24819
|
key: "getMeasurementData",
|
|
24850
24820
|
value: function getMeasurementData(measurementContent) {
|
|
24851
24821
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24882,7 +24852,6 @@ var Circle = /*#__PURE__*/function () {
|
|
|
24882
24852
|
};
|
|
24883
24853
|
}
|
|
24884
24854
|
}]);
|
|
24885
|
-
return Circle;
|
|
24886
24855
|
}();
|
|
24887
24856
|
Circle.graphicType = "CIRCLE";
|
|
24888
24857
|
Circle.toolType = "Circle";
|
|
@@ -24894,7 +24863,7 @@ var Ellipse = /*#__PURE__*/function () {
|
|
|
24894
24863
|
function Ellipse() {
|
|
24895
24864
|
_classCallCheck(this, Ellipse);
|
|
24896
24865
|
}
|
|
24897
|
-
_createClass(Ellipse, null, [{
|
|
24866
|
+
return _createClass(Ellipse, null, [{
|
|
24898
24867
|
key: "getMeasurementData",
|
|
24899
24868
|
value: function getMeasurementData(measurementContent) {
|
|
24900
24869
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24931,7 +24900,6 @@ var Ellipse = /*#__PURE__*/function () {
|
|
|
24931
24900
|
};
|
|
24932
24901
|
}
|
|
24933
24902
|
}]);
|
|
24934
|
-
return Ellipse;
|
|
24935
24903
|
}();
|
|
24936
24904
|
Ellipse.graphicType = "ELLIPSE";
|
|
24937
24905
|
Ellipse.toolType = "Ellipse";
|
|
@@ -24961,12 +24929,12 @@ var TID1500 = {
|
|
|
24961
24929
|
};
|
|
24962
24930
|
|
|
24963
24931
|
var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
24964
|
-
_inherits(Calibration, _OpenPolyline);
|
|
24965
24932
|
function Calibration() {
|
|
24966
24933
|
_classCallCheck(this, Calibration);
|
|
24967
24934
|
return _callSuper(this, Calibration, arguments);
|
|
24968
24935
|
}
|
|
24969
|
-
|
|
24936
|
+
_inherits(Calibration, _OpenPolyline);
|
|
24937
|
+
return _createClass(Calibration, [{
|
|
24970
24938
|
key: "getPoints",
|
|
24971
24939
|
value: function getPoints() {
|
|
24972
24940
|
var _this$props = this.props,
|
|
@@ -24996,7 +24964,6 @@ var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
24996
24964
|
};
|
|
24997
24965
|
}
|
|
24998
24966
|
}]);
|
|
24999
|
-
return Calibration;
|
|
25000
24967
|
}(OpenPolyline);
|
|
25001
24968
|
|
|
25002
24969
|
// To be implemented:
|
|
@@ -25405,7 +25372,7 @@ var Code = /*#__PURE__*/function () {
|
|
|
25405
25372
|
this[_schemeDesignator] = options.schemeDesignator;
|
|
25406
25373
|
this[_schemeVersion] = options.schemeVersion || null;
|
|
25407
25374
|
}
|
|
25408
|
-
_createClass(Code, [{
|
|
25375
|
+
return _createClass(Code, [{
|
|
25409
25376
|
key: "value",
|
|
25410
25377
|
get: function get() {
|
|
25411
25378
|
return this[_value];
|
|
@@ -25426,7 +25393,6 @@ var Code = /*#__PURE__*/function () {
|
|
|
25426
25393
|
return this[_schemeVersion];
|
|
25427
25394
|
}
|
|
25428
25395
|
}]);
|
|
25429
|
-
return Code;
|
|
25430
25396
|
}();
|
|
25431
25397
|
var CodedConcept = /*#__PURE__*/function () {
|
|
25432
25398
|
function CodedConcept(options) {
|
|
@@ -25447,7 +25413,7 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25447
25413
|
this.CodingSchemeVersion = options.schemeVersion;
|
|
25448
25414
|
}
|
|
25449
25415
|
}
|
|
25450
|
-
_createClass(CodedConcept, [{
|
|
25416
|
+
return _createClass(CodedConcept, [{
|
|
25451
25417
|
key: "equals",
|
|
25452
25418
|
value: function equals(other) {
|
|
25453
25419
|
if (other.value === this.value && other.schemeDesignator === this.schemeDesignator) {
|
|
@@ -25479,7 +25445,6 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25479
25445
|
return this.CodingSchemeVersion;
|
|
25480
25446
|
}
|
|
25481
25447
|
}]);
|
|
25482
|
-
return CodedConcept;
|
|
25483
25448
|
}();
|
|
25484
25449
|
|
|
25485
25450
|
var coding = /*#__PURE__*/Object.freeze({
|
|
@@ -25572,7 +25537,6 @@ function DT(date) {
|
|
|
25572
25537
|
return DA(date) + TM(date);
|
|
25573
25538
|
}
|
|
25574
25539
|
var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
25575
|
-
_inherits(ContentSequence, _Array);
|
|
25576
25540
|
function ContentSequence() {
|
|
25577
25541
|
_classCallCheck(this, ContentSequence);
|
|
25578
25542
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -25583,6 +25547,7 @@ var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
|
25583
25547
|
|
|
25584
25548
|
// filterBy(options) {
|
|
25585
25549
|
// }
|
|
25550
|
+
_inherits(ContentSequence, _Array);
|
|
25586
25551
|
return _createClass(ContentSequence);
|
|
25587
25552
|
}(/*#__PURE__*/_wrapNativeSuper(Array));
|
|
25588
25553
|
var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
@@ -25616,7 +25581,6 @@ var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
|
25616
25581
|
// }
|
|
25617
25582
|
);
|
|
25618
25583
|
var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
25619
|
-
_inherits(CodeContentItem, _ContentItem);
|
|
25620
25584
|
function CodeContentItem(options) {
|
|
25621
25585
|
var _this;
|
|
25622
25586
|
_classCallCheck(this, CodeContentItem);
|
|
@@ -25634,10 +25598,10 @@ var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
|
25634
25598
|
_this.ConceptCodeSequence = addAccessors([options.value]);
|
|
25635
25599
|
return _this;
|
|
25636
25600
|
}
|
|
25601
|
+
_inherits(CodeContentItem, _ContentItem);
|
|
25637
25602
|
return _createClass(CodeContentItem);
|
|
25638
25603
|
}(ContentItem);
|
|
25639
25604
|
var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
25640
|
-
_inherits(TextContentItem, _ContentItem2);
|
|
25641
25605
|
function TextContentItem(options) {
|
|
25642
25606
|
var _this2;
|
|
25643
25607
|
_classCallCheck(this, TextContentItem);
|
|
@@ -25655,10 +25619,10 @@ var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
|
25655
25619
|
_this2.TextValue = options.value;
|
|
25656
25620
|
return _this2;
|
|
25657
25621
|
}
|
|
25622
|
+
_inherits(TextContentItem, _ContentItem2);
|
|
25658
25623
|
return _createClass(TextContentItem);
|
|
25659
25624
|
}(ContentItem);
|
|
25660
25625
|
var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
25661
|
-
_inherits(PNameContentItem, _ContentItem3);
|
|
25662
25626
|
function PNameContentItem(options) {
|
|
25663
25627
|
var _this3;
|
|
25664
25628
|
_classCallCheck(this, PNameContentItem);
|
|
@@ -25676,10 +25640,10 @@ var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
|
25676
25640
|
_this3.PersonName = options.value;
|
|
25677
25641
|
return _this3;
|
|
25678
25642
|
}
|
|
25643
|
+
_inherits(PNameContentItem, _ContentItem3);
|
|
25679
25644
|
return _createClass(PNameContentItem);
|
|
25680
25645
|
}(ContentItem);
|
|
25681
25646
|
var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
25682
|
-
_inherits(TimeContentItem, _ContentItem4);
|
|
25683
25647
|
function TimeContentItem(options) {
|
|
25684
25648
|
var _this4;
|
|
25685
25649
|
_classCallCheck(this, TimeContentItem);
|
|
@@ -25697,10 +25661,10 @@ var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
|
25697
25661
|
_this4.Time = TM(options.value);
|
|
25698
25662
|
return _this4;
|
|
25699
25663
|
}
|
|
25664
|
+
_inherits(TimeContentItem, _ContentItem4);
|
|
25700
25665
|
return _createClass(TimeContentItem);
|
|
25701
25666
|
}(ContentItem);
|
|
25702
25667
|
var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
25703
|
-
_inherits(DateContentItem, _ContentItem5);
|
|
25704
25668
|
function DateContentItem(options) {
|
|
25705
25669
|
var _this5;
|
|
25706
25670
|
_classCallCheck(this, DateContentItem);
|
|
@@ -25718,10 +25682,10 @@ var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
|
25718
25682
|
_this5.Date = DA(options.value);
|
|
25719
25683
|
return _this5;
|
|
25720
25684
|
}
|
|
25685
|
+
_inherits(DateContentItem, _ContentItem5);
|
|
25721
25686
|
return _createClass(DateContentItem);
|
|
25722
25687
|
}(ContentItem);
|
|
25723
25688
|
var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
25724
|
-
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25725
25689
|
function DateTimeContentItem(options) {
|
|
25726
25690
|
var _this6;
|
|
25727
25691
|
_classCallCheck(this, DateTimeContentItem);
|
|
@@ -25739,10 +25703,10 @@ var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
|
25739
25703
|
_this6.DateTime = DT(options.value);
|
|
25740
25704
|
return _this6;
|
|
25741
25705
|
}
|
|
25706
|
+
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25742
25707
|
return _createClass(DateTimeContentItem);
|
|
25743
25708
|
}(ContentItem);
|
|
25744
25709
|
var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
25745
|
-
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25746
25710
|
function UIDRefContentItem(options) {
|
|
25747
25711
|
var _this7;
|
|
25748
25712
|
_classCallCheck(this, UIDRefContentItem);
|
|
@@ -25760,10 +25724,10 @@ var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
|
25760
25724
|
_this7.UID = options.value;
|
|
25761
25725
|
return _this7;
|
|
25762
25726
|
}
|
|
25727
|
+
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25763
25728
|
return _createClass(UIDRefContentItem);
|
|
25764
25729
|
}(ContentItem);
|
|
25765
25730
|
var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
25766
|
-
_inherits(NumContentItem, _ContentItem8);
|
|
25767
25731
|
function NumContentItem(options) {
|
|
25768
25732
|
var _this8;
|
|
25769
25733
|
_classCallCheck(this, NumContentItem);
|
|
@@ -25799,10 +25763,10 @@ var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
|
25799
25763
|
}
|
|
25800
25764
|
return _this8;
|
|
25801
25765
|
}
|
|
25766
|
+
_inherits(NumContentItem, _ContentItem8);
|
|
25802
25767
|
return _createClass(NumContentItem);
|
|
25803
25768
|
}(ContentItem);
|
|
25804
25769
|
var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
25805
|
-
_inherits(ContainerContentItem, _ContentItem9);
|
|
25806
25770
|
function ContainerContentItem(options) {
|
|
25807
25771
|
var _this9;
|
|
25808
25772
|
_classCallCheck(this, ContainerContentItem);
|
|
@@ -25827,10 +25791,10 @@ var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
|
25827
25791
|
}
|
|
25828
25792
|
return _this9;
|
|
25829
25793
|
}
|
|
25794
|
+
_inherits(ContainerContentItem, _ContentItem9);
|
|
25830
25795
|
return _createClass(ContainerContentItem);
|
|
25831
25796
|
}(ContentItem);
|
|
25832
25797
|
var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
25833
|
-
_inherits(CompositeContentItem, _ContentItem0);
|
|
25834
25798
|
function CompositeContentItem(options) {
|
|
25835
25799
|
var _this0;
|
|
25836
25800
|
_classCallCheck(this, CompositeContentItem);
|
|
@@ -25857,10 +25821,10 @@ var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
|
25857
25821
|
_this0.ReferenceSOPSequence = [item];
|
|
25858
25822
|
return _this0;
|
|
25859
25823
|
}
|
|
25824
|
+
_inherits(CompositeContentItem, _ContentItem0);
|
|
25860
25825
|
return _createClass(CompositeContentItem);
|
|
25861
25826
|
}(ContentItem);
|
|
25862
25827
|
var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
25863
|
-
_inherits(ImageContentItem, _ContentItem1);
|
|
25864
25828
|
function ImageContentItem(options) {
|
|
25865
25829
|
var _this1;
|
|
25866
25830
|
_classCallCheck(this, ImageContentItem);
|
|
@@ -25901,10 +25865,10 @@ var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
|
25901
25865
|
_this1.ReferencedSOPSequence = [item];
|
|
25902
25866
|
return _this1;
|
|
25903
25867
|
}
|
|
25868
|
+
_inherits(ImageContentItem, _ContentItem1);
|
|
25904
25869
|
return _createClass(ImageContentItem);
|
|
25905
25870
|
}(ContentItem);
|
|
25906
25871
|
var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
25907
|
-
_inherits(ScoordContentItem, _ContentItem10);
|
|
25908
25872
|
function ScoordContentItem(options) {
|
|
25909
25873
|
var _this10;
|
|
25910
25874
|
_classCallCheck(this, ScoordContentItem);
|
|
@@ -25948,10 +25912,10 @@ var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
|
25948
25912
|
}
|
|
25949
25913
|
return _this10;
|
|
25950
25914
|
}
|
|
25915
|
+
_inherits(ScoordContentItem, _ContentItem10);
|
|
25951
25916
|
return _createClass(ScoordContentItem);
|
|
25952
25917
|
}(ContentItem);
|
|
25953
25918
|
var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
25954
|
-
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
25955
25919
|
function Scoord3DContentItem(options) {
|
|
25956
25920
|
var _this11;
|
|
25957
25921
|
_classCallCheck(this, Scoord3DContentItem);
|
|
@@ -25995,10 +25959,10 @@ var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
|
25995
25959
|
}
|
|
25996
25960
|
return _this11;
|
|
25997
25961
|
}
|
|
25962
|
+
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
25998
25963
|
return _createClass(Scoord3DContentItem);
|
|
25999
25964
|
}(ContentItem);
|
|
26000
25965
|
var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
26001
|
-
_inherits(TcoordContentItem, _ContentItem12);
|
|
26002
25966
|
function TcoordContentItem(options) {
|
|
26003
25967
|
var _this12;
|
|
26004
25968
|
_classCallCheck(this, TcoordContentItem);
|
|
@@ -26035,6 +25999,7 @@ var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
|
26035
25999
|
}
|
|
26036
26000
|
return _this12;
|
|
26037
26001
|
}
|
|
26002
|
+
_inherits(TcoordContentItem, _ContentItem12);
|
|
26038
26003
|
return _createClass(TcoordContentItem);
|
|
26039
26004
|
}(ContentItem);
|
|
26040
26005
|
|
|
@@ -26064,7 +26029,6 @@ var valueTypes = /*#__PURE__*/Object.freeze({
|
|
|
26064
26029
|
});
|
|
26065
26030
|
|
|
26066
26031
|
var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
|
|
26067
|
-
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26068
26032
|
function LongitudinalTemporalOffsetFromEvent(options) {
|
|
26069
26033
|
var _this;
|
|
26070
26034
|
_classCallCheck(this, LongitudinalTemporalOffsetFromEvent);
|
|
@@ -26091,10 +26055,10 @@ var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem
|
|
|
26091
26055
|
_this.ContentSequence.push(item);
|
|
26092
26056
|
return _this;
|
|
26093
26057
|
}
|
|
26058
|
+
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26094
26059
|
return _createClass(LongitudinalTemporalOffsetFromEvent);
|
|
26095
26060
|
}(NumContentItem);
|
|
26096
26061
|
var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
26097
|
-
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26098
26062
|
function SourceImageForRegion(options) {
|
|
26099
26063
|
_classCallCheck(this, SourceImageForRegion);
|
|
26100
26064
|
return _callSuper(this, SourceImageForRegion, [{
|
|
@@ -26109,10 +26073,10 @@ var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
|
26109
26073
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26110
26074
|
}]);
|
|
26111
26075
|
}
|
|
26076
|
+
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26112
26077
|
return _createClass(SourceImageForRegion);
|
|
26113
26078
|
}(ImageContentItem);
|
|
26114
26079
|
var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
26115
|
-
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26116
26080
|
function SourceImageForSegmentation(options) {
|
|
26117
26081
|
_classCallCheck(this, SourceImageForSegmentation);
|
|
26118
26082
|
return _callSuper(this, SourceImageForSegmentation, [{
|
|
@@ -26127,10 +26091,10 @@ var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
|
26127
26091
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26128
26092
|
}]);
|
|
26129
26093
|
}
|
|
26094
|
+
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26130
26095
|
return _createClass(SourceImageForSegmentation);
|
|
26131
26096
|
}(ImageContentItem);
|
|
26132
26097
|
var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
26133
|
-
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26134
26098
|
function SourceSeriesForSegmentation(options) {
|
|
26135
26099
|
_classCallCheck(this, SourceSeriesForSegmentation);
|
|
26136
26100
|
return _callSuper(this, SourceSeriesForSegmentation, [{
|
|
@@ -26143,10 +26107,10 @@ var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
|
26143
26107
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26144
26108
|
}]);
|
|
26145
26109
|
}
|
|
26110
|
+
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26146
26111
|
return _createClass(SourceSeriesForSegmentation);
|
|
26147
26112
|
}(UIDRefContentItem);
|
|
26148
26113
|
var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
26149
|
-
_inherits(ImageRegion, _ScoordContentItem);
|
|
26150
26114
|
function ImageRegion(options) {
|
|
26151
26115
|
var _this2;
|
|
26152
26116
|
_classCallCheck(this, ImageRegion);
|
|
@@ -26174,10 +26138,10 @@ var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
|
26174
26138
|
_this2.ContentSequence.push(options.sourceImage);
|
|
26175
26139
|
return _this2;
|
|
26176
26140
|
}
|
|
26141
|
+
_inherits(ImageRegion, _ScoordContentItem);
|
|
26177
26142
|
return _createClass(ImageRegion);
|
|
26178
26143
|
}(ScoordContentItem);
|
|
26179
26144
|
var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
26180
|
-
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26181
26145
|
function ImageRegion3D(options) {
|
|
26182
26146
|
var _this3;
|
|
26183
26147
|
_classCallCheck(this, ImageRegion3D);
|
|
@@ -26200,10 +26164,10 @@ var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
|
26200
26164
|
}
|
|
26201
26165
|
return _this3;
|
|
26202
26166
|
}
|
|
26167
|
+
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26203
26168
|
return _createClass(ImageRegion3D);
|
|
26204
26169
|
}(Scoord3DContentItem);
|
|
26205
26170
|
var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
26206
|
-
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26207
26171
|
function VolumeSurface(options) {
|
|
26208
26172
|
var _this4;
|
|
26209
26173
|
_classCallCheck(this, VolumeSurface);
|
|
@@ -26239,10 +26203,10 @@ var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
|
26239
26203
|
}
|
|
26240
26204
|
return _this4;
|
|
26241
26205
|
}
|
|
26206
|
+
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26242
26207
|
return _createClass(VolumeSurface);
|
|
26243
26208
|
}(Scoord3DContentItem);
|
|
26244
26209
|
var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem) {
|
|
26245
|
-
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26246
26210
|
function ReferencedRealWorldValueMap(options) {
|
|
26247
26211
|
_classCallCheck(this, ReferencedRealWorldValueMap);
|
|
26248
26212
|
return _callSuper(this, ReferencedRealWorldValueMap, [{
|
|
@@ -26256,10 +26220,10 @@ var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem)
|
|
|
26256
26220
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26257
26221
|
}]);
|
|
26258
26222
|
}
|
|
26223
|
+
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26259
26224
|
return _createClass(ReferencedRealWorldValueMap);
|
|
26260
26225
|
}(CompositeContentItem);
|
|
26261
26226
|
var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
26262
|
-
_inherits(FindingSite, _CodeContentItem);
|
|
26263
26227
|
function FindingSite(options) {
|
|
26264
26228
|
var _this5;
|
|
26265
26229
|
_classCallCheck(this, FindingSite);
|
|
@@ -26299,10 +26263,10 @@ var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
|
26299
26263
|
}
|
|
26300
26264
|
return _this5;
|
|
26301
26265
|
}
|
|
26266
|
+
_inherits(FindingSite, _CodeContentItem);
|
|
26302
26267
|
return _createClass(FindingSite);
|
|
26303
26268
|
}(CodeContentItem);
|
|
26304
26269
|
var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
26305
|
-
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26306
26270
|
function ReferencedSegmentationFrame(options) {
|
|
26307
26271
|
var _this6;
|
|
26308
26272
|
_classCallCheck(this, ReferencedSegmentationFrame);
|
|
@@ -26340,10 +26304,10 @@ var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
|
26340
26304
|
_this6.push(options.sourceImage);
|
|
26341
26305
|
return _this6;
|
|
26342
26306
|
}
|
|
26307
|
+
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26343
26308
|
return _createClass(ReferencedSegmentationFrame);
|
|
26344
26309
|
}(ContentSequence);
|
|
26345
26310
|
var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
26346
|
-
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26347
26311
|
function ReferencedSegmentation(options) {
|
|
26348
26312
|
var _this7;
|
|
26349
26313
|
_classCallCheck(this, ReferencedSegmentation);
|
|
@@ -26389,6 +26353,7 @@ var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
|
26389
26353
|
}
|
|
26390
26354
|
return _this7;
|
|
26391
26355
|
}
|
|
26356
|
+
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26392
26357
|
return _createClass(ReferencedSegmentation);
|
|
26393
26358
|
}(ContentSequence);
|
|
26394
26359
|
|
|
@@ -26408,7 +26373,6 @@ var contentItems = /*#__PURE__*/Object.freeze({
|
|
|
26408
26373
|
});
|
|
26409
26374
|
|
|
26410
26375
|
var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
26411
|
-
_inherits(Template, _ContentSequence);
|
|
26412
26376
|
function Template() {
|
|
26413
26377
|
_classCallCheck(this, Template);
|
|
26414
26378
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -26416,10 +26380,10 @@ var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
|
26416
26380
|
}
|
|
26417
26381
|
return _callSuper(this, Template, [].concat(args));
|
|
26418
26382
|
}
|
|
26383
|
+
_inherits(Template, _ContentSequence);
|
|
26419
26384
|
return _createClass(Template);
|
|
26420
26385
|
}(ContentSequence);
|
|
26421
26386
|
var Measurement = /*#__PURE__*/function (_Template) {
|
|
26422
|
-
_inherits(Measurement, _Template);
|
|
26423
26387
|
function Measurement(options) {
|
|
26424
26388
|
var _valueItem$ContentSeq;
|
|
26425
26389
|
var _this;
|
|
@@ -26519,10 +26483,10 @@ var Measurement = /*#__PURE__*/function (_Template) {
|
|
|
26519
26483
|
_this.push(valueItem);
|
|
26520
26484
|
return _this;
|
|
26521
26485
|
}
|
|
26486
|
+
_inherits(Measurement, _Template);
|
|
26522
26487
|
return _createClass(Measurement);
|
|
26523
26488
|
}(Template);
|
|
26524
26489
|
var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
26525
|
-
_inherits(MeasurementProperties, _Template2);
|
|
26526
26490
|
function MeasurementProperties(options) {
|
|
26527
26491
|
var _this2;
|
|
26528
26492
|
_classCallCheck(this, MeasurementProperties);
|
|
@@ -26603,10 +26567,10 @@ var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
|
26603
26567
|
}
|
|
26604
26568
|
return _this2;
|
|
26605
26569
|
}
|
|
26570
|
+
_inherits(MeasurementProperties, _Template2);
|
|
26606
26571
|
return _createClass(MeasurementProperties);
|
|
26607
26572
|
}(Template);
|
|
26608
26573
|
var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
26609
|
-
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26610
26574
|
function MeasurementStatisticalProperties(options) {
|
|
26611
26575
|
var _this5;
|
|
26612
26576
|
_classCallCheck(this, MeasurementStatisticalProperties);
|
|
@@ -26649,10 +26613,10 @@ var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
|
26649
26613
|
}
|
|
26650
26614
|
return _this5;
|
|
26651
26615
|
}
|
|
26616
|
+
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26652
26617
|
return _createClass(MeasurementStatisticalProperties);
|
|
26653
26618
|
}(Template);
|
|
26654
26619
|
var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
26655
|
-
_inherits(NormalRangeProperties, _Template4);
|
|
26656
26620
|
function NormalRangeProperties(options) {
|
|
26657
26621
|
var _this6;
|
|
26658
26622
|
_classCallCheck(this, NormalRangeProperties);
|
|
@@ -26695,10 +26659,10 @@ var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
|
26695
26659
|
}
|
|
26696
26660
|
return _this6;
|
|
26697
26661
|
}
|
|
26662
|
+
_inherits(NormalRangeProperties, _Template4);
|
|
26698
26663
|
return _createClass(NormalRangeProperties);
|
|
26699
26664
|
}(Template);
|
|
26700
26665
|
var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
26701
|
-
_inherits(ObservationContext, _Template5);
|
|
26702
26666
|
function ObservationContext(options) {
|
|
26703
26667
|
var _this8;
|
|
26704
26668
|
var _this7;
|
|
@@ -26727,10 +26691,10 @@ var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
|
26727
26691
|
}
|
|
26728
26692
|
return _this7;
|
|
26729
26693
|
}
|
|
26694
|
+
_inherits(ObservationContext, _Template5);
|
|
26730
26695
|
return _createClass(ObservationContext);
|
|
26731
26696
|
}(Template);
|
|
26732
26697
|
var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
26733
|
-
_inherits(ObserverContext, _Template6);
|
|
26734
26698
|
function ObserverContext(options) {
|
|
26735
26699
|
var _this10;
|
|
26736
26700
|
var _this1;
|
|
@@ -26781,10 +26745,10 @@ var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
|
26781
26745
|
(_this10 = _this1).push.apply(_this10, _toConsumableArray(options.observerIdentifyingAttributes));
|
|
26782
26746
|
return _this1;
|
|
26783
26747
|
}
|
|
26748
|
+
_inherits(ObserverContext, _Template6);
|
|
26784
26749
|
return _createClass(ObserverContext);
|
|
26785
26750
|
}(Template);
|
|
26786
26751
|
var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
26787
|
-
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26788
26752
|
function PersonObserverIdentifyingAttributes(options) {
|
|
26789
26753
|
var _this11;
|
|
26790
26754
|
_classCallCheck(this, PersonObserverIdentifyingAttributes);
|
|
@@ -26852,10 +26816,10 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
|
26852
26816
|
}
|
|
26853
26817
|
return _this11;
|
|
26854
26818
|
}
|
|
26819
|
+
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26855
26820
|
return _createClass(PersonObserverIdentifyingAttributes);
|
|
26856
26821
|
}(Template);
|
|
26857
26822
|
var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
26858
|
-
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26859
26823
|
function DeviceObserverIdentifyingAttributes(options) {
|
|
26860
26824
|
var _this12;
|
|
26861
26825
|
_classCallCheck(this, DeviceObserverIdentifyingAttributes);
|
|
@@ -26935,10 +26899,10 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
|
26935
26899
|
}
|
|
26936
26900
|
return _this12;
|
|
26937
26901
|
}
|
|
26902
|
+
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26938
26903
|
return _createClass(DeviceObserverIdentifyingAttributes);
|
|
26939
26904
|
}(Template);
|
|
26940
26905
|
var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
26941
|
-
_inherits(SubjectContext, _Template9);
|
|
26942
26906
|
function SubjectContext(options) {
|
|
26943
26907
|
var _this14;
|
|
26944
26908
|
var _this13;
|
|
@@ -26993,10 +26957,10 @@ var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
|
26993
26957
|
(_this14 = _this13).push.apply(_this14, _toConsumableArray(options.subjectClassSpecificContext));
|
|
26994
26958
|
return _this13;
|
|
26995
26959
|
}
|
|
26960
|
+
_inherits(SubjectContext, _Template9);
|
|
26996
26961
|
return _createClass(SubjectContext);
|
|
26997
26962
|
}(Template);
|
|
26998
26963
|
var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
26999
|
-
_inherits(SubjectContextFetus, _Template0);
|
|
27000
26964
|
function SubjectContextFetus(options) {
|
|
27001
26965
|
var _this15;
|
|
27002
26966
|
_classCallCheck(this, SubjectContextFetus);
|
|
@@ -27016,10 +26980,10 @@ var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
|
27016
26980
|
_this15.push(subjectIdItem);
|
|
27017
26981
|
return _this15;
|
|
27018
26982
|
}
|
|
26983
|
+
_inherits(SubjectContextFetus, _Template0);
|
|
27019
26984
|
return _createClass(SubjectContextFetus);
|
|
27020
26985
|
}(Template);
|
|
27021
26986
|
var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
27022
|
-
_inherits(SubjectContextSpecimen, _Template1);
|
|
27023
26987
|
function SubjectContextSpecimen(options) {
|
|
27024
26988
|
var _this16;
|
|
27025
26989
|
_classCallCheck(this, SubjectContextSpecimen);
|
|
@@ -27075,10 +27039,10 @@ var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
|
27075
27039
|
}
|
|
27076
27040
|
return _this16;
|
|
27077
27041
|
}
|
|
27042
|
+
_inherits(SubjectContextSpecimen, _Template1);
|
|
27078
27043
|
return _createClass(SubjectContextSpecimen);
|
|
27079
27044
|
}(Template);
|
|
27080
27045
|
var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
27081
|
-
_inherits(SubjectContextDevice, _Template10);
|
|
27082
27046
|
function SubjectContextDevice(options) {
|
|
27083
27047
|
var _this17;
|
|
27084
27048
|
_classCallCheck(this, SubjectContextDevice);
|
|
@@ -27158,10 +27122,10 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
|
27158
27122
|
}
|
|
27159
27123
|
return _this17;
|
|
27160
27124
|
}
|
|
27125
|
+
_inherits(SubjectContextDevice, _Template10);
|
|
27161
27126
|
return _createClass(SubjectContextDevice);
|
|
27162
27127
|
}(Template);
|
|
27163
27128
|
var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
27164
|
-
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27165
27129
|
function LanguageOfContentItemAndDescendants(options) {
|
|
27166
27130
|
var _this18;
|
|
27167
27131
|
_classCallCheck(this, LanguageOfContentItemAndDescendants);
|
|
@@ -27185,10 +27149,10 @@ var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
|
27185
27149
|
_this18.push(languageItem);
|
|
27186
27150
|
return _this18;
|
|
27187
27151
|
}
|
|
27152
|
+
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27188
27153
|
return _createClass(LanguageOfContentItemAndDescendants);
|
|
27189
27154
|
}(Template);
|
|
27190
27155
|
var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
|
|
27191
|
-
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27192
27156
|
function _MeasurementsAndQualitatitiveEvaluations(options) {
|
|
27193
27157
|
var _groupItem$ContentSeq;
|
|
27194
27158
|
var _this19;
|
|
@@ -27278,10 +27242,10 @@ var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template1
|
|
|
27278
27242
|
_this19.push(groupItem);
|
|
27279
27243
|
return _this19;
|
|
27280
27244
|
}
|
|
27245
|
+
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27281
27246
|
return _createClass(_MeasurementsAndQualitatitiveEvaluations);
|
|
27282
27247
|
}(Template);
|
|
27283
27248
|
var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_MeasurementsAndQuali) {
|
|
27284
|
-
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27285
27249
|
function _ROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27286
27250
|
var _this20;
|
|
27287
27251
|
_classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
|
|
@@ -27330,10 +27294,10 @@ var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_Measurem
|
|
|
27330
27294
|
_this20[0] = groupItem;
|
|
27331
27295
|
return _this20;
|
|
27332
27296
|
}
|
|
27297
|
+
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27333
27298
|
return _createClass(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27334
27299
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27335
27300
|
var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu) {
|
|
27336
|
-
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27337
27301
|
function PlanarROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27338
27302
|
_classCallCheck(this, PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27339
27303
|
var wereReferencesProvided = [options.referencedRegion !== undefined, options.referencedSegmentation !== undefined];
|
|
@@ -27357,10 +27321,10 @@ var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROI
|
|
|
27357
27321
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27358
27322
|
}]);
|
|
27359
27323
|
}
|
|
27324
|
+
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27360
27325
|
return _createClass(PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27361
27326
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27362
27327
|
var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu2) {
|
|
27363
|
-
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27364
27328
|
function VolumetricROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27365
27329
|
_classCallCheck(this, VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27366
27330
|
return _callSuper(this, VolumetricROIMeasurementsAndQualitativeEvaluations, [{
|
|
@@ -27375,10 +27339,10 @@ var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (
|
|
|
27375
27339
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27376
27340
|
}]);
|
|
27377
27341
|
}
|
|
27342
|
+
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27378
27343
|
return _createClass(VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27379
27344
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27380
27345
|
var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
|
|
27381
|
-
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27382
27346
|
function MeasurementsDerivedFromMultipleROIMeasurements(options) {
|
|
27383
27347
|
var _this21;
|
|
27384
27348
|
_classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
|
|
@@ -27415,10 +27379,10 @@ var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Tem
|
|
|
27415
27379
|
_this21.push(valueItem);
|
|
27416
27380
|
return _this21;
|
|
27417
27381
|
}
|
|
27382
|
+
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27418
27383
|
return _createClass(MeasurementsDerivedFromMultipleROIMeasurements);
|
|
27419
27384
|
}(Template);
|
|
27420
27385
|
var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_MeasurementsAndQuali2) {
|
|
27421
|
-
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27422
27386
|
function MeasurementAndQualitativeEvaluationGroup(options) {
|
|
27423
27387
|
_classCallCheck(this, MeasurementAndQualitativeEvaluationGroup);
|
|
27424
27388
|
return _callSuper(this, MeasurementAndQualitativeEvaluationGroup, [{
|
|
@@ -27431,10 +27395,10 @@ var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_Measureme
|
|
|
27431
27395
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27432
27396
|
}]);
|
|
27433
27397
|
}
|
|
27398
|
+
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27434
27399
|
return _createClass(MeasurementAndQualitativeEvaluationGroup);
|
|
27435
27400
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27436
27401
|
var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
27437
|
-
_inherits(ROIMeasurements, _Template14);
|
|
27438
27402
|
function ROIMeasurements(options) {
|
|
27439
27403
|
var _this22;
|
|
27440
27404
|
_classCallCheck(this, ROIMeasurements);
|
|
@@ -27479,10 +27443,10 @@ var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
|
27479
27443
|
});
|
|
27480
27444
|
return _this22;
|
|
27481
27445
|
}
|
|
27446
|
+
_inherits(ROIMeasurements, _Template14);
|
|
27482
27447
|
return _createClass(ROIMeasurements);
|
|
27483
27448
|
}(Template);
|
|
27484
27449
|
var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
27485
|
-
_inherits(MeasurementReport, _Template15);
|
|
27486
27450
|
function MeasurementReport(options) {
|
|
27487
27451
|
var _item$ContentSequence, _item$ContentSequence2, _item$ContentSequence3;
|
|
27488
27452
|
var _this23;
|
|
@@ -27575,10 +27539,10 @@ var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
|
27575
27539
|
_this23.push(item);
|
|
27576
27540
|
return _this23;
|
|
27577
27541
|
}
|
|
27542
|
+
_inherits(MeasurementReport, _Template15);
|
|
27578
27543
|
return _createClass(MeasurementReport);
|
|
27579
27544
|
}(Template);
|
|
27580
27545
|
var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
27581
|
-
_inherits(TimePointContext, _Template16);
|
|
27582
27546
|
function TimePointContext(options) {
|
|
27583
27547
|
var _this24;
|
|
27584
27548
|
_classCallCheck(this, TimePointContext);
|
|
@@ -27659,10 +27623,10 @@ var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
|
27659
27623
|
}
|
|
27660
27624
|
return _this24;
|
|
27661
27625
|
}
|
|
27626
|
+
_inherits(TimePointContext, _Template16);
|
|
27662
27627
|
return _createClass(TimePointContext);
|
|
27663
27628
|
}(Template);
|
|
27664
27629
|
var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
27665
|
-
_inherits(ImageLibrary, _Template17);
|
|
27666
27630
|
function ImageLibrary() {
|
|
27667
27631
|
var _this25;
|
|
27668
27632
|
_classCallCheck(this, ImageLibrary);
|
|
@@ -27678,10 +27642,10 @@ var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
|
27678
27642
|
_this25.push(libraryItem);
|
|
27679
27643
|
return _this25;
|
|
27680
27644
|
}
|
|
27645
|
+
_inherits(ImageLibrary, _Template17);
|
|
27681
27646
|
return _createClass(ImageLibrary);
|
|
27682
27647
|
}(Template);
|
|
27683
27648
|
var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
27684
|
-
_inherits(AlgorithmIdentification, _Template18);
|
|
27685
27649
|
function AlgorithmIdentification(options) {
|
|
27686
27650
|
var _this26;
|
|
27687
27651
|
_classCallCheck(this, AlgorithmIdentification);
|
|
@@ -27731,10 +27695,10 @@ var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
|
27731
27695
|
}
|
|
27732
27696
|
return _this26;
|
|
27733
27697
|
}
|
|
27698
|
+
_inherits(AlgorithmIdentification, _Template18);
|
|
27734
27699
|
return _createClass(AlgorithmIdentification);
|
|
27735
27700
|
}(Template);
|
|
27736
27701
|
var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
27737
|
-
_inherits(TrackingIdentifier, _Template19);
|
|
27738
27702
|
function TrackingIdentifier(options) {
|
|
27739
27703
|
var _this27;
|
|
27740
27704
|
_classCallCheck(this, TrackingIdentifier);
|
|
@@ -27766,6 +27730,7 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
|
27766
27730
|
_this27.push(trackingUIDItem);
|
|
27767
27731
|
return _this27;
|
|
27768
27732
|
}
|
|
27733
|
+
_inherits(TrackingIdentifier, _Template19);
|
|
27769
27734
|
return _createClass(TrackingIdentifier);
|
|
27770
27735
|
}(Template);
|
|
27771
27736
|
|