dcmjs 0.50.3 → 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 +618 -661
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +618 -661
- 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,34 +14876,34 @@ 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
|
|
14906
|
+
case 4:
|
|
14888
14907
|
// Normalize to UTF-8 in the stored value, matching the synchronous
|
|
14889
14908
|
// DicomMessage path which always rewrites SpecificCharacterSet to
|
|
14890
14909
|
// ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
|
|
@@ -14892,12 +14911,13 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14892
14911
|
// TODO: the original charset value should also be preserved:
|
|
14893
14912
|
// it is needed for bulk data decoding.
|
|
14894
14913
|
values = ["ISO_IR 192"];
|
|
14895
|
-
case
|
|
14896
|
-
|
|
14914
|
+
case 5:
|
|
14915
|
+
valuesForListener = Array.isArray(values) ? values : [values];
|
|
14916
|
+
valuesForListener.forEach(function (value) {
|
|
14897
14917
|
return listener.value(value);
|
|
14898
14918
|
});
|
|
14899
14919
|
return _context11.abrupt("return", values);
|
|
14900
|
-
case
|
|
14920
|
+
case 6:
|
|
14901
14921
|
case "end":
|
|
14902
14922
|
return _context11.stop();
|
|
14903
14923
|
}
|
|
@@ -14909,7 +14929,6 @@ var AsyncDicomReader = /*#__PURE__*/function () {
|
|
|
14909
14929
|
return readSingle;
|
|
14910
14930
|
}())
|
|
14911
14931
|
}]);
|
|
14912
|
-
return AsyncDicomReader;
|
|
14913
14932
|
}();
|
|
14914
14933
|
_defineProperty(AsyncDicomReader, "PART10_NO_PREAMBLE", Symbol("PART10_NO_PREAMBLE"));
|
|
14915
14934
|
|
|
@@ -14975,7 +14994,7 @@ var DerivedDataset = /*#__PURE__*/function () {
|
|
|
14975
14994
|
};
|
|
14976
14995
|
this.derive();
|
|
14977
14996
|
}
|
|
14978
|
-
_createClass(DerivedDataset, [{
|
|
14997
|
+
return _createClass(DerivedDataset, [{
|
|
14979
14998
|
key: "assignToDataset",
|
|
14980
14999
|
value: function assignToDataset(data) {
|
|
14981
15000
|
var _this = this;
|
|
@@ -15013,11 +15032,9 @@ var DerivedDataset = /*#__PURE__*/function () {
|
|
|
15013
15032
|
return JSON.parse(JSON.stringify(dataset));
|
|
15014
15033
|
}
|
|
15015
15034
|
}]);
|
|
15016
|
-
return DerivedDataset;
|
|
15017
15035
|
}();
|
|
15018
15036
|
|
|
15019
15037
|
var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
15020
|
-
_inherits(DerivedPixels, _DerivedDataset);
|
|
15021
15038
|
function DerivedPixels(datasets) {
|
|
15022
15039
|
var _this;
|
|
15023
15040
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -15032,7 +15049,8 @@ var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15032
15049
|
|
|
15033
15050
|
// this assumes a normalized multiframe input and will create
|
|
15034
15051
|
// a multiframe derived image
|
|
15035
|
-
|
|
15052
|
+
_inherits(DerivedPixels, _DerivedDataset);
|
|
15053
|
+
return _createClass(DerivedPixels, [{
|
|
15036
15054
|
key: "derive",
|
|
15037
15055
|
value: function derive() {
|
|
15038
15056
|
_get(_getPrototypeOf(DerivedPixels.prototype), "derive", this).call(this);
|
|
@@ -15059,29 +15077,26 @@ var DerivedPixels = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15059
15077
|
this.dataset.PixelData = new ArrayBuffer(this.referencedDataset.PixelData.byteLength);
|
|
15060
15078
|
}
|
|
15061
15079
|
}]);
|
|
15062
|
-
return DerivedPixels;
|
|
15063
15080
|
}(DerivedDataset);
|
|
15064
15081
|
|
|
15065
15082
|
var DerivedImage = /*#__PURE__*/function (_DerivedPixels) {
|
|
15066
|
-
_inherits(DerivedImage, _DerivedPixels);
|
|
15067
15083
|
function DerivedImage(datasets) {
|
|
15068
15084
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15069
15085
|
_classCallCheck(this, DerivedImage);
|
|
15070
15086
|
return _callSuper(this, DerivedImage, [datasets, options]);
|
|
15071
15087
|
}
|
|
15072
|
-
|
|
15088
|
+
_inherits(DerivedImage, _DerivedPixels);
|
|
15089
|
+
return _createClass(DerivedImage, [{
|
|
15073
15090
|
key: "derive",
|
|
15074
15091
|
value: function derive() {
|
|
15075
15092
|
_get(_getPrototypeOf(DerivedImage.prototype), "derive", this).call(this);
|
|
15076
15093
|
this.assignFromReference(["WindowCenter", "WindowWidth", "BitsAllocated", "PixelRepresentation", "BodyPartExamined", "Laterality", "PatientPosition", "RescaleSlope", "RescaleIntercept", "PixelPresentation", "VolumetricProperties", "VolumeBasedCalculationTechnique", "PresentationLUTShape"]);
|
|
15077
15094
|
}
|
|
15078
15095
|
}]);
|
|
15079
|
-
return DerivedImage;
|
|
15080
15096
|
}(DerivedPixels);
|
|
15081
15097
|
|
|
15082
15098
|
var Normalizer$1;
|
|
15083
15099
|
var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
15084
|
-
_inherits(Segmentation, _DerivedPixels);
|
|
15085
15100
|
function Segmentation(datasets) {
|
|
15086
15101
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
15087
15102
|
includeSliceSpacing: true
|
|
@@ -15089,7 +15104,8 @@ var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
|
15089
15104
|
_classCallCheck(this, Segmentation);
|
|
15090
15105
|
return _callSuper(this, Segmentation, [datasets, options]);
|
|
15091
15106
|
}
|
|
15092
|
-
|
|
15107
|
+
_inherits(Segmentation, _DerivedPixels);
|
|
15108
|
+
return _createClass(Segmentation, [{
|
|
15093
15109
|
key: "derive",
|
|
15094
15110
|
value: function derive() {
|
|
15095
15111
|
_get(_getPrototypeOf(Segmentation.prototype), "derive", this).call(this);
|
|
@@ -15404,11 +15420,9 @@ var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
|
|
|
15404
15420
|
Normalizer$1 = normalizer;
|
|
15405
15421
|
}
|
|
15406
15422
|
}]);
|
|
15407
|
-
return Segmentation;
|
|
15408
15423
|
}(DerivedPixels);
|
|
15409
15424
|
|
|
15410
15425
|
var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
15411
|
-
_inherits(ParametricMap, _DerivedDataset);
|
|
15412
15426
|
function ParametricMap(datasets) {
|
|
15413
15427
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15414
15428
|
_classCallCheck(this, ParametricMap);
|
|
@@ -15417,7 +15431,8 @@ var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15417
15431
|
|
|
15418
15432
|
// this assumes a normalized multiframe input and will create
|
|
15419
15433
|
// a multiframe derived image
|
|
15420
|
-
|
|
15434
|
+
_inherits(ParametricMap, _DerivedDataset);
|
|
15435
|
+
return _createClass(ParametricMap, [{
|
|
15421
15436
|
key: "derive",
|
|
15422
15437
|
value: function derive() {
|
|
15423
15438
|
_get(_getPrototypeOf(ParametricMap.prototype), "derive", this).call(this);
|
|
@@ -15427,11 +15442,9 @@ var ParametricMap = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15427
15442
|
this.assignFromReference([]);
|
|
15428
15443
|
}
|
|
15429
15444
|
}]);
|
|
15430
|
-
return ParametricMap;
|
|
15431
15445
|
}(DerivedDataset);
|
|
15432
15446
|
|
|
15433
15447
|
var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
15434
|
-
_inherits(StructuredReport, _DerivedDataset);
|
|
15435
15448
|
function StructuredReport(datasets) {
|
|
15436
15449
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15437
15450
|
_classCallCheck(this, StructuredReport);
|
|
@@ -15440,7 +15453,8 @@ var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15440
15453
|
|
|
15441
15454
|
// this assumes a normalized multiframe input and will create
|
|
15442
15455
|
// a multiframe derived image
|
|
15443
|
-
|
|
15456
|
+
_inherits(StructuredReport, _DerivedDataset);
|
|
15457
|
+
return _createClass(StructuredReport, [{
|
|
15444
15458
|
key: "derive",
|
|
15445
15459
|
value: function derive() {
|
|
15446
15460
|
_get(_getPrototypeOf(StructuredReport.prototype), "derive", this).call(this);
|
|
@@ -15452,7 +15466,6 @@ var StructuredReport = /*#__PURE__*/function (_DerivedDataset) {
|
|
|
15452
15466
|
this.assignFromReference([]);
|
|
15453
15467
|
}
|
|
15454
15468
|
}]);
|
|
15455
|
-
return StructuredReport;
|
|
15456
15469
|
}(DerivedDataset);
|
|
15457
15470
|
|
|
15458
15471
|
var Normalizer = /*#__PURE__*/function () {
|
|
@@ -15461,7 +15474,7 @@ var Normalizer = /*#__PURE__*/function () {
|
|
|
15461
15474
|
this.datasets = datasets; // one or more dicom-like object instances
|
|
15462
15475
|
this.dataset = undefined; // a normalized multiframe dicom object instance
|
|
15463
15476
|
}
|
|
15464
|
-
_createClass(Normalizer, [{
|
|
15477
|
+
return _createClass(Normalizer, [{
|
|
15465
15478
|
key: "normalize",
|
|
15466
15479
|
value: function normalize() {
|
|
15467
15480
|
return "No normalization defined";
|
|
@@ -15539,15 +15552,14 @@ var Normalizer = /*#__PURE__*/function () {
|
|
|
15539
15552
|
return normalizer.dataset;
|
|
15540
15553
|
}
|
|
15541
15554
|
}]);
|
|
15542
|
-
return Normalizer;
|
|
15543
15555
|
}();
|
|
15544
15556
|
var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
15545
|
-
_inherits(ImageNormalizer, _Normalizer);
|
|
15546
15557
|
function ImageNormalizer() {
|
|
15547
15558
|
_classCallCheck(this, ImageNormalizer);
|
|
15548
15559
|
return _callSuper(this, ImageNormalizer, arguments);
|
|
15549
15560
|
}
|
|
15550
|
-
|
|
15561
|
+
_inherits(ImageNormalizer, _Normalizer);
|
|
15562
|
+
return _createClass(ImageNormalizer, [{
|
|
15551
15563
|
key: "normalize",
|
|
15552
15564
|
value: function normalize() {
|
|
15553
15565
|
this.convertToMultiframe();
|
|
@@ -15844,15 +15856,14 @@ var ImageNormalizer = /*#__PURE__*/function (_Normalizer) {
|
|
|
15844
15856
|
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
15845
15857
|
}
|
|
15846
15858
|
}]);
|
|
15847
|
-
return ImageNormalizer;
|
|
15848
15859
|
}(Normalizer);
|
|
15849
15860
|
var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
15850
|
-
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15851
15861
|
function MRImageNormalizer() {
|
|
15852
15862
|
_classCallCheck(this, MRImageNormalizer);
|
|
15853
15863
|
return _callSuper(this, MRImageNormalizer, arguments);
|
|
15854
15864
|
}
|
|
15855
|
-
|
|
15865
|
+
_inherits(MRImageNormalizer, _ImageNormalizer);
|
|
15866
|
+
return _createClass(MRImageNormalizer, [{
|
|
15856
15867
|
key: "normalize",
|
|
15857
15868
|
value: function normalize() {
|
|
15858
15869
|
_get(_getPrototypeOf(MRImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15879,57 +15890,53 @@ var MRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer) {
|
|
|
15879
15890
|
};
|
|
15880
15891
|
}
|
|
15881
15892
|
}]);
|
|
15882
|
-
return MRImageNormalizer;
|
|
15883
15893
|
}(ImageNormalizer);
|
|
15884
15894
|
var EnhancedCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer2) {
|
|
15885
|
-
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15886
15895
|
function EnhancedCTImageNormalizer() {
|
|
15887
15896
|
_classCallCheck(this, EnhancedCTImageNormalizer);
|
|
15888
15897
|
return _callSuper(this, EnhancedCTImageNormalizer, arguments);
|
|
15889
15898
|
}
|
|
15890
|
-
|
|
15899
|
+
_inherits(EnhancedCTImageNormalizer, _ImageNormalizer2);
|
|
15900
|
+
return _createClass(EnhancedCTImageNormalizer, [{
|
|
15891
15901
|
key: "normalize",
|
|
15892
15902
|
value: function normalize() {
|
|
15893
15903
|
_get(_getPrototypeOf(EnhancedCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
15894
15904
|
}
|
|
15895
15905
|
}]);
|
|
15896
|
-
return EnhancedCTImageNormalizer;
|
|
15897
15906
|
}(ImageNormalizer);
|
|
15898
15907
|
var EnhancedMRImageNormalizer = /*#__PURE__*/function (_ImageNormalizer3) {
|
|
15899
|
-
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15900
15908
|
function EnhancedMRImageNormalizer() {
|
|
15901
15909
|
_classCallCheck(this, EnhancedMRImageNormalizer);
|
|
15902
15910
|
return _callSuper(this, EnhancedMRImageNormalizer, arguments);
|
|
15903
15911
|
}
|
|
15904
|
-
|
|
15912
|
+
_inherits(EnhancedMRImageNormalizer, _ImageNormalizer3);
|
|
15913
|
+
return _createClass(EnhancedMRImageNormalizer, [{
|
|
15905
15914
|
key: "normalize",
|
|
15906
15915
|
value: function normalize() {
|
|
15907
15916
|
_get(_getPrototypeOf(EnhancedMRImageNormalizer.prototype), "normalize", this).call(this);
|
|
15908
15917
|
}
|
|
15909
15918
|
}]);
|
|
15910
|
-
return EnhancedMRImageNormalizer;
|
|
15911
15919
|
}(ImageNormalizer);
|
|
15912
15920
|
var EnhancedUSVolumeNormalizer = /*#__PURE__*/function (_ImageNormalizer4) {
|
|
15913
|
-
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15914
15921
|
function EnhancedUSVolumeNormalizer() {
|
|
15915
15922
|
_classCallCheck(this, EnhancedUSVolumeNormalizer);
|
|
15916
15923
|
return _callSuper(this, EnhancedUSVolumeNormalizer, arguments);
|
|
15917
15924
|
}
|
|
15918
|
-
|
|
15925
|
+
_inherits(EnhancedUSVolumeNormalizer, _ImageNormalizer4);
|
|
15926
|
+
return _createClass(EnhancedUSVolumeNormalizer, [{
|
|
15919
15927
|
key: "normalize",
|
|
15920
15928
|
value: function normalize() {
|
|
15921
15929
|
_get(_getPrototypeOf(EnhancedUSVolumeNormalizer.prototype), "normalize", this).call(this);
|
|
15922
15930
|
}
|
|
15923
15931
|
}]);
|
|
15924
|
-
return EnhancedUSVolumeNormalizer;
|
|
15925
15932
|
}(ImageNormalizer);
|
|
15926
15933
|
var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
15927
|
-
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15928
15934
|
function NMImageNormalizer() {
|
|
15929
15935
|
_classCallCheck(this, NMImageNormalizer);
|
|
15930
15936
|
return _callSuper(this, NMImageNormalizer, arguments);
|
|
15931
15937
|
}
|
|
15932
|
-
|
|
15938
|
+
_inherits(NMImageNormalizer, _ImageNormalizer5);
|
|
15939
|
+
return _createClass(NMImageNormalizer, [{
|
|
15933
15940
|
key: "normalize",
|
|
15934
15941
|
value: function normalize() {
|
|
15935
15942
|
_get(_getPrototypeOf(NMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15938,15 +15945,14 @@ var NMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer5) {
|
|
|
15938
15945
|
this.dataset.SOPClassUID = toUID.NMImage;
|
|
15939
15946
|
}
|
|
15940
15947
|
}]);
|
|
15941
|
-
return NMImageNormalizer;
|
|
15942
15948
|
}(ImageNormalizer);
|
|
15943
15949
|
var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
15944
|
-
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15945
15950
|
function CTImageNormalizer() {
|
|
15946
15951
|
_classCallCheck(this, CTImageNormalizer);
|
|
15947
15952
|
return _callSuper(this, CTImageNormalizer, arguments);
|
|
15948
15953
|
}
|
|
15949
|
-
|
|
15954
|
+
_inherits(CTImageNormalizer, _ImageNormalizer6);
|
|
15955
|
+
return _createClass(CTImageNormalizer, [{
|
|
15950
15956
|
key: "normalize",
|
|
15951
15957
|
value: function normalize() {
|
|
15952
15958
|
_get(_getPrototypeOf(CTImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15956,15 +15962,14 @@ var CTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer6) {
|
|
|
15956
15962
|
this.dataset.SOPClassUID = toUID.EnhancedCTImage;
|
|
15957
15963
|
}
|
|
15958
15964
|
}]);
|
|
15959
|
-
return CTImageNormalizer;
|
|
15960
15965
|
}(ImageNormalizer);
|
|
15961
15966
|
var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
15962
|
-
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15963
15967
|
function PETImageNormalizer() {
|
|
15964
15968
|
_classCallCheck(this, PETImageNormalizer);
|
|
15965
15969
|
return _callSuper(this, PETImageNormalizer, arguments);
|
|
15966
15970
|
}
|
|
15967
|
-
|
|
15971
|
+
_inherits(PETImageNormalizer, _ImageNormalizer7);
|
|
15972
|
+
return _createClass(PETImageNormalizer, [{
|
|
15968
15973
|
key: "normalize",
|
|
15969
15974
|
value: function normalize() {
|
|
15970
15975
|
_get(_getPrototypeOf(PETImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -15974,29 +15979,27 @@ var PETImageNormalizer = /*#__PURE__*/function (_ImageNormalizer7) {
|
|
|
15974
15979
|
this.dataset.SOPClassUID = toUID.EnhancedPETImage;
|
|
15975
15980
|
}
|
|
15976
15981
|
}]);
|
|
15977
|
-
return PETImageNormalizer;
|
|
15978
15982
|
}(ImageNormalizer);
|
|
15979
15983
|
var SEGImageNormalizer = /*#__PURE__*/function (_ImageNormalizer8) {
|
|
15980
|
-
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15981
15984
|
function SEGImageNormalizer() {
|
|
15982
15985
|
_classCallCheck(this, SEGImageNormalizer);
|
|
15983
15986
|
return _callSuper(this, SEGImageNormalizer, arguments);
|
|
15984
15987
|
}
|
|
15985
|
-
|
|
15988
|
+
_inherits(SEGImageNormalizer, _ImageNormalizer8);
|
|
15989
|
+
return _createClass(SEGImageNormalizer, [{
|
|
15986
15990
|
key: "normalize",
|
|
15987
15991
|
value: function normalize() {
|
|
15988
15992
|
_get(_getPrototypeOf(SEGImageNormalizer.prototype), "normalize", this).call(this);
|
|
15989
15993
|
}
|
|
15990
15994
|
}]);
|
|
15991
|
-
return SEGImageNormalizer;
|
|
15992
15995
|
}(ImageNormalizer);
|
|
15993
15996
|
var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
15994
|
-
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
15995
15997
|
function PMImageNormalizer() {
|
|
15996
15998
|
_classCallCheck(this, PMImageNormalizer);
|
|
15997
15999
|
return _callSuper(this, PMImageNormalizer, arguments);
|
|
15998
16000
|
}
|
|
15999
|
-
|
|
16001
|
+
_inherits(PMImageNormalizer, _ImageNormalizer9);
|
|
16002
|
+
return _createClass(PMImageNormalizer, [{
|
|
16000
16003
|
key: "normalize",
|
|
16001
16004
|
value: function normalize() {
|
|
16002
16005
|
_get(_getPrototypeOf(PMImageNormalizer.prototype), "normalize", this).call(this);
|
|
@@ -16006,49 +16009,45 @@ var PMImageNormalizer = /*#__PURE__*/function (_ImageNormalizer9) {
|
|
|
16006
16009
|
}
|
|
16007
16010
|
}
|
|
16008
16011
|
}]);
|
|
16009
|
-
return PMImageNormalizer;
|
|
16010
16012
|
}(ImageNormalizer);
|
|
16011
16013
|
var DSRNormalizer = /*#__PURE__*/function (_Normalizer2) {
|
|
16012
|
-
_inherits(DSRNormalizer, _Normalizer2);
|
|
16013
16014
|
function DSRNormalizer() {
|
|
16014
16015
|
_classCallCheck(this, DSRNormalizer);
|
|
16015
16016
|
return _callSuper(this, DSRNormalizer, arguments);
|
|
16016
16017
|
}
|
|
16017
|
-
|
|
16018
|
+
_inherits(DSRNormalizer, _Normalizer2);
|
|
16019
|
+
return _createClass(DSRNormalizer, [{
|
|
16018
16020
|
key: "normalize",
|
|
16019
16021
|
value: function normalize() {
|
|
16020
16022
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16021
16023
|
}
|
|
16022
16024
|
}]);
|
|
16023
|
-
return DSRNormalizer;
|
|
16024
16025
|
}(Normalizer);
|
|
16025
16026
|
var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
|
|
16026
|
-
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16027
16027
|
function OPImageNormalizer() {
|
|
16028
16028
|
_classCallCheck(this, OPImageNormalizer);
|
|
16029
16029
|
return _callSuper(this, OPImageNormalizer, arguments);
|
|
16030
16030
|
}
|
|
16031
|
-
|
|
16031
|
+
_inherits(OPImageNormalizer, _Normalizer3);
|
|
16032
|
+
return _createClass(OPImageNormalizer, [{
|
|
16032
16033
|
key: "normalize",
|
|
16033
16034
|
value: function normalize() {
|
|
16034
16035
|
this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
|
|
16035
16036
|
}
|
|
16036
16037
|
}]);
|
|
16037
|
-
return OPImageNormalizer;
|
|
16038
16038
|
}(Normalizer);
|
|
16039
16039
|
var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer0) {
|
|
16040
|
-
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16041
16040
|
function OCTImageNormalizer() {
|
|
16042
16041
|
_classCallCheck(this, OCTImageNormalizer);
|
|
16043
16042
|
return _callSuper(this, OCTImageNormalizer, arguments);
|
|
16044
16043
|
}
|
|
16045
|
-
|
|
16044
|
+
_inherits(OCTImageNormalizer, _ImageNormalizer0);
|
|
16045
|
+
return _createClass(OCTImageNormalizer, [{
|
|
16046
16046
|
key: "normalize",
|
|
16047
16047
|
value: function normalize() {
|
|
16048
16048
|
_get(_getPrototypeOf(OCTImageNormalizer.prototype), "normalize", this).call(this);
|
|
16049
16049
|
}
|
|
16050
16050
|
}]);
|
|
16051
|
-
return OCTImageNormalizer;
|
|
16052
16051
|
}(ImageNormalizer); // Avoid import loops
|
|
16053
16052
|
Segmentation$4.setNormalizer(Normalizer);
|
|
16054
16053
|
|
|
@@ -16156,7 +16155,7 @@ var TID1500MeasurementReport = /*#__PURE__*/function () {
|
|
|
16156
16155
|
}]
|
|
16157
16156
|
};
|
|
16158
16157
|
}
|
|
16159
|
-
_createClass(TID1500MeasurementReport, [{
|
|
16158
|
+
return _createClass(TID1500MeasurementReport, [{
|
|
16160
16159
|
key: "validate",
|
|
16161
16160
|
value: function validate() {}
|
|
16162
16161
|
}, {
|
|
@@ -16247,7 +16246,6 @@ var TID1500MeasurementReport = /*#__PURE__*/function () {
|
|
|
16247
16246
|
this.tid1500.ContentSequence.push(ImagingMeasurments);
|
|
16248
16247
|
}
|
|
16249
16248
|
}]);
|
|
16250
|
-
return TID1500MeasurementReport;
|
|
16251
16249
|
}();
|
|
16252
16250
|
|
|
16253
16251
|
var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
@@ -16255,7 +16253,7 @@ var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
|
16255
16253
|
_classCallCheck(this, TID1501MeasurementGroup);
|
|
16256
16254
|
this.TID300Measurements = TID300Measurements;
|
|
16257
16255
|
}
|
|
16258
|
-
_createClass(TID1501MeasurementGroup, [{
|
|
16256
|
+
return _createClass(TID1501MeasurementGroup, [{
|
|
16259
16257
|
key: "contentItem",
|
|
16260
16258
|
value: function contentItem() {
|
|
16261
16259
|
var _this = this;
|
|
@@ -16284,7 +16282,6 @@ var TID1501MeasurementGroup = /*#__PURE__*/function () {
|
|
|
16284
16282
|
};
|
|
16285
16283
|
}
|
|
16286
16284
|
}]);
|
|
16287
|
-
return TID1501MeasurementGroup;
|
|
16288
16285
|
}();
|
|
16289
16286
|
|
|
16290
16287
|
var toArray = function toArray(x) {
|
|
@@ -16344,7 +16341,7 @@ var MeasurementReport$3 = /*#__PURE__*/function () {
|
|
|
16344
16341
|
function MeasurementReport() {
|
|
16345
16342
|
_classCallCheck(this, MeasurementReport);
|
|
16346
16343
|
}
|
|
16347
|
-
_createClass(MeasurementReport, null, [{
|
|
16344
|
+
return _createClass(MeasurementReport, null, [{
|
|
16348
16345
|
key: "getSetupMeasurementData",
|
|
16349
16346
|
value: function getSetupMeasurementData(MeasurementGroup) {
|
|
16350
16347
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -16555,7 +16552,6 @@ var MeasurementReport$3 = /*#__PURE__*/function () {
|
|
|
16555
16552
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
16556
16553
|
}
|
|
16557
16554
|
}]);
|
|
16558
|
-
return MeasurementReport;
|
|
16559
16555
|
}();
|
|
16560
16556
|
MeasurementReport$3.MEASUREMENT_BY_TOOLTYPE = {};
|
|
16561
16557
|
MeasurementReport$3.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -16567,7 +16563,7 @@ var TID300Measurement = /*#__PURE__*/function () {
|
|
|
16567
16563
|
this.ReferencedSOPSequence = props.ReferencedSOPSequence;
|
|
16568
16564
|
this.props = props;
|
|
16569
16565
|
}
|
|
16570
|
-
_createClass(TID300Measurement, [{
|
|
16566
|
+
return _createClass(TID300Measurement, [{
|
|
16571
16567
|
key: "getMeasurement",
|
|
16572
16568
|
value: function getMeasurement(contentSequenceEntries) {
|
|
16573
16569
|
return [].concat(_toConsumableArray(this.getTrackingGroups()), _toConsumableArray(this.getFindingGroup()), _toConsumableArray(this.getFindingSiteGroups()), _toConsumableArray(contentSequenceEntries));
|
|
@@ -16675,7 +16671,6 @@ var TID300Measurement = /*#__PURE__*/function () {
|
|
|
16675
16671
|
return flattenedCoordinates;
|
|
16676
16672
|
}
|
|
16677
16673
|
}]);
|
|
16678
|
-
return TID300Measurement;
|
|
16679
16674
|
}();
|
|
16680
16675
|
|
|
16681
16676
|
/**
|
|
@@ -16697,7 +16692,7 @@ var TID320ContentItem = /*#__PURE__*/function () {
|
|
|
16697
16692
|
this.referencedSOPSequence = referencedSOPSequence;
|
|
16698
16693
|
this.referencedFrameOfReferenceUID = referencedFrameOfReferenceUID;
|
|
16699
16694
|
}
|
|
16700
|
-
_createClass(TID320ContentItem, [{
|
|
16695
|
+
return _createClass(TID320ContentItem, [{
|
|
16701
16696
|
key: "contentItem",
|
|
16702
16697
|
value: function contentItem() {
|
|
16703
16698
|
var content = {
|
|
@@ -16718,16 +16713,15 @@ var TID320ContentItem = /*#__PURE__*/function () {
|
|
|
16718
16713
|
return content;
|
|
16719
16714
|
}
|
|
16720
16715
|
}]);
|
|
16721
|
-
return TID320ContentItem;
|
|
16722
16716
|
}();
|
|
16723
16717
|
|
|
16724
16718
|
var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
16725
|
-
_inherits(OpenPolyline, _TID300Measurement);
|
|
16726
16719
|
function OpenPolyline() {
|
|
16727
16720
|
_classCallCheck(this, OpenPolyline);
|
|
16728
16721
|
return _callSuper(this, OpenPolyline, arguments);
|
|
16729
16722
|
}
|
|
16730
|
-
|
|
16723
|
+
_inherits(OpenPolyline, _TID300Measurement);
|
|
16724
|
+
return _createClass(OpenPolyline, [{
|
|
16731
16725
|
key: "getPoints",
|
|
16732
16726
|
value: function getPoints() {
|
|
16733
16727
|
throw new Error("getPoints() must be implemented by subclass");
|
|
@@ -16776,7 +16770,6 @@ var OpenPolyline = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
16776
16770
|
}]);
|
|
16777
16771
|
}
|
|
16778
16772
|
}]);
|
|
16779
|
-
return OpenPolyline;
|
|
16780
16773
|
}(TID300Measurement);
|
|
16781
16774
|
|
|
16782
16775
|
var knownUnits = [
|
|
@@ -16954,12 +16947,12 @@ var unit2CodingValue = function unit2CodingValue(units) {
|
|
|
16954
16947
|
unit2CodingValue.measurementMap = unitCodeMap;
|
|
16955
16948
|
|
|
16956
16949
|
var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
16957
|
-
_inherits(Length, _OpenPolyline);
|
|
16958
16950
|
function Length() {
|
|
16959
16951
|
_classCallCheck(this, Length);
|
|
16960
16952
|
return _callSuper(this, Length, arguments);
|
|
16961
16953
|
}
|
|
16962
|
-
|
|
16954
|
+
_inherits(Length, _OpenPolyline);
|
|
16955
|
+
return _createClass(Length, [{
|
|
16963
16956
|
key: "getPoints",
|
|
16964
16957
|
value: function getPoints() {
|
|
16965
16958
|
var _this$props = this.props,
|
|
@@ -16989,7 +16982,6 @@ var Length$2 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
16989
16982
|
};
|
|
16990
16983
|
}
|
|
16991
16984
|
}]);
|
|
16992
|
-
return Length;
|
|
16993
16985
|
}(OpenPolyline);
|
|
16994
16986
|
|
|
16995
16987
|
var CORNERSTONE_4_TAG = "cornerstoneTools@^4.0.0";
|
|
@@ -17001,7 +16993,7 @@ var Length$1 = /*#__PURE__*/function () {
|
|
|
17001
16993
|
}
|
|
17002
16994
|
|
|
17003
16995
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17004
|
-
_createClass(Length, null, [{
|
|
16996
|
+
return _createClass(Length, null, [{
|
|
17005
16997
|
key: "getMeasurementData",
|
|
17006
16998
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17007
16999
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17050,7 +17042,6 @@ var Length$1 = /*#__PURE__*/function () {
|
|
|
17050
17042
|
};
|
|
17051
17043
|
}
|
|
17052
17044
|
}]);
|
|
17053
|
-
return Length;
|
|
17054
17045
|
}();
|
|
17055
17046
|
Length$1.toolType = LENGTH$1;
|
|
17056
17047
|
Length$1.utilityToolType = LENGTH$1;
|
|
@@ -17087,7 +17078,7 @@ var MeasurementBuilder = /*#__PURE__*/function () {
|
|
|
17087
17078
|
function MeasurementBuilder() {
|
|
17088
17079
|
_classCallCheck(this, MeasurementBuilder);
|
|
17089
17080
|
}
|
|
17090
|
-
_createClass(MeasurementBuilder, null, [{
|
|
17081
|
+
return _createClass(MeasurementBuilder, null, [{
|
|
17091
17082
|
key: "createNumericMeasurement",
|
|
17092
17083
|
value:
|
|
17093
17084
|
/**
|
|
@@ -17181,16 +17172,15 @@ var MeasurementBuilder = /*#__PURE__*/function () {
|
|
|
17181
17172
|
});
|
|
17182
17173
|
}
|
|
17183
17174
|
}]);
|
|
17184
|
-
return MeasurementBuilder;
|
|
17185
17175
|
}();
|
|
17186
17176
|
|
|
17187
17177
|
var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17188
|
-
_inherits(Polyline, _TID300Measurement);
|
|
17189
17178
|
function Polyline() {
|
|
17190
17179
|
_classCallCheck(this, Polyline);
|
|
17191
17180
|
return _callSuper(this, Polyline, arguments);
|
|
17192
17181
|
}
|
|
17193
|
-
|
|
17182
|
+
_inherits(Polyline, _TID300Measurement);
|
|
17183
|
+
return _createClass(Polyline, [{
|
|
17194
17184
|
key: "contentItem",
|
|
17195
17185
|
value: function contentItem() {
|
|
17196
17186
|
var _this$props = this.props,
|
|
@@ -17256,14 +17246,13 @@ var Polyline$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17256
17246
|
return this.getMeasurement(measurements);
|
|
17257
17247
|
}
|
|
17258
17248
|
}]);
|
|
17259
|
-
return Polyline;
|
|
17260
17249
|
}(TID300Measurement);
|
|
17261
17250
|
|
|
17262
17251
|
var FreehandRoi = /*#__PURE__*/function () {
|
|
17263
17252
|
function FreehandRoi() {
|
|
17264
17253
|
_classCallCheck(this, FreehandRoi);
|
|
17265
17254
|
}
|
|
17266
|
-
_createClass(FreehandRoi, null, [{
|
|
17255
|
+
return _createClass(FreehandRoi, null, [{
|
|
17267
17256
|
key: "getMeasurementData",
|
|
17268
17257
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17269
17258
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17322,7 +17311,6 @@ var FreehandRoi = /*#__PURE__*/function () {
|
|
|
17322
17311
|
};
|
|
17323
17312
|
}
|
|
17324
17313
|
}]);
|
|
17325
|
-
return FreehandRoi;
|
|
17326
17314
|
}();
|
|
17327
17315
|
FreehandRoi.toolType = "FreehandRoi";
|
|
17328
17316
|
FreehandRoi.utilityToolType = "FreehandRoi";
|
|
@@ -17343,12 +17331,12 @@ FreehandRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier)
|
|
|
17343
17331
|
MeasurementReport$3.registerTool(FreehandRoi);
|
|
17344
17332
|
|
|
17345
17333
|
var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17346
|
-
_inherits(Bidirectional, _TID300Measurement);
|
|
17347
17334
|
function Bidirectional() {
|
|
17348
17335
|
_classCallCheck(this, Bidirectional);
|
|
17349
17336
|
return _callSuper(this, Bidirectional, arguments);
|
|
17350
17337
|
}
|
|
17351
|
-
|
|
17338
|
+
_inherits(Bidirectional, _TID300Measurement);
|
|
17339
|
+
return _createClass(Bidirectional, [{
|
|
17352
17340
|
key: "contentItem",
|
|
17353
17341
|
value: function contentItem() {
|
|
17354
17342
|
var _this$props = this.props,
|
|
@@ -17412,7 +17400,6 @@ var Bidirectional$2 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17412
17400
|
}]);
|
|
17413
17401
|
}
|
|
17414
17402
|
}]);
|
|
17415
|
-
return Bidirectional;
|
|
17416
17403
|
}(TID300Measurement);
|
|
17417
17404
|
|
|
17418
17405
|
var BIDIRECTIONAL$1 = "Bidirectional";
|
|
@@ -17426,7 +17413,7 @@ var Bidirectional$1 = /*#__PURE__*/function () {
|
|
|
17426
17413
|
}
|
|
17427
17414
|
|
|
17428
17415
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17429
|
-
_createClass(Bidirectional, null, [{
|
|
17416
|
+
return _createClass(Bidirectional, null, [{
|
|
17430
17417
|
key: "getMeasurementData",
|
|
17431
17418
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17432
17419
|
var ContentSequence = MeasurementGroup.ContentSequence;
|
|
@@ -17557,7 +17544,6 @@ var Bidirectional$1 = /*#__PURE__*/function () {
|
|
|
17557
17544
|
};
|
|
17558
17545
|
}
|
|
17559
17546
|
}]);
|
|
17560
|
-
return Bidirectional;
|
|
17561
17547
|
}();
|
|
17562
17548
|
Bidirectional$1.toolType = BIDIRECTIONAL$1;
|
|
17563
17549
|
Bidirectional$1.utilityToolType = BIDIRECTIONAL$1;
|
|
@@ -17578,12 +17564,12 @@ Bidirectional$1.isValidCornerstoneTrackingIdentifier = function (TrackingIdentif
|
|
|
17578
17564
|
MeasurementReport$3.registerTool(Bidirectional$1);
|
|
17579
17565
|
|
|
17580
17566
|
var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17581
|
-
_inherits(Ellipse, _TID300Measurement);
|
|
17582
17567
|
function Ellipse() {
|
|
17583
17568
|
_classCallCheck(this, Ellipse);
|
|
17584
17569
|
return _callSuper(this, Ellipse, arguments);
|
|
17585
17570
|
}
|
|
17586
|
-
|
|
17571
|
+
_inherits(Ellipse, _TID300Measurement);
|
|
17572
|
+
return _createClass(Ellipse, [{
|
|
17587
17573
|
key: "contentItem",
|
|
17588
17574
|
value: function contentItem() {
|
|
17589
17575
|
var _this$props = this.props,
|
|
@@ -17641,7 +17627,6 @@ var Ellipse$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17641
17627
|
return this.getMeasurement(measurements);
|
|
17642
17628
|
}
|
|
17643
17629
|
}]);
|
|
17644
|
-
return Ellipse;
|
|
17645
17630
|
}(TID300Measurement);
|
|
17646
17631
|
|
|
17647
17632
|
var ELLIPTICALROI$1 = "EllipticalRoi";
|
|
@@ -17651,7 +17636,7 @@ var EllipticalRoi = /*#__PURE__*/function () {
|
|
|
17651
17636
|
}
|
|
17652
17637
|
|
|
17653
17638
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
17654
|
-
_createClass(EllipticalRoi, null, [{
|
|
17639
|
+
return _createClass(EllipticalRoi, null, [{
|
|
17655
17640
|
key: "getMeasurementData",
|
|
17656
17641
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17657
17642
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17796,7 +17781,6 @@ var EllipticalRoi = /*#__PURE__*/function () {
|
|
|
17796
17781
|
};
|
|
17797
17782
|
}
|
|
17798
17783
|
}]);
|
|
17799
|
-
return EllipticalRoi;
|
|
17800
17784
|
}();
|
|
17801
17785
|
EllipticalRoi.toolType = ELLIPTICALROI$1;
|
|
17802
17786
|
EllipticalRoi.utilityToolType = ELLIPTICALROI$1;
|
|
@@ -17817,12 +17801,12 @@ EllipticalRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifie
|
|
|
17817
17801
|
MeasurementReport$3.registerTool(EllipticalRoi);
|
|
17818
17802
|
|
|
17819
17803
|
var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
17820
|
-
_inherits(Circle, _TID300Measurement);
|
|
17821
17804
|
function Circle() {
|
|
17822
17805
|
_classCallCheck(this, Circle);
|
|
17823
17806
|
return _callSuper(this, Circle, arguments);
|
|
17824
17807
|
}
|
|
17825
|
-
|
|
17808
|
+
_inherits(Circle, _TID300Measurement);
|
|
17809
|
+
return _createClass(Circle, [{
|
|
17826
17810
|
key: "contentItem",
|
|
17827
17811
|
value: function contentItem() {
|
|
17828
17812
|
var _this$props = this.props,
|
|
@@ -17899,7 +17883,6 @@ var Circle$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
17899
17883
|
return this.getMeasurement(measurements);
|
|
17900
17884
|
}
|
|
17901
17885
|
}]);
|
|
17902
|
-
return Circle;
|
|
17903
17886
|
}(TID300Measurement);
|
|
17904
17887
|
|
|
17905
17888
|
var CIRCLEROI = "CircleRoi";
|
|
@@ -17909,7 +17892,7 @@ var CircleRoi = /*#__PURE__*/function () {
|
|
|
17909
17892
|
}
|
|
17910
17893
|
|
|
17911
17894
|
/** Gets the measurement data for cornerstone, given DICOM SR measurement data. */
|
|
17912
|
-
_createClass(CircleRoi, null, [{
|
|
17895
|
+
return _createClass(CircleRoi, null, [{
|
|
17913
17896
|
key: "getMeasurementData",
|
|
17914
17897
|
value: function getMeasurementData(MeasurementGroup) {
|
|
17915
17898
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -17998,7 +17981,6 @@ var CircleRoi = /*#__PURE__*/function () {
|
|
|
17998
17981
|
};
|
|
17999
17982
|
}
|
|
18000
17983
|
}]);
|
|
18001
|
-
return CircleRoi;
|
|
18002
17984
|
}();
|
|
18003
17985
|
CircleRoi.toolType = CIRCLEROI;
|
|
18004
17986
|
CircleRoi.utilityToolType = CIRCLEROI;
|
|
@@ -18019,12 +18001,12 @@ CircleRoi.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier) {
|
|
|
18019
18001
|
MeasurementReport$3.registerTool(CircleRoi);
|
|
18020
18002
|
|
|
18021
18003
|
var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
18022
|
-
_inherits(Point, _TID300Measurement);
|
|
18023
18004
|
function Point() {
|
|
18024
18005
|
_classCallCheck(this, Point);
|
|
18025
18006
|
return _callSuper(this, Point, arguments);
|
|
18026
18007
|
}
|
|
18027
|
-
|
|
18008
|
+
_inherits(Point, _TID300Measurement);
|
|
18009
|
+
return _createClass(Point, [{
|
|
18028
18010
|
key: "contentItem",
|
|
18029
18011
|
value: function contentItem() {
|
|
18030
18012
|
var _this$props = this.props,
|
|
@@ -18065,7 +18047,6 @@ var Point$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
18065
18047
|
}]);
|
|
18066
18048
|
}
|
|
18067
18049
|
}]);
|
|
18068
|
-
return Point;
|
|
18069
18050
|
}(TID300Measurement);
|
|
18070
18051
|
|
|
18071
18052
|
var ARROW_ANNOTATE$1 = "ArrowAnnotate";
|
|
@@ -18074,7 +18055,7 @@ var ArrowAnnotate$2 = /*#__PURE__*/function () {
|
|
|
18074
18055
|
function ArrowAnnotate() {
|
|
18075
18056
|
_classCallCheck(this, ArrowAnnotate);
|
|
18076
18057
|
}
|
|
18077
|
-
_createClass(ArrowAnnotate, null, [{
|
|
18058
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
18078
18059
|
key: "getMeasurementData",
|
|
18079
18060
|
value: function getMeasurementData(MeasurementGroup) {
|
|
18080
18061
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -18139,7 +18120,6 @@ var ArrowAnnotate$2 = /*#__PURE__*/function () {
|
|
|
18139
18120
|
return TID300RepresentationArguments;
|
|
18140
18121
|
}
|
|
18141
18122
|
}]);
|
|
18142
|
-
return ArrowAnnotate;
|
|
18143
18123
|
}();
|
|
18144
18124
|
ArrowAnnotate$2.toolType = ARROW_ANNOTATE$1;
|
|
18145
18125
|
ArrowAnnotate$2.utilityToolType = ARROW_ANNOTATE$1;
|
|
@@ -22007,12 +21987,12 @@ function fillSegmentation(segmentation, inputLabelmaps3D) {
|
|
|
22007
21987
|
}
|
|
22008
21988
|
|
|
22009
21989
|
var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
22010
|
-
_inherits(CobbAngle, _OpenPolyline);
|
|
22011
21990
|
function CobbAngle() {
|
|
22012
21991
|
_classCallCheck(this, CobbAngle);
|
|
22013
21992
|
return _callSuper(this, CobbAngle, arguments);
|
|
22014
21993
|
}
|
|
22015
|
-
|
|
21994
|
+
_inherits(CobbAngle, _OpenPolyline);
|
|
21995
|
+
return _createClass(CobbAngle, [{
|
|
22016
21996
|
key: "getPoints",
|
|
22017
21997
|
value: function getPoints() {
|
|
22018
21998
|
var _this$props = this.props,
|
|
@@ -22046,7 +22026,6 @@ var CobbAngle$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
22046
22026
|
};
|
|
22047
22027
|
}
|
|
22048
22028
|
}]);
|
|
22049
|
-
return CobbAngle;
|
|
22050
22029
|
}(OpenPolyline);
|
|
22051
22030
|
|
|
22052
22031
|
var COBB_ANGLE = "CobbAngle";
|
|
@@ -22056,7 +22035,7 @@ var CobbAngle = /*#__PURE__*/function () {
|
|
|
22056
22035
|
}
|
|
22057
22036
|
|
|
22058
22037
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22059
|
-
_createClass(CobbAngle, null, [{
|
|
22038
|
+
return _createClass(CobbAngle, null, [{
|
|
22060
22039
|
key: "getMeasurementData",
|
|
22061
22040
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22062
22041
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22121,7 +22100,6 @@ var CobbAngle = /*#__PURE__*/function () {
|
|
|
22121
22100
|
};
|
|
22122
22101
|
}
|
|
22123
22102
|
}]);
|
|
22124
|
-
return CobbAngle;
|
|
22125
22103
|
}();
|
|
22126
22104
|
CobbAngle.toolType = COBB_ANGLE;
|
|
22127
22105
|
CobbAngle.utilityToolType = COBB_ANGLE;
|
|
@@ -22152,7 +22130,7 @@ var Angle = /*#__PURE__*/function () {
|
|
|
22152
22130
|
* @param MeasurementGroup
|
|
22153
22131
|
* @returns
|
|
22154
22132
|
*/
|
|
22155
|
-
_createClass(Angle, null, [{
|
|
22133
|
+
return _createClass(Angle, null, [{
|
|
22156
22134
|
key: "getMeasurementData",
|
|
22157
22135
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22158
22136
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22210,7 +22188,6 @@ var Angle = /*#__PURE__*/function () {
|
|
|
22210
22188
|
};
|
|
22211
22189
|
}
|
|
22212
22190
|
}]);
|
|
22213
|
-
return Angle;
|
|
22214
22191
|
}();
|
|
22215
22192
|
Angle.toolType = ANGLE;
|
|
22216
22193
|
Angle.utilityToolType = ANGLE;
|
|
@@ -22234,7 +22211,7 @@ var RectangleRoi = /*#__PURE__*/function () {
|
|
|
22234
22211
|
function RectangleRoi() {
|
|
22235
22212
|
_classCallCheck(this, RectangleRoi);
|
|
22236
22213
|
}
|
|
22237
|
-
_createClass(RectangleRoi, null, [{
|
|
22214
|
+
return _createClass(RectangleRoi, null, [{
|
|
22238
22215
|
key: "getMeasurementData",
|
|
22239
22216
|
value: function getMeasurementData(MeasurementGroup) {
|
|
22240
22217
|
var _MeasurementReport$ge = MeasurementReport$3.getSetupMeasurementData(MeasurementGroup),
|
|
@@ -22303,7 +22280,6 @@ var RectangleRoi = /*#__PURE__*/function () {
|
|
|
22303
22280
|
};
|
|
22304
22281
|
}
|
|
22305
22282
|
}]);
|
|
22306
|
-
return RectangleRoi;
|
|
22307
22283
|
}();
|
|
22308
22284
|
RectangleRoi.toolType = "RectangleRoi";
|
|
22309
22285
|
RectangleRoi.utilityToolType = "RectangleRoi";
|
|
@@ -22423,7 +22399,7 @@ var MeasurementReport$2 = /*#__PURE__*/function () {
|
|
|
22423
22399
|
function MeasurementReport() {
|
|
22424
22400
|
_classCallCheck(this, MeasurementReport);
|
|
22425
22401
|
}
|
|
22426
|
-
_createClass(MeasurementReport, null, [{
|
|
22402
|
+
return _createClass(MeasurementReport, null, [{
|
|
22427
22403
|
key: "getCornerstoneLabelFromDefaultState",
|
|
22428
22404
|
value: function getCornerstoneLabelFromDefaultState(defaultState) {
|
|
22429
22405
|
var _defaultState$finding = defaultState.findingSites,
|
|
@@ -22674,7 +22650,6 @@ var MeasurementReport$2 = /*#__PURE__*/function () {
|
|
|
22674
22650
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.toolType] = toolClass.utilityToolType;
|
|
22675
22651
|
}
|
|
22676
22652
|
}]);
|
|
22677
|
-
return MeasurementReport;
|
|
22678
22653
|
}();
|
|
22679
22654
|
MeasurementReport$2.MEASUREMENT_BY_TOOLTYPE = {};
|
|
22680
22655
|
MeasurementReport$2.CORNERSTONE_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -22690,7 +22665,7 @@ var Length = /*#__PURE__*/function () {
|
|
|
22690
22665
|
}
|
|
22691
22666
|
|
|
22692
22667
|
// TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
|
|
22693
|
-
_createClass(Length, null, [{
|
|
22668
|
+
return _createClass(Length, null, [{
|
|
22694
22669
|
key: "getMeasurementData",
|
|
22695
22670
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22696
22671
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Length.toolType),
|
|
@@ -22757,7 +22732,6 @@ var Length = /*#__PURE__*/function () {
|
|
|
22757
22732
|
};
|
|
22758
22733
|
}
|
|
22759
22734
|
}]);
|
|
22760
|
-
return Length;
|
|
22761
22735
|
}();
|
|
22762
22736
|
Length.toolType = LENGTH;
|
|
22763
22737
|
Length.utilityToolType = LENGTH;
|
|
@@ -22785,7 +22759,7 @@ var Bidirectional = /*#__PURE__*/function () {
|
|
|
22785
22759
|
function Bidirectional() {
|
|
22786
22760
|
_classCallCheck(this, Bidirectional);
|
|
22787
22761
|
}
|
|
22788
|
-
_createClass(Bidirectional, null, [{
|
|
22762
|
+
return _createClass(Bidirectional, null, [{
|
|
22789
22763
|
key: "getMeasurementData",
|
|
22790
22764
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
22791
22765
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Bidirectional.toolType),
|
|
@@ -22896,7 +22870,6 @@ var Bidirectional = /*#__PURE__*/function () {
|
|
|
22896
22870
|
};
|
|
22897
22871
|
}
|
|
22898
22872
|
}]);
|
|
22899
|
-
return Bidirectional;
|
|
22900
22873
|
}();
|
|
22901
22874
|
Bidirectional.toolType = BIDIRECTIONAL;
|
|
22902
22875
|
Bidirectional.utilityToolType = BIDIRECTIONAL;
|
|
@@ -23781,7 +23754,7 @@ var EllipticalROI = /*#__PURE__*/function () {
|
|
|
23781
23754
|
function EllipticalROI() {
|
|
23782
23755
|
_classCallCheck(this, EllipticalROI);
|
|
23783
23756
|
}
|
|
23784
|
-
_createClass(EllipticalROI, null, [{
|
|
23757
|
+
return _createClass(EllipticalROI, null, [{
|
|
23785
23758
|
key: "getMeasurementData",
|
|
23786
23759
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
23787
23760
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, EllipticalROI.toolType),
|
|
@@ -23927,7 +23900,6 @@ var EllipticalROI = /*#__PURE__*/function () {
|
|
|
23927
23900
|
};
|
|
23928
23901
|
}
|
|
23929
23902
|
}]);
|
|
23930
|
-
return EllipticalROI;
|
|
23931
23903
|
}();
|
|
23932
23904
|
EllipticalROI.toolType = ELLIPTICALROI;
|
|
23933
23905
|
EllipticalROI.utilityToolType = ELLIPTICALROI;
|
|
@@ -23951,12 +23923,12 @@ EllipticalROI.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifie
|
|
|
23951
23923
|
MeasurementReport$2.registerTool(EllipticalROI);
|
|
23952
23924
|
|
|
23953
23925
|
var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
23954
|
-
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23955
23926
|
function ArrowAnnotate() {
|
|
23956
23927
|
_classCallCheck(this, ArrowAnnotate);
|
|
23957
23928
|
return _callSuper(this, ArrowAnnotate, arguments);
|
|
23958
23929
|
}
|
|
23959
|
-
|
|
23930
|
+
_inherits(ArrowAnnotate, _OpenPolyline);
|
|
23931
|
+
return _createClass(ArrowAnnotate, [{
|
|
23960
23932
|
key: "getPoints",
|
|
23961
23933
|
value: function getPoints() {
|
|
23962
23934
|
return this.props.points;
|
|
@@ -23983,7 +23955,6 @@ var ArrowAnnotate$1 = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
23983
23955
|
};
|
|
23984
23956
|
}
|
|
23985
23957
|
}]);
|
|
23986
|
-
return ArrowAnnotate;
|
|
23987
23958
|
}(OpenPolyline);
|
|
23988
23959
|
|
|
23989
23960
|
var ARROW_ANNOTATE = "ArrowAnnotate";
|
|
@@ -23994,7 +23965,7 @@ var ArrowAnnotate = /*#__PURE__*/function () {
|
|
|
23994
23965
|
function ArrowAnnotate() {
|
|
23995
23966
|
_classCallCheck(this, ArrowAnnotate);
|
|
23996
23967
|
}
|
|
23997
|
-
_createClass(ArrowAnnotate, null, [{
|
|
23968
|
+
return _createClass(ArrowAnnotate, null, [{
|
|
23998
23969
|
key: "getMeasurementData",
|
|
23999
23970
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24000
23971
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, ArrowAnnotate.toolType),
|
|
@@ -24082,7 +24053,6 @@ var ArrowAnnotate = /*#__PURE__*/function () {
|
|
|
24082
24053
|
return TID300RepresentationArguments;
|
|
24083
24054
|
}
|
|
24084
24055
|
}]);
|
|
24085
|
-
return ArrowAnnotate;
|
|
24086
24056
|
}();
|
|
24087
24057
|
ArrowAnnotate.toolType = ARROW_ANNOTATE;
|
|
24088
24058
|
ArrowAnnotate.utilityToolType = ARROW_ANNOTATE;
|
|
@@ -24108,7 +24078,7 @@ var Probe = /*#__PURE__*/function () {
|
|
|
24108
24078
|
function Probe() {
|
|
24109
24079
|
_classCallCheck(this, Probe);
|
|
24110
24080
|
}
|
|
24111
|
-
_createClass(Probe, null, [{
|
|
24081
|
+
return _createClass(Probe, null, [{
|
|
24112
24082
|
key: "getMeasurementData",
|
|
24113
24083
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24114
24084
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, Probe.toolType),
|
|
@@ -24163,7 +24133,6 @@ var Probe = /*#__PURE__*/function () {
|
|
|
24163
24133
|
return TID300RepresentationArguments;
|
|
24164
24134
|
}
|
|
24165
24135
|
}]);
|
|
24166
|
-
return Probe;
|
|
24167
24136
|
}();
|
|
24168
24137
|
Probe.toolType = PROBE;
|
|
24169
24138
|
Probe.utilityToolType = PROBE;
|
|
@@ -24190,7 +24159,7 @@ var PlanarFreehandROI = /*#__PURE__*/function () {
|
|
|
24190
24159
|
function PlanarFreehandROI() {
|
|
24191
24160
|
_classCallCheck(this, PlanarFreehandROI);
|
|
24192
24161
|
}
|
|
24193
|
-
_createClass(PlanarFreehandROI, null, [{
|
|
24162
|
+
return _createClass(PlanarFreehandROI, null, [{
|
|
24194
24163
|
key: "getMeasurementData",
|
|
24195
24164
|
value: function getMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
|
|
24196
24165
|
var _MeasurementReport$ge = MeasurementReport$2.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, PlanarFreehandROI.toolType),
|
|
@@ -24267,7 +24236,6 @@ var PlanarFreehandROI = /*#__PURE__*/function () {
|
|
|
24267
24236
|
};
|
|
24268
24237
|
}
|
|
24269
24238
|
}]);
|
|
24270
|
-
return PlanarFreehandROI;
|
|
24271
24239
|
}();
|
|
24272
24240
|
PlanarFreehandROI.toolType = PLANARFREEHANDROI;
|
|
24273
24241
|
PlanarFreehandROI.utilityToolType = PLANARFREEHANDROI;
|
|
@@ -24429,7 +24397,7 @@ var Segmentation = /*#__PURE__*/function () {
|
|
|
24429
24397
|
* @param dataset
|
|
24430
24398
|
* @return {{}}
|
|
24431
24399
|
*/
|
|
24432
|
-
_createClass(Segmentation, null, [{
|
|
24400
|
+
return _createClass(Segmentation, null, [{
|
|
24433
24401
|
key: "generateSegments",
|
|
24434
24402
|
value: function generateSegments(dataset) {
|
|
24435
24403
|
if (dataset.SegmentSequence.constructor.name !== "Array") {
|
|
@@ -24477,7 +24445,6 @@ var Segmentation = /*#__PURE__*/function () {
|
|
|
24477
24445
|
return segments;
|
|
24478
24446
|
}
|
|
24479
24447
|
}]);
|
|
24480
|
-
return Segmentation;
|
|
24481
24448
|
}();
|
|
24482
24449
|
|
|
24483
24450
|
var VTKjs = {
|
|
@@ -24503,7 +24470,7 @@ var MeasurementReport$1 = /*#__PURE__*/function () {
|
|
|
24503
24470
|
function MeasurementReport() {
|
|
24504
24471
|
_classCallCheck(this, MeasurementReport);
|
|
24505
24472
|
}
|
|
24506
|
-
_createClass(MeasurementReport, null, [{
|
|
24473
|
+
return _createClass(MeasurementReport, null, [{
|
|
24507
24474
|
key: "generateReport",
|
|
24508
24475
|
value: function generateReport(rois, metadataProvider, options) {
|
|
24509
24476
|
// Input is all ROIS returned via viewer.getALLROIs()
|
|
@@ -24642,7 +24609,6 @@ var MeasurementReport$1 = /*#__PURE__*/function () {
|
|
|
24642
24609
|
MeasurementReport.MEASUREMENT_BY_TOOLTYPE[toolClass.graphicType] = toolClass.utilityToolType;
|
|
24643
24610
|
}
|
|
24644
24611
|
}]);
|
|
24645
|
-
return MeasurementReport;
|
|
24646
24612
|
}();
|
|
24647
24613
|
MeasurementReport$1.MEASUREMENT_BY_TOOLTYPE = {};
|
|
24648
24614
|
MeasurementReport$1.MICROSCOPY_TOOL_CLASSES_BY_UTILITY_TYPE = {};
|
|
@@ -24652,7 +24618,7 @@ var Polyline = /*#__PURE__*/function () {
|
|
|
24652
24618
|
function Polyline() {
|
|
24653
24619
|
_classCallCheck(this, Polyline);
|
|
24654
24620
|
}
|
|
24655
|
-
_createClass(Polyline, null, [{
|
|
24621
|
+
return _createClass(Polyline, null, [{
|
|
24656
24622
|
key: "getMeasurementData",
|
|
24657
24623
|
value: function getMeasurementData(measurementContent) {
|
|
24658
24624
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24689,7 +24655,6 @@ var Polyline = /*#__PURE__*/function () {
|
|
|
24689
24655
|
};
|
|
24690
24656
|
}
|
|
24691
24657
|
}]);
|
|
24692
|
-
return Polyline;
|
|
24693
24658
|
}();
|
|
24694
24659
|
Polyline.graphicType = "POLYLINE";
|
|
24695
24660
|
Polyline.toolType = "Polyline";
|
|
@@ -24698,12 +24663,12 @@ Polyline.TID300Representation = Polyline$1;
|
|
|
24698
24663
|
MeasurementReport$1.registerTool(Polyline);
|
|
24699
24664
|
|
|
24700
24665
|
var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
24701
|
-
_inherits(Polygon, _TID300Measurement);
|
|
24702
24666
|
function Polygon() {
|
|
24703
24667
|
_classCallCheck(this, Polygon);
|
|
24704
24668
|
return _callSuper(this, Polygon, arguments);
|
|
24705
24669
|
}
|
|
24706
|
-
|
|
24670
|
+
_inherits(Polygon, _TID300Measurement);
|
|
24671
|
+
return _createClass(Polygon, [{
|
|
24707
24672
|
key: "contentItem",
|
|
24708
24673
|
value: function contentItem() {
|
|
24709
24674
|
var _this$props = this.props,
|
|
@@ -24757,14 +24722,13 @@ var Polygon$1 = /*#__PURE__*/function (_TID300Measurement) {
|
|
|
24757
24722
|
}]);
|
|
24758
24723
|
}
|
|
24759
24724
|
}]);
|
|
24760
|
-
return Polygon;
|
|
24761
24725
|
}(TID300Measurement);
|
|
24762
24726
|
|
|
24763
24727
|
var Polygon = /*#__PURE__*/function () {
|
|
24764
24728
|
function Polygon() {
|
|
24765
24729
|
_classCallCheck(this, Polygon);
|
|
24766
24730
|
}
|
|
24767
|
-
_createClass(Polygon, null, [{
|
|
24731
|
+
return _createClass(Polygon, null, [{
|
|
24768
24732
|
key: "getMeasurementData",
|
|
24769
24733
|
value: function getMeasurementData(measurementContent) {
|
|
24770
24734
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24801,7 +24765,6 @@ var Polygon = /*#__PURE__*/function () {
|
|
|
24801
24765
|
};
|
|
24802
24766
|
}
|
|
24803
24767
|
}]);
|
|
24804
|
-
return Polygon;
|
|
24805
24768
|
}();
|
|
24806
24769
|
Polygon.graphicType = "POLYGON";
|
|
24807
24770
|
Polygon.toolType = "Polygon";
|
|
@@ -24813,7 +24776,7 @@ var Point = /*#__PURE__*/function () {
|
|
|
24813
24776
|
function Point() {
|
|
24814
24777
|
_classCallCheck(this, Point);
|
|
24815
24778
|
}
|
|
24816
|
-
_createClass(Point, null, [{
|
|
24779
|
+
return _createClass(Point, null, [{
|
|
24817
24780
|
key: "getMeasurementData",
|
|
24818
24781
|
value: function getMeasurementData(measurementContent) {
|
|
24819
24782
|
var measurement = measurementContent.map(function (item) {
|
|
@@ -24841,7 +24804,6 @@ var Point = /*#__PURE__*/function () {
|
|
|
24841
24804
|
};
|
|
24842
24805
|
}
|
|
24843
24806
|
}]);
|
|
24844
|
-
return Point;
|
|
24845
24807
|
}();
|
|
24846
24808
|
Point.graphicType = "POINT";
|
|
24847
24809
|
Point.toolType = "Point";
|
|
@@ -24853,7 +24815,7 @@ var Circle = /*#__PURE__*/function () {
|
|
|
24853
24815
|
function Circle() {
|
|
24854
24816
|
_classCallCheck(this, Circle);
|
|
24855
24817
|
}
|
|
24856
|
-
_createClass(Circle, null, [{
|
|
24818
|
+
return _createClass(Circle, null, [{
|
|
24857
24819
|
key: "getMeasurementData",
|
|
24858
24820
|
value: function getMeasurementData(measurementContent) {
|
|
24859
24821
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24890,7 +24852,6 @@ var Circle = /*#__PURE__*/function () {
|
|
|
24890
24852
|
};
|
|
24891
24853
|
}
|
|
24892
24854
|
}]);
|
|
24893
|
-
return Circle;
|
|
24894
24855
|
}();
|
|
24895
24856
|
Circle.graphicType = "CIRCLE";
|
|
24896
24857
|
Circle.toolType = "Circle";
|
|
@@ -24902,7 +24863,7 @@ var Ellipse = /*#__PURE__*/function () {
|
|
|
24902
24863
|
function Ellipse() {
|
|
24903
24864
|
_classCallCheck(this, Ellipse);
|
|
24904
24865
|
}
|
|
24905
|
-
_createClass(Ellipse, null, [{
|
|
24866
|
+
return _createClass(Ellipse, null, [{
|
|
24906
24867
|
key: "getMeasurementData",
|
|
24907
24868
|
value: function getMeasurementData(measurementContent) {
|
|
24908
24869
|
// removing duplication and Getting only the graphicData information
|
|
@@ -24939,7 +24900,6 @@ var Ellipse = /*#__PURE__*/function () {
|
|
|
24939
24900
|
};
|
|
24940
24901
|
}
|
|
24941
24902
|
}]);
|
|
24942
|
-
return Ellipse;
|
|
24943
24903
|
}();
|
|
24944
24904
|
Ellipse.graphicType = "ELLIPSE";
|
|
24945
24905
|
Ellipse.toolType = "Ellipse";
|
|
@@ -24969,12 +24929,12 @@ var TID1500 = {
|
|
|
24969
24929
|
};
|
|
24970
24930
|
|
|
24971
24931
|
var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
24972
|
-
_inherits(Calibration, _OpenPolyline);
|
|
24973
24932
|
function Calibration() {
|
|
24974
24933
|
_classCallCheck(this, Calibration);
|
|
24975
24934
|
return _callSuper(this, Calibration, arguments);
|
|
24976
24935
|
}
|
|
24977
|
-
|
|
24936
|
+
_inherits(Calibration, _OpenPolyline);
|
|
24937
|
+
return _createClass(Calibration, [{
|
|
24978
24938
|
key: "getPoints",
|
|
24979
24939
|
value: function getPoints() {
|
|
24980
24940
|
var _this$props = this.props,
|
|
@@ -25004,7 +24964,6 @@ var Calibration = /*#__PURE__*/function (_OpenPolyline) {
|
|
|
25004
24964
|
};
|
|
25005
24965
|
}
|
|
25006
24966
|
}]);
|
|
25007
|
-
return Calibration;
|
|
25008
24967
|
}(OpenPolyline);
|
|
25009
24968
|
|
|
25010
24969
|
// To be implemented:
|
|
@@ -25413,7 +25372,7 @@ var Code = /*#__PURE__*/function () {
|
|
|
25413
25372
|
this[_schemeDesignator] = options.schemeDesignator;
|
|
25414
25373
|
this[_schemeVersion] = options.schemeVersion || null;
|
|
25415
25374
|
}
|
|
25416
|
-
_createClass(Code, [{
|
|
25375
|
+
return _createClass(Code, [{
|
|
25417
25376
|
key: "value",
|
|
25418
25377
|
get: function get() {
|
|
25419
25378
|
return this[_value];
|
|
@@ -25434,7 +25393,6 @@ var Code = /*#__PURE__*/function () {
|
|
|
25434
25393
|
return this[_schemeVersion];
|
|
25435
25394
|
}
|
|
25436
25395
|
}]);
|
|
25437
|
-
return Code;
|
|
25438
25396
|
}();
|
|
25439
25397
|
var CodedConcept = /*#__PURE__*/function () {
|
|
25440
25398
|
function CodedConcept(options) {
|
|
@@ -25455,7 +25413,7 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25455
25413
|
this.CodingSchemeVersion = options.schemeVersion;
|
|
25456
25414
|
}
|
|
25457
25415
|
}
|
|
25458
|
-
_createClass(CodedConcept, [{
|
|
25416
|
+
return _createClass(CodedConcept, [{
|
|
25459
25417
|
key: "equals",
|
|
25460
25418
|
value: function equals(other) {
|
|
25461
25419
|
if (other.value === this.value && other.schemeDesignator === this.schemeDesignator) {
|
|
@@ -25487,7 +25445,6 @@ var CodedConcept = /*#__PURE__*/function () {
|
|
|
25487
25445
|
return this.CodingSchemeVersion;
|
|
25488
25446
|
}
|
|
25489
25447
|
}]);
|
|
25490
|
-
return CodedConcept;
|
|
25491
25448
|
}();
|
|
25492
25449
|
|
|
25493
25450
|
var coding = /*#__PURE__*/Object.freeze({
|
|
@@ -25580,7 +25537,6 @@ function DT(date) {
|
|
|
25580
25537
|
return DA(date) + TM(date);
|
|
25581
25538
|
}
|
|
25582
25539
|
var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
25583
|
-
_inherits(ContentSequence, _Array);
|
|
25584
25540
|
function ContentSequence() {
|
|
25585
25541
|
_classCallCheck(this, ContentSequence);
|
|
25586
25542
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -25591,6 +25547,7 @@ var ContentSequence = /*#__PURE__*/function (_Array) {
|
|
|
25591
25547
|
|
|
25592
25548
|
// filterBy(options) {
|
|
25593
25549
|
// }
|
|
25550
|
+
_inherits(ContentSequence, _Array);
|
|
25594
25551
|
return _createClass(ContentSequence);
|
|
25595
25552
|
}(/*#__PURE__*/_wrapNativeSuper(Array));
|
|
25596
25553
|
var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
@@ -25624,7 +25581,6 @@ var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
|
|
|
25624
25581
|
// }
|
|
25625
25582
|
);
|
|
25626
25583
|
var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
25627
|
-
_inherits(CodeContentItem, _ContentItem);
|
|
25628
25584
|
function CodeContentItem(options) {
|
|
25629
25585
|
var _this;
|
|
25630
25586
|
_classCallCheck(this, CodeContentItem);
|
|
@@ -25642,10 +25598,10 @@ var CodeContentItem = /*#__PURE__*/function (_ContentItem) {
|
|
|
25642
25598
|
_this.ConceptCodeSequence = addAccessors([options.value]);
|
|
25643
25599
|
return _this;
|
|
25644
25600
|
}
|
|
25601
|
+
_inherits(CodeContentItem, _ContentItem);
|
|
25645
25602
|
return _createClass(CodeContentItem);
|
|
25646
25603
|
}(ContentItem);
|
|
25647
25604
|
var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
25648
|
-
_inherits(TextContentItem, _ContentItem2);
|
|
25649
25605
|
function TextContentItem(options) {
|
|
25650
25606
|
var _this2;
|
|
25651
25607
|
_classCallCheck(this, TextContentItem);
|
|
@@ -25663,10 +25619,10 @@ var TextContentItem = /*#__PURE__*/function (_ContentItem2) {
|
|
|
25663
25619
|
_this2.TextValue = options.value;
|
|
25664
25620
|
return _this2;
|
|
25665
25621
|
}
|
|
25622
|
+
_inherits(TextContentItem, _ContentItem2);
|
|
25666
25623
|
return _createClass(TextContentItem);
|
|
25667
25624
|
}(ContentItem);
|
|
25668
25625
|
var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
25669
|
-
_inherits(PNameContentItem, _ContentItem3);
|
|
25670
25626
|
function PNameContentItem(options) {
|
|
25671
25627
|
var _this3;
|
|
25672
25628
|
_classCallCheck(this, PNameContentItem);
|
|
@@ -25684,10 +25640,10 @@ var PNameContentItem = /*#__PURE__*/function (_ContentItem3) {
|
|
|
25684
25640
|
_this3.PersonName = options.value;
|
|
25685
25641
|
return _this3;
|
|
25686
25642
|
}
|
|
25643
|
+
_inherits(PNameContentItem, _ContentItem3);
|
|
25687
25644
|
return _createClass(PNameContentItem);
|
|
25688
25645
|
}(ContentItem);
|
|
25689
25646
|
var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
25690
|
-
_inherits(TimeContentItem, _ContentItem4);
|
|
25691
25647
|
function TimeContentItem(options) {
|
|
25692
25648
|
var _this4;
|
|
25693
25649
|
_classCallCheck(this, TimeContentItem);
|
|
@@ -25705,10 +25661,10 @@ var TimeContentItem = /*#__PURE__*/function (_ContentItem4) {
|
|
|
25705
25661
|
_this4.Time = TM(options.value);
|
|
25706
25662
|
return _this4;
|
|
25707
25663
|
}
|
|
25664
|
+
_inherits(TimeContentItem, _ContentItem4);
|
|
25708
25665
|
return _createClass(TimeContentItem);
|
|
25709
25666
|
}(ContentItem);
|
|
25710
25667
|
var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
25711
|
-
_inherits(DateContentItem, _ContentItem5);
|
|
25712
25668
|
function DateContentItem(options) {
|
|
25713
25669
|
var _this5;
|
|
25714
25670
|
_classCallCheck(this, DateContentItem);
|
|
@@ -25726,10 +25682,10 @@ var DateContentItem = /*#__PURE__*/function (_ContentItem5) {
|
|
|
25726
25682
|
_this5.Date = DA(options.value);
|
|
25727
25683
|
return _this5;
|
|
25728
25684
|
}
|
|
25685
|
+
_inherits(DateContentItem, _ContentItem5);
|
|
25729
25686
|
return _createClass(DateContentItem);
|
|
25730
25687
|
}(ContentItem);
|
|
25731
25688
|
var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
25732
|
-
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25733
25689
|
function DateTimeContentItem(options) {
|
|
25734
25690
|
var _this6;
|
|
25735
25691
|
_classCallCheck(this, DateTimeContentItem);
|
|
@@ -25747,10 +25703,10 @@ var DateTimeContentItem = /*#__PURE__*/function (_ContentItem6) {
|
|
|
25747
25703
|
_this6.DateTime = DT(options.value);
|
|
25748
25704
|
return _this6;
|
|
25749
25705
|
}
|
|
25706
|
+
_inherits(DateTimeContentItem, _ContentItem6);
|
|
25750
25707
|
return _createClass(DateTimeContentItem);
|
|
25751
25708
|
}(ContentItem);
|
|
25752
25709
|
var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
25753
|
-
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25754
25710
|
function UIDRefContentItem(options) {
|
|
25755
25711
|
var _this7;
|
|
25756
25712
|
_classCallCheck(this, UIDRefContentItem);
|
|
@@ -25768,10 +25724,10 @@ var UIDRefContentItem = /*#__PURE__*/function (_ContentItem7) {
|
|
|
25768
25724
|
_this7.UID = options.value;
|
|
25769
25725
|
return _this7;
|
|
25770
25726
|
}
|
|
25727
|
+
_inherits(UIDRefContentItem, _ContentItem7);
|
|
25771
25728
|
return _createClass(UIDRefContentItem);
|
|
25772
25729
|
}(ContentItem);
|
|
25773
25730
|
var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
25774
|
-
_inherits(NumContentItem, _ContentItem8);
|
|
25775
25731
|
function NumContentItem(options) {
|
|
25776
25732
|
var _this8;
|
|
25777
25733
|
_classCallCheck(this, NumContentItem);
|
|
@@ -25807,10 +25763,10 @@ var NumContentItem = /*#__PURE__*/function (_ContentItem8) {
|
|
|
25807
25763
|
}
|
|
25808
25764
|
return _this8;
|
|
25809
25765
|
}
|
|
25766
|
+
_inherits(NumContentItem, _ContentItem8);
|
|
25810
25767
|
return _createClass(NumContentItem);
|
|
25811
25768
|
}(ContentItem);
|
|
25812
25769
|
var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
25813
|
-
_inherits(ContainerContentItem, _ContentItem9);
|
|
25814
25770
|
function ContainerContentItem(options) {
|
|
25815
25771
|
var _this9;
|
|
25816
25772
|
_classCallCheck(this, ContainerContentItem);
|
|
@@ -25835,10 +25791,10 @@ var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
|
|
|
25835
25791
|
}
|
|
25836
25792
|
return _this9;
|
|
25837
25793
|
}
|
|
25794
|
+
_inherits(ContainerContentItem, _ContentItem9);
|
|
25838
25795
|
return _createClass(ContainerContentItem);
|
|
25839
25796
|
}(ContentItem);
|
|
25840
25797
|
var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
25841
|
-
_inherits(CompositeContentItem, _ContentItem0);
|
|
25842
25798
|
function CompositeContentItem(options) {
|
|
25843
25799
|
var _this0;
|
|
25844
25800
|
_classCallCheck(this, CompositeContentItem);
|
|
@@ -25865,10 +25821,10 @@ var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
|
25865
25821
|
_this0.ReferenceSOPSequence = [item];
|
|
25866
25822
|
return _this0;
|
|
25867
25823
|
}
|
|
25824
|
+
_inherits(CompositeContentItem, _ContentItem0);
|
|
25868
25825
|
return _createClass(CompositeContentItem);
|
|
25869
25826
|
}(ContentItem);
|
|
25870
25827
|
var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
25871
|
-
_inherits(ImageContentItem, _ContentItem1);
|
|
25872
25828
|
function ImageContentItem(options) {
|
|
25873
25829
|
var _this1;
|
|
25874
25830
|
_classCallCheck(this, ImageContentItem);
|
|
@@ -25909,10 +25865,10 @@ var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
|
25909
25865
|
_this1.ReferencedSOPSequence = [item];
|
|
25910
25866
|
return _this1;
|
|
25911
25867
|
}
|
|
25868
|
+
_inherits(ImageContentItem, _ContentItem1);
|
|
25912
25869
|
return _createClass(ImageContentItem);
|
|
25913
25870
|
}(ContentItem);
|
|
25914
25871
|
var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
25915
|
-
_inherits(ScoordContentItem, _ContentItem10);
|
|
25916
25872
|
function ScoordContentItem(options) {
|
|
25917
25873
|
var _this10;
|
|
25918
25874
|
_classCallCheck(this, ScoordContentItem);
|
|
@@ -25956,10 +25912,10 @@ var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
|
25956
25912
|
}
|
|
25957
25913
|
return _this10;
|
|
25958
25914
|
}
|
|
25915
|
+
_inherits(ScoordContentItem, _ContentItem10);
|
|
25959
25916
|
return _createClass(ScoordContentItem);
|
|
25960
25917
|
}(ContentItem);
|
|
25961
25918
|
var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
25962
|
-
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
25963
25919
|
function Scoord3DContentItem(options) {
|
|
25964
25920
|
var _this11;
|
|
25965
25921
|
_classCallCheck(this, Scoord3DContentItem);
|
|
@@ -26003,10 +25959,10 @@ var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
|
26003
25959
|
}
|
|
26004
25960
|
return _this11;
|
|
26005
25961
|
}
|
|
25962
|
+
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
26006
25963
|
return _createClass(Scoord3DContentItem);
|
|
26007
25964
|
}(ContentItem);
|
|
26008
25965
|
var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
26009
|
-
_inherits(TcoordContentItem, _ContentItem12);
|
|
26010
25966
|
function TcoordContentItem(options) {
|
|
26011
25967
|
var _this12;
|
|
26012
25968
|
_classCallCheck(this, TcoordContentItem);
|
|
@@ -26043,6 +25999,7 @@ var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
|
26043
25999
|
}
|
|
26044
26000
|
return _this12;
|
|
26045
26001
|
}
|
|
26002
|
+
_inherits(TcoordContentItem, _ContentItem12);
|
|
26046
26003
|
return _createClass(TcoordContentItem);
|
|
26047
26004
|
}(ContentItem);
|
|
26048
26005
|
|
|
@@ -26072,7 +26029,6 @@ var valueTypes = /*#__PURE__*/Object.freeze({
|
|
|
26072
26029
|
});
|
|
26073
26030
|
|
|
26074
26031
|
var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem) {
|
|
26075
|
-
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26076
26032
|
function LongitudinalTemporalOffsetFromEvent(options) {
|
|
26077
26033
|
var _this;
|
|
26078
26034
|
_classCallCheck(this, LongitudinalTemporalOffsetFromEvent);
|
|
@@ -26099,10 +26055,10 @@ var LongitudinalTemporalOffsetFromEvent = /*#__PURE__*/function (_NumContentItem
|
|
|
26099
26055
|
_this.ContentSequence.push(item);
|
|
26100
26056
|
return _this;
|
|
26101
26057
|
}
|
|
26058
|
+
_inherits(LongitudinalTemporalOffsetFromEvent, _NumContentItem);
|
|
26102
26059
|
return _createClass(LongitudinalTemporalOffsetFromEvent);
|
|
26103
26060
|
}(NumContentItem);
|
|
26104
26061
|
var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
26105
|
-
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26106
26062
|
function SourceImageForRegion(options) {
|
|
26107
26063
|
_classCallCheck(this, SourceImageForRegion);
|
|
26108
26064
|
return _callSuper(this, SourceImageForRegion, [{
|
|
@@ -26117,10 +26073,10 @@ var SourceImageForRegion = /*#__PURE__*/function (_ImageContentItem) {
|
|
|
26117
26073
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26118
26074
|
}]);
|
|
26119
26075
|
}
|
|
26076
|
+
_inherits(SourceImageForRegion, _ImageContentItem);
|
|
26120
26077
|
return _createClass(SourceImageForRegion);
|
|
26121
26078
|
}(ImageContentItem);
|
|
26122
26079
|
var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
26123
|
-
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26124
26080
|
function SourceImageForSegmentation(options) {
|
|
26125
26081
|
_classCallCheck(this, SourceImageForSegmentation);
|
|
26126
26082
|
return _callSuper(this, SourceImageForSegmentation, [{
|
|
@@ -26135,10 +26091,10 @@ var SourceImageForSegmentation = /*#__PURE__*/function (_ImageContentItem2) {
|
|
|
26135
26091
|
relationshipType: RelationshipTypes.SELECTED_FROM
|
|
26136
26092
|
}]);
|
|
26137
26093
|
}
|
|
26094
|
+
_inherits(SourceImageForSegmentation, _ImageContentItem2);
|
|
26138
26095
|
return _createClass(SourceImageForSegmentation);
|
|
26139
26096
|
}(ImageContentItem);
|
|
26140
26097
|
var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
26141
|
-
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26142
26098
|
function SourceSeriesForSegmentation(options) {
|
|
26143
26099
|
_classCallCheck(this, SourceSeriesForSegmentation);
|
|
26144
26100
|
return _callSuper(this, SourceSeriesForSegmentation, [{
|
|
@@ -26151,10 +26107,10 @@ var SourceSeriesForSegmentation = /*#__PURE__*/function (_UIDRefContentItem) {
|
|
|
26151
26107
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26152
26108
|
}]);
|
|
26153
26109
|
}
|
|
26110
|
+
_inherits(SourceSeriesForSegmentation, _UIDRefContentItem);
|
|
26154
26111
|
return _createClass(SourceSeriesForSegmentation);
|
|
26155
26112
|
}(UIDRefContentItem);
|
|
26156
26113
|
var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
26157
|
-
_inherits(ImageRegion, _ScoordContentItem);
|
|
26158
26114
|
function ImageRegion(options) {
|
|
26159
26115
|
var _this2;
|
|
26160
26116
|
_classCallCheck(this, ImageRegion);
|
|
@@ -26182,10 +26138,10 @@ var ImageRegion = /*#__PURE__*/function (_ScoordContentItem) {
|
|
|
26182
26138
|
_this2.ContentSequence.push(options.sourceImage);
|
|
26183
26139
|
return _this2;
|
|
26184
26140
|
}
|
|
26141
|
+
_inherits(ImageRegion, _ScoordContentItem);
|
|
26185
26142
|
return _createClass(ImageRegion);
|
|
26186
26143
|
}(ScoordContentItem);
|
|
26187
26144
|
var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
26188
|
-
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26189
26145
|
function ImageRegion3D(options) {
|
|
26190
26146
|
var _this3;
|
|
26191
26147
|
_classCallCheck(this, ImageRegion3D);
|
|
@@ -26208,10 +26164,10 @@ var ImageRegion3D = /*#__PURE__*/function (_Scoord3DContentItem) {
|
|
|
26208
26164
|
}
|
|
26209
26165
|
return _this3;
|
|
26210
26166
|
}
|
|
26167
|
+
_inherits(ImageRegion3D, _Scoord3DContentItem);
|
|
26211
26168
|
return _createClass(ImageRegion3D);
|
|
26212
26169
|
}(Scoord3DContentItem);
|
|
26213
26170
|
var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
26214
|
-
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26215
26171
|
function VolumeSurface(options) {
|
|
26216
26172
|
var _this4;
|
|
26217
26173
|
_classCallCheck(this, VolumeSurface);
|
|
@@ -26247,10 +26203,10 @@ var VolumeSurface = /*#__PURE__*/function (_Scoord3DContentItem2) {
|
|
|
26247
26203
|
}
|
|
26248
26204
|
return _this4;
|
|
26249
26205
|
}
|
|
26206
|
+
_inherits(VolumeSurface, _Scoord3DContentItem2);
|
|
26250
26207
|
return _createClass(VolumeSurface);
|
|
26251
26208
|
}(Scoord3DContentItem);
|
|
26252
26209
|
var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem) {
|
|
26253
|
-
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26254
26210
|
function ReferencedRealWorldValueMap(options) {
|
|
26255
26211
|
_classCallCheck(this, ReferencedRealWorldValueMap);
|
|
26256
26212
|
return _callSuper(this, ReferencedRealWorldValueMap, [{
|
|
@@ -26264,10 +26220,10 @@ var ReferencedRealWorldValueMap = /*#__PURE__*/function (_CompositeContentItem)
|
|
|
26264
26220
|
relationshipType: RelationshipTypes.CONTAINS
|
|
26265
26221
|
}]);
|
|
26266
26222
|
}
|
|
26223
|
+
_inherits(ReferencedRealWorldValueMap, _CompositeContentItem);
|
|
26267
26224
|
return _createClass(ReferencedRealWorldValueMap);
|
|
26268
26225
|
}(CompositeContentItem);
|
|
26269
26226
|
var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
26270
|
-
_inherits(FindingSite, _CodeContentItem);
|
|
26271
26227
|
function FindingSite(options) {
|
|
26272
26228
|
var _this5;
|
|
26273
26229
|
_classCallCheck(this, FindingSite);
|
|
@@ -26307,10 +26263,10 @@ var FindingSite = /*#__PURE__*/function (_CodeContentItem) {
|
|
|
26307
26263
|
}
|
|
26308
26264
|
return _this5;
|
|
26309
26265
|
}
|
|
26266
|
+
_inherits(FindingSite, _CodeContentItem);
|
|
26310
26267
|
return _createClass(FindingSite);
|
|
26311
26268
|
}(CodeContentItem);
|
|
26312
26269
|
var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
26313
|
-
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26314
26270
|
function ReferencedSegmentationFrame(options) {
|
|
26315
26271
|
var _this6;
|
|
26316
26272
|
_classCallCheck(this, ReferencedSegmentationFrame);
|
|
@@ -26348,10 +26304,10 @@ var ReferencedSegmentationFrame = /*#__PURE__*/function (_ContentSequence) {
|
|
|
26348
26304
|
_this6.push(options.sourceImage);
|
|
26349
26305
|
return _this6;
|
|
26350
26306
|
}
|
|
26307
|
+
_inherits(ReferencedSegmentationFrame, _ContentSequence);
|
|
26351
26308
|
return _createClass(ReferencedSegmentationFrame);
|
|
26352
26309
|
}(ContentSequence);
|
|
26353
26310
|
var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
26354
|
-
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26355
26311
|
function ReferencedSegmentation(options) {
|
|
26356
26312
|
var _this7;
|
|
26357
26313
|
_classCallCheck(this, ReferencedSegmentation);
|
|
@@ -26397,6 +26353,7 @@ var ReferencedSegmentation = /*#__PURE__*/function (_ContentSequence2) {
|
|
|
26397
26353
|
}
|
|
26398
26354
|
return _this7;
|
|
26399
26355
|
}
|
|
26356
|
+
_inherits(ReferencedSegmentation, _ContentSequence2);
|
|
26400
26357
|
return _createClass(ReferencedSegmentation);
|
|
26401
26358
|
}(ContentSequence);
|
|
26402
26359
|
|
|
@@ -26416,7 +26373,6 @@ var contentItems = /*#__PURE__*/Object.freeze({
|
|
|
26416
26373
|
});
|
|
26417
26374
|
|
|
26418
26375
|
var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
26419
|
-
_inherits(Template, _ContentSequence);
|
|
26420
26376
|
function Template() {
|
|
26421
26377
|
_classCallCheck(this, Template);
|
|
26422
26378
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -26424,10 +26380,10 @@ var Template = /*#__PURE__*/function (_ContentSequence) {
|
|
|
26424
26380
|
}
|
|
26425
26381
|
return _callSuper(this, Template, [].concat(args));
|
|
26426
26382
|
}
|
|
26383
|
+
_inherits(Template, _ContentSequence);
|
|
26427
26384
|
return _createClass(Template);
|
|
26428
26385
|
}(ContentSequence);
|
|
26429
26386
|
var Measurement = /*#__PURE__*/function (_Template) {
|
|
26430
|
-
_inherits(Measurement, _Template);
|
|
26431
26387
|
function Measurement(options) {
|
|
26432
26388
|
var _valueItem$ContentSeq;
|
|
26433
26389
|
var _this;
|
|
@@ -26527,10 +26483,10 @@ var Measurement = /*#__PURE__*/function (_Template) {
|
|
|
26527
26483
|
_this.push(valueItem);
|
|
26528
26484
|
return _this;
|
|
26529
26485
|
}
|
|
26486
|
+
_inherits(Measurement, _Template);
|
|
26530
26487
|
return _createClass(Measurement);
|
|
26531
26488
|
}(Template);
|
|
26532
26489
|
var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
26533
|
-
_inherits(MeasurementProperties, _Template2);
|
|
26534
26490
|
function MeasurementProperties(options) {
|
|
26535
26491
|
var _this2;
|
|
26536
26492
|
_classCallCheck(this, MeasurementProperties);
|
|
@@ -26611,10 +26567,10 @@ var MeasurementProperties = /*#__PURE__*/function (_Template2) {
|
|
|
26611
26567
|
}
|
|
26612
26568
|
return _this2;
|
|
26613
26569
|
}
|
|
26570
|
+
_inherits(MeasurementProperties, _Template2);
|
|
26614
26571
|
return _createClass(MeasurementProperties);
|
|
26615
26572
|
}(Template);
|
|
26616
26573
|
var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
26617
|
-
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26618
26574
|
function MeasurementStatisticalProperties(options) {
|
|
26619
26575
|
var _this5;
|
|
26620
26576
|
_classCallCheck(this, MeasurementStatisticalProperties);
|
|
@@ -26657,10 +26613,10 @@ var MeasurementStatisticalProperties = /*#__PURE__*/function (_Template3) {
|
|
|
26657
26613
|
}
|
|
26658
26614
|
return _this5;
|
|
26659
26615
|
}
|
|
26616
|
+
_inherits(MeasurementStatisticalProperties, _Template3);
|
|
26660
26617
|
return _createClass(MeasurementStatisticalProperties);
|
|
26661
26618
|
}(Template);
|
|
26662
26619
|
var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
26663
|
-
_inherits(NormalRangeProperties, _Template4);
|
|
26664
26620
|
function NormalRangeProperties(options) {
|
|
26665
26621
|
var _this6;
|
|
26666
26622
|
_classCallCheck(this, NormalRangeProperties);
|
|
@@ -26703,10 +26659,10 @@ var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
|
|
|
26703
26659
|
}
|
|
26704
26660
|
return _this6;
|
|
26705
26661
|
}
|
|
26662
|
+
_inherits(NormalRangeProperties, _Template4);
|
|
26706
26663
|
return _createClass(NormalRangeProperties);
|
|
26707
26664
|
}(Template);
|
|
26708
26665
|
var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
26709
|
-
_inherits(ObservationContext, _Template5);
|
|
26710
26666
|
function ObservationContext(options) {
|
|
26711
26667
|
var _this8;
|
|
26712
26668
|
var _this7;
|
|
@@ -26735,10 +26691,10 @@ var ObservationContext = /*#__PURE__*/function (_Template5) {
|
|
|
26735
26691
|
}
|
|
26736
26692
|
return _this7;
|
|
26737
26693
|
}
|
|
26694
|
+
_inherits(ObservationContext, _Template5);
|
|
26738
26695
|
return _createClass(ObservationContext);
|
|
26739
26696
|
}(Template);
|
|
26740
26697
|
var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
26741
|
-
_inherits(ObserverContext, _Template6);
|
|
26742
26698
|
function ObserverContext(options) {
|
|
26743
26699
|
var _this10;
|
|
26744
26700
|
var _this1;
|
|
@@ -26789,10 +26745,10 @@ var ObserverContext = /*#__PURE__*/function (_Template6) {
|
|
|
26789
26745
|
(_this10 = _this1).push.apply(_this10, _toConsumableArray(options.observerIdentifyingAttributes));
|
|
26790
26746
|
return _this1;
|
|
26791
26747
|
}
|
|
26748
|
+
_inherits(ObserverContext, _Template6);
|
|
26792
26749
|
return _createClass(ObserverContext);
|
|
26793
26750
|
}(Template);
|
|
26794
26751
|
var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
26795
|
-
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26796
26752
|
function PersonObserverIdentifyingAttributes(options) {
|
|
26797
26753
|
var _this11;
|
|
26798
26754
|
_classCallCheck(this, PersonObserverIdentifyingAttributes);
|
|
@@ -26860,10 +26816,10 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
|
|
|
26860
26816
|
}
|
|
26861
26817
|
return _this11;
|
|
26862
26818
|
}
|
|
26819
|
+
_inherits(PersonObserverIdentifyingAttributes, _Template7);
|
|
26863
26820
|
return _createClass(PersonObserverIdentifyingAttributes);
|
|
26864
26821
|
}(Template);
|
|
26865
26822
|
var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
26866
|
-
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26867
26823
|
function DeviceObserverIdentifyingAttributes(options) {
|
|
26868
26824
|
var _this12;
|
|
26869
26825
|
_classCallCheck(this, DeviceObserverIdentifyingAttributes);
|
|
@@ -26943,10 +26899,10 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
|
|
|
26943
26899
|
}
|
|
26944
26900
|
return _this12;
|
|
26945
26901
|
}
|
|
26902
|
+
_inherits(DeviceObserverIdentifyingAttributes, _Template8);
|
|
26946
26903
|
return _createClass(DeviceObserverIdentifyingAttributes);
|
|
26947
26904
|
}(Template);
|
|
26948
26905
|
var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
26949
|
-
_inherits(SubjectContext, _Template9);
|
|
26950
26906
|
function SubjectContext(options) {
|
|
26951
26907
|
var _this14;
|
|
26952
26908
|
var _this13;
|
|
@@ -27001,10 +26957,10 @@ var SubjectContext = /*#__PURE__*/function (_Template9) {
|
|
|
27001
26957
|
(_this14 = _this13).push.apply(_this14, _toConsumableArray(options.subjectClassSpecificContext));
|
|
27002
26958
|
return _this13;
|
|
27003
26959
|
}
|
|
26960
|
+
_inherits(SubjectContext, _Template9);
|
|
27004
26961
|
return _createClass(SubjectContext);
|
|
27005
26962
|
}(Template);
|
|
27006
26963
|
var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
27007
|
-
_inherits(SubjectContextFetus, _Template0);
|
|
27008
26964
|
function SubjectContextFetus(options) {
|
|
27009
26965
|
var _this15;
|
|
27010
26966
|
_classCallCheck(this, SubjectContextFetus);
|
|
@@ -27024,10 +26980,10 @@ var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
|
27024
26980
|
_this15.push(subjectIdItem);
|
|
27025
26981
|
return _this15;
|
|
27026
26982
|
}
|
|
26983
|
+
_inherits(SubjectContextFetus, _Template0);
|
|
27027
26984
|
return _createClass(SubjectContextFetus);
|
|
27028
26985
|
}(Template);
|
|
27029
26986
|
var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
27030
|
-
_inherits(SubjectContextSpecimen, _Template1);
|
|
27031
26987
|
function SubjectContextSpecimen(options) {
|
|
27032
26988
|
var _this16;
|
|
27033
26989
|
_classCallCheck(this, SubjectContextSpecimen);
|
|
@@ -27083,10 +27039,10 @@ var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
|
27083
27039
|
}
|
|
27084
27040
|
return _this16;
|
|
27085
27041
|
}
|
|
27042
|
+
_inherits(SubjectContextSpecimen, _Template1);
|
|
27086
27043
|
return _createClass(SubjectContextSpecimen);
|
|
27087
27044
|
}(Template);
|
|
27088
27045
|
var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
27089
|
-
_inherits(SubjectContextDevice, _Template10);
|
|
27090
27046
|
function SubjectContextDevice(options) {
|
|
27091
27047
|
var _this17;
|
|
27092
27048
|
_classCallCheck(this, SubjectContextDevice);
|
|
@@ -27166,10 +27122,10 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
|
27166
27122
|
}
|
|
27167
27123
|
return _this17;
|
|
27168
27124
|
}
|
|
27125
|
+
_inherits(SubjectContextDevice, _Template10);
|
|
27169
27126
|
return _createClass(SubjectContextDevice);
|
|
27170
27127
|
}(Template);
|
|
27171
27128
|
var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
27172
|
-
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27173
27129
|
function LanguageOfContentItemAndDescendants(options) {
|
|
27174
27130
|
var _this18;
|
|
27175
27131
|
_classCallCheck(this, LanguageOfContentItemAndDescendants);
|
|
@@ -27193,10 +27149,10 @@ var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
|
27193
27149
|
_this18.push(languageItem);
|
|
27194
27150
|
return _this18;
|
|
27195
27151
|
}
|
|
27152
|
+
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
27196
27153
|
return _createClass(LanguageOfContentItemAndDescendants);
|
|
27197
27154
|
}(Template);
|
|
27198
27155
|
var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
|
|
27199
|
-
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27200
27156
|
function _MeasurementsAndQualitatitiveEvaluations(options) {
|
|
27201
27157
|
var _groupItem$ContentSeq;
|
|
27202
27158
|
var _this19;
|
|
@@ -27286,10 +27242,10 @@ var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template1
|
|
|
27286
27242
|
_this19.push(groupItem);
|
|
27287
27243
|
return _this19;
|
|
27288
27244
|
}
|
|
27245
|
+
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
27289
27246
|
return _createClass(_MeasurementsAndQualitatitiveEvaluations);
|
|
27290
27247
|
}(Template);
|
|
27291
27248
|
var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_MeasurementsAndQuali) {
|
|
27292
|
-
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27293
27249
|
function _ROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27294
27250
|
var _this20;
|
|
27295
27251
|
_classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
|
|
@@ -27338,10 +27294,10 @@ var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_Measurem
|
|
|
27338
27294
|
_this20[0] = groupItem;
|
|
27339
27295
|
return _this20;
|
|
27340
27296
|
}
|
|
27297
|
+
_inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
|
|
27341
27298
|
return _createClass(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27342
27299
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27343
27300
|
var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu) {
|
|
27344
|
-
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27345
27301
|
function PlanarROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27346
27302
|
_classCallCheck(this, PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27347
27303
|
var wereReferencesProvided = [options.referencedRegion !== undefined, options.referencedSegmentation !== undefined];
|
|
@@ -27365,10 +27321,10 @@ var PlanarROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROI
|
|
|
27365
27321
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27366
27322
|
}]);
|
|
27367
27323
|
}
|
|
27324
|
+
_inherits(PlanarROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu);
|
|
27368
27325
|
return _createClass(PlanarROIMeasurementsAndQualitativeEvaluations);
|
|
27369
27326
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27370
27327
|
var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_ROIMeasurementsAndQu2) {
|
|
27371
|
-
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27372
27328
|
function VolumetricROIMeasurementsAndQualitativeEvaluations(options) {
|
|
27373
27329
|
_classCallCheck(this, VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27374
27330
|
return _callSuper(this, VolumetricROIMeasurementsAndQualitativeEvaluations, [{
|
|
@@ -27383,10 +27339,10 @@ var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (
|
|
|
27383
27339
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27384
27340
|
}]);
|
|
27385
27341
|
}
|
|
27342
|
+
_inherits(VolumetricROIMeasurementsAndQualitativeEvaluations, _ROIMeasurementsAndQu2);
|
|
27386
27343
|
return _createClass(VolumetricROIMeasurementsAndQualitativeEvaluations);
|
|
27387
27344
|
}(_ROIMeasurementsAndQualitativeEvaluations);
|
|
27388
27345
|
var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
|
|
27389
|
-
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27390
27346
|
function MeasurementsDerivedFromMultipleROIMeasurements(options) {
|
|
27391
27347
|
var _this21;
|
|
27392
27348
|
_classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
|
|
@@ -27423,10 +27379,10 @@ var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Tem
|
|
|
27423
27379
|
_this21.push(valueItem);
|
|
27424
27380
|
return _this21;
|
|
27425
27381
|
}
|
|
27382
|
+
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
27426
27383
|
return _createClass(MeasurementsDerivedFromMultipleROIMeasurements);
|
|
27427
27384
|
}(Template);
|
|
27428
27385
|
var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_MeasurementsAndQuali2) {
|
|
27429
|
-
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27430
27386
|
function MeasurementAndQualitativeEvaluationGroup(options) {
|
|
27431
27387
|
_classCallCheck(this, MeasurementAndQualitativeEvaluationGroup);
|
|
27432
27388
|
return _callSuper(this, MeasurementAndQualitativeEvaluationGroup, [{
|
|
@@ -27439,10 +27395,10 @@ var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_Measureme
|
|
|
27439
27395
|
qualitativeEvaluations: options.qualitativeEvaluations
|
|
27440
27396
|
}]);
|
|
27441
27397
|
}
|
|
27398
|
+
_inherits(MeasurementAndQualitativeEvaluationGroup, _MeasurementsAndQuali2);
|
|
27442
27399
|
return _createClass(MeasurementAndQualitativeEvaluationGroup);
|
|
27443
27400
|
}(_MeasurementsAndQualitatitiveEvaluations);
|
|
27444
27401
|
var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
27445
|
-
_inherits(ROIMeasurements, _Template14);
|
|
27446
27402
|
function ROIMeasurements(options) {
|
|
27447
27403
|
var _this22;
|
|
27448
27404
|
_classCallCheck(this, ROIMeasurements);
|
|
@@ -27487,10 +27443,10 @@ var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
|
27487
27443
|
});
|
|
27488
27444
|
return _this22;
|
|
27489
27445
|
}
|
|
27446
|
+
_inherits(ROIMeasurements, _Template14);
|
|
27490
27447
|
return _createClass(ROIMeasurements);
|
|
27491
27448
|
}(Template);
|
|
27492
27449
|
var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
27493
|
-
_inherits(MeasurementReport, _Template15);
|
|
27494
27450
|
function MeasurementReport(options) {
|
|
27495
27451
|
var _item$ContentSequence, _item$ContentSequence2, _item$ContentSequence3;
|
|
27496
27452
|
var _this23;
|
|
@@ -27583,10 +27539,10 @@ var MeasurementReport = /*#__PURE__*/function (_Template15) {
|
|
|
27583
27539
|
_this23.push(item);
|
|
27584
27540
|
return _this23;
|
|
27585
27541
|
}
|
|
27542
|
+
_inherits(MeasurementReport, _Template15);
|
|
27586
27543
|
return _createClass(MeasurementReport);
|
|
27587
27544
|
}(Template);
|
|
27588
27545
|
var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
27589
|
-
_inherits(TimePointContext, _Template16);
|
|
27590
27546
|
function TimePointContext(options) {
|
|
27591
27547
|
var _this24;
|
|
27592
27548
|
_classCallCheck(this, TimePointContext);
|
|
@@ -27667,10 +27623,10 @@ var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
|
27667
27623
|
}
|
|
27668
27624
|
return _this24;
|
|
27669
27625
|
}
|
|
27626
|
+
_inherits(TimePointContext, _Template16);
|
|
27670
27627
|
return _createClass(TimePointContext);
|
|
27671
27628
|
}(Template);
|
|
27672
27629
|
var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
27673
|
-
_inherits(ImageLibrary, _Template17);
|
|
27674
27630
|
function ImageLibrary() {
|
|
27675
27631
|
var _this25;
|
|
27676
27632
|
_classCallCheck(this, ImageLibrary);
|
|
@@ -27686,10 +27642,10 @@ var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
|
27686
27642
|
_this25.push(libraryItem);
|
|
27687
27643
|
return _this25;
|
|
27688
27644
|
}
|
|
27645
|
+
_inherits(ImageLibrary, _Template17);
|
|
27689
27646
|
return _createClass(ImageLibrary);
|
|
27690
27647
|
}(Template);
|
|
27691
27648
|
var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
27692
|
-
_inherits(AlgorithmIdentification, _Template18);
|
|
27693
27649
|
function AlgorithmIdentification(options) {
|
|
27694
27650
|
var _this26;
|
|
27695
27651
|
_classCallCheck(this, AlgorithmIdentification);
|
|
@@ -27739,10 +27695,10 @@ var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
|
27739
27695
|
}
|
|
27740
27696
|
return _this26;
|
|
27741
27697
|
}
|
|
27698
|
+
_inherits(AlgorithmIdentification, _Template18);
|
|
27742
27699
|
return _createClass(AlgorithmIdentification);
|
|
27743
27700
|
}(Template);
|
|
27744
27701
|
var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
27745
|
-
_inherits(TrackingIdentifier, _Template19);
|
|
27746
27702
|
function TrackingIdentifier(options) {
|
|
27747
27703
|
var _this27;
|
|
27748
27704
|
_classCallCheck(this, TrackingIdentifier);
|
|
@@ -27774,6 +27730,7 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
|
27774
27730
|
_this27.push(trackingUIDItem);
|
|
27775
27731
|
return _this27;
|
|
27776
27732
|
}
|
|
27733
|
+
_inherits(TrackingIdentifier, _Template19);
|
|
27777
27734
|
return _createClass(TrackingIdentifier);
|
|
27778
27735
|
}(Template);
|
|
27779
27736
|
|