dcmjs 0.41.0 → 0.43.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 CHANGED
@@ -8516,6 +8516,8 @@ DicomMetaDictionary.sopClassNamesByUID = {
8516
8516
  "1.2.840.10008.5.1.4.1.1.66.2": "SpatialFiducials",
8517
8517
  "1.2.840.10008.5.1.4.1.1.66.3": "DeformableSpatialRegistration",
8518
8518
  "1.2.840.10008.5.1.4.1.1.66.4": "Segmentation",
8519
+ "1.2.840.10008.5.1.4.1.1.66.7": "LabelmapSegmentation",
8520
+ // Labelmap Segmentation SOP Class UID
8519
8521
  "1.2.840.10008.5.1.4.1.1.67": "RealWorldValueMapping",
8520
8522
  "1.2.840.10008.5.1.4.1.1.88.11": "BasicTextSR",
8521
8523
  "1.2.840.10008.5.1.4.1.1.88.22": "EnhancedSR",
@@ -9433,14 +9435,14 @@ var DateTime = /*#__PURE__*/function (_AsciiStringRepresent6) {
9433
9435
  var FloatingPointSingle = /*#__PURE__*/function (_ValueRepresentation5) {
9434
9436
  _inherits(FloatingPointSingle, _ValueRepresentation5);
9435
9437
  function FloatingPointSingle() {
9436
- var _this10;
9438
+ var _this0;
9437
9439
  _classCallCheck(this, FloatingPointSingle);
9438
- _this10 = _callSuper(this, FloatingPointSingle, ["FL"]);
9439
- _this10.maxLength = 4;
9440
- _this10.padByte = PADDING_NULL;
9441
- _this10.fixed = true;
9442
- _this10.defaultValue = 0.0;
9443
- return _this10;
9440
+ _this0 = _callSuper(this, FloatingPointSingle, ["FL"]);
9441
+ _this0.maxLength = 4;
9442
+ _this0.padByte = PADDING_NULL;
9443
+ _this0.fixed = true;
9444
+ _this0.defaultValue = 0.0;
9445
+ return _this0;
9444
9446
  }
9445
9447
  _createClass(FloatingPointSingle, [{
9446
9448
  key: "readBytes",
@@ -9463,14 +9465,14 @@ var FloatingPointSingle = /*#__PURE__*/function (_ValueRepresentation5) {
9463
9465
  var FloatingPointDouble = /*#__PURE__*/function (_ValueRepresentation6) {
9464
9466
  _inherits(FloatingPointDouble, _ValueRepresentation6);
9465
9467
  function FloatingPointDouble() {
9466
- var _this11;
9468
+ var _this1;
9467
9469
  _classCallCheck(this, FloatingPointDouble);
9468
- _this11 = _callSuper(this, FloatingPointDouble, ["FD"]);
9469
- _this11.maxLength = 8;
9470
- _this11.padByte = PADDING_NULL;
9471
- _this11.fixed = true;
9472
- _this11.defaultValue = 0.0;
9473
- return _this11;
9470
+ _this1 = _callSuper(this, FloatingPointDouble, ["FD"]);
9471
+ _this1.maxLength = 8;
9472
+ _this1.padByte = PADDING_NULL;
9473
+ _this1.fixed = true;
9474
+ _this1.defaultValue = 0.0;
9475
+ return _this1;
9474
9476
  }
9475
9477
  _createClass(FloatingPointDouble, [{
9476
9478
  key: "readBytes",
@@ -9493,12 +9495,12 @@ var FloatingPointDouble = /*#__PURE__*/function (_ValueRepresentation6) {
9493
9495
  var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
9494
9496
  _inherits(IntegerString, _NumericStringReprese2);
9495
9497
  function IntegerString() {
9496
- var _this12;
9498
+ var _this10;
9497
9499
  _classCallCheck(this, IntegerString);
9498
- _this12 = _callSuper(this, IntegerString, ["IS"]);
9499
- _this12.maxLength = 12;
9500
- _this12.padByte = PADDING_SPACE;
9501
- return _this12;
9500
+ _this10 = _callSuper(this, IntegerString, ["IS"]);
9501
+ _this10.maxLength = 12;
9502
+ _this10.padByte = PADDING_SPACE;
9503
+ return _this10;
9502
9504
  }
9503
9505
  _createClass(IntegerString, [{
9504
9506
  key: "applyFormatting",
@@ -9521,9 +9523,9 @@ var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
9521
9523
  }, {
9522
9524
  key: "writeBytes",
9523
9525
  value: function writeBytes(stream, value, writeOptions) {
9524
- var _this13 = this;
9526
+ var _this11 = this;
9525
9527
  var val = Array.isArray(value) ? value.map(function (is) {
9526
- return _this13.convertToString(is);
9528
+ return _this11.convertToString(is);
9527
9529
  }) : [this.convertToString(value)];
9528
9530
  return _get(_getPrototypeOf(IntegerString.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
9529
9531
  }
@@ -9533,12 +9535,12 @@ var IntegerString = /*#__PURE__*/function (_NumericStringReprese2) {
9533
9535
  var LongString = /*#__PURE__*/function (_EncodedStringReprese) {
9534
9536
  _inherits(LongString, _EncodedStringReprese);
9535
9537
  function LongString() {
9536
- var _this14;
9538
+ var _this12;
9537
9539
  _classCallCheck(this, LongString);
9538
- _this14 = _callSuper(this, LongString, ["LO"]);
9539
- _this14.maxCharLength = 64;
9540
- _this14.padByte = PADDING_SPACE;
9541
- return _this14;
9540
+ _this12 = _callSuper(this, LongString, ["LO"]);
9541
+ _this12.maxCharLength = 64;
9542
+ _this12.padByte = PADDING_SPACE;
9543
+ return _this12;
9542
9544
  }
9543
9545
  _createClass(LongString, [{
9544
9546
  key: "readBytes",
@@ -9556,12 +9558,12 @@ var LongString = /*#__PURE__*/function (_EncodedStringReprese) {
9556
9558
  var LongText = /*#__PURE__*/function (_EncodedStringReprese2) {
9557
9559
  _inherits(LongText, _EncodedStringReprese2);
9558
9560
  function LongText() {
9559
- var _this15;
9561
+ var _this13;
9560
9562
  _classCallCheck(this, LongText);
9561
- _this15 = _callSuper(this, LongText, ["LT"]);
9562
- _this15.maxCharLength = 10240;
9563
- _this15.padByte = PADDING_SPACE;
9564
- return _this15;
9563
+ _this13 = _callSuper(this, LongText, ["LT"]);
9564
+ _this13.maxCharLength = 10240;
9565
+ _this13.padByte = PADDING_SPACE;
9566
+ return _this13;
9565
9567
  }
9566
9568
  _createClass(LongText, [{
9567
9569
  key: "readBytes",
@@ -9579,12 +9581,12 @@ var LongText = /*#__PURE__*/function (_EncodedStringReprese2) {
9579
9581
  var PersonName = /*#__PURE__*/function (_EncodedStringReprese3) {
9580
9582
  _inherits(PersonName, _EncodedStringReprese3);
9581
9583
  function PersonName() {
9582
- var _this16;
9584
+ var _this14;
9583
9585
  _classCallCheck(this, PersonName);
9584
- _this16 = _callSuper(this, PersonName, ["PN"]);
9585
- _this16.maxLength = null;
9586
- _this16.padByte = PADDING_SPACE;
9587
- return _this16;
9586
+ _this14 = _callSuper(this, PersonName, ["PN"]);
9587
+ _this14.maxLength = null;
9588
+ _this14.padByte = PADDING_SPACE;
9589
+ return _this14;
9588
9590
  }
9589
9591
  _createClass(PersonName, [{
9590
9592
  key: "addValueAccessors",
@@ -9694,12 +9696,12 @@ var PersonName = /*#__PURE__*/function (_EncodedStringReprese3) {
9694
9696
  var ShortString = /*#__PURE__*/function (_EncodedStringReprese4) {
9695
9697
  _inherits(ShortString, _EncodedStringReprese4);
9696
9698
  function ShortString() {
9697
- var _this17;
9699
+ var _this15;
9698
9700
  _classCallCheck(this, ShortString);
9699
- _this17 = _callSuper(this, ShortString, ["SH"]);
9700
- _this17.maxCharLength = 16;
9701
- _this17.padByte = PADDING_SPACE;
9702
- return _this17;
9701
+ _this15 = _callSuper(this, ShortString, ["SH"]);
9702
+ _this15.maxCharLength = 16;
9703
+ _this15.padByte = PADDING_SPACE;
9704
+ return _this15;
9703
9705
  }
9704
9706
  _createClass(ShortString, [{
9705
9707
  key: "readBytes",
@@ -9717,14 +9719,14 @@ var ShortString = /*#__PURE__*/function (_EncodedStringReprese4) {
9717
9719
  var SignedLong = /*#__PURE__*/function (_ValueRepresentation7) {
9718
9720
  _inherits(SignedLong, _ValueRepresentation7);
9719
9721
  function SignedLong() {
9720
- var _this18;
9722
+ var _this16;
9721
9723
  _classCallCheck(this, SignedLong);
9722
- _this18 = _callSuper(this, SignedLong, ["SL"]);
9723
- _this18.maxLength = 4;
9724
- _this18.padByte = PADDING_NULL;
9725
- _this18.fixed = true;
9726
- _this18.defaultValue = 0;
9727
- return _this18;
9724
+ _this16 = _callSuper(this, SignedLong, ["SL"]);
9725
+ _this16.maxLength = 4;
9726
+ _this16.padByte = PADDING_NULL;
9727
+ _this16.fixed = true;
9728
+ _this16.defaultValue = 0;
9729
+ return _this16;
9728
9730
  }
9729
9731
  _createClass(SignedLong, [{
9730
9732
  key: "readBytes",
@@ -9742,14 +9744,14 @@ var SignedLong = /*#__PURE__*/function (_ValueRepresentation7) {
9742
9744
  var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
9743
9745
  _inherits(SequenceOfItems, _ValueRepresentation8);
9744
9746
  function SequenceOfItems() {
9745
- var _this19;
9747
+ var _this17;
9746
9748
  _classCallCheck(this, SequenceOfItems);
9747
- _this19 = _callSuper(this, SequenceOfItems, ["SQ"]);
9748
- _this19.maxLength = null;
9749
- _this19.padByte = PADDING_NULL;
9750
- _this19.noMultiple = true;
9751
- _this19._storeRaw = false;
9752
- return _this19;
9749
+ _this17 = _callSuper(this, SequenceOfItems, ["SQ"]);
9750
+ _this17.maxLength = null;
9751
+ _this17.padByte = PADDING_NULL;
9752
+ _this17.noMultiple = true;
9753
+ _this17._storeRaw = false;
9754
+ return _this17;
9753
9755
  }
9754
9756
  _createClass(SequenceOfItems, [{
9755
9757
  key: "readBytes",
@@ -9870,15 +9872,15 @@ var SequenceOfItems = /*#__PURE__*/function (_ValueRepresentation8) {
9870
9872
  var SignedShort = /*#__PURE__*/function (_ValueRepresentation9) {
9871
9873
  _inherits(SignedShort, _ValueRepresentation9);
9872
9874
  function SignedShort() {
9873
- var _this20;
9875
+ var _this18;
9874
9876
  _classCallCheck(this, SignedShort);
9875
- _this20 = _callSuper(this, SignedShort, ["SS"]);
9876
- _this20.maxLength = 2;
9877
- _this20.valueLength = 2;
9878
- _this20.padByte = PADDING_NULL;
9879
- _this20.fixed = true;
9880
- _this20.defaultValue = 0;
9881
- return _this20;
9877
+ _this18 = _callSuper(this, SignedShort, ["SS"]);
9878
+ _this18.maxLength = 2;
9879
+ _this18.valueLength = 2;
9880
+ _this18.padByte = PADDING_NULL;
9881
+ _this18.fixed = true;
9882
+ _this18.defaultValue = 0;
9883
+ return _this18;
9882
9884
  }
9883
9885
  _createClass(SignedShort, [{
9884
9886
  key: "readBytes",
@@ -9896,12 +9898,12 @@ var SignedShort = /*#__PURE__*/function (_ValueRepresentation9) {
9896
9898
  var ShortText = /*#__PURE__*/function (_EncodedStringReprese5) {
9897
9899
  _inherits(ShortText, _EncodedStringReprese5);
9898
9900
  function ShortText() {
9899
- var _this21;
9901
+ var _this19;
9900
9902
  _classCallCheck(this, ShortText);
9901
- _this21 = _callSuper(this, ShortText, ["ST"]);
9902
- _this21.maxCharLength = 1024;
9903
- _this21.padByte = PADDING_SPACE;
9904
- return _this21;
9903
+ _this19 = _callSuper(this, ShortText, ["ST"]);
9904
+ _this19.maxCharLength = 1024;
9905
+ _this19.padByte = PADDING_SPACE;
9906
+ return _this19;
9905
9907
  }
9906
9908
  _createClass(ShortText, [{
9907
9909
  key: "readBytes",
@@ -9919,13 +9921,13 @@ var ShortText = /*#__PURE__*/function (_EncodedStringReprese5) {
9919
9921
  var TimeValue = /*#__PURE__*/function (_AsciiStringRepresent7) {
9920
9922
  _inherits(TimeValue, _AsciiStringRepresent7);
9921
9923
  function TimeValue() {
9922
- var _this22;
9924
+ var _this20;
9923
9925
  _classCallCheck(this, TimeValue);
9924
- _this22 = _callSuper(this, TimeValue, ["TM"]);
9925
- _this22.maxLength = 16;
9926
- _this22.rangeMatchingMaxLength = 28;
9927
- _this22.padByte = PADDING_SPACE;
9928
- return _this22;
9926
+ _this20 = _callSuper(this, TimeValue, ["TM"]);
9927
+ _this20.maxLength = 16;
9928
+ _this20.rangeMatchingMaxLength = 28;
9929
+ _this20.padByte = PADDING_SPACE;
9930
+ return _this20;
9929
9931
  }
9930
9932
  _createClass(TimeValue, [{
9931
9933
  key: "readBytes",
@@ -9952,13 +9954,13 @@ var TimeValue = /*#__PURE__*/function (_AsciiStringRepresent7) {
9952
9954
  var UnlimitedCharacters = /*#__PURE__*/function (_EncodedStringReprese6) {
9953
9955
  _inherits(UnlimitedCharacters, _EncodedStringReprese6);
9954
9956
  function UnlimitedCharacters() {
9955
- var _this23;
9957
+ var _this21;
9956
9958
  _classCallCheck(this, UnlimitedCharacters);
9957
- _this23 = _callSuper(this, UnlimitedCharacters, ["UC"]);
9958
- _this23.maxLength = null;
9959
- _this23.multi = true;
9960
- _this23.padByte = PADDING_SPACE;
9961
- return _this23;
9959
+ _this21 = _callSuper(this, UnlimitedCharacters, ["UC"]);
9960
+ _this21.maxLength = null;
9961
+ _this21.multi = true;
9962
+ _this21.padByte = PADDING_SPACE;
9963
+ return _this21;
9962
9964
  }
9963
9965
  _createClass(UnlimitedCharacters, [{
9964
9966
  key: "readBytes",
@@ -9976,12 +9978,12 @@ var UnlimitedCharacters = /*#__PURE__*/function (_EncodedStringReprese6) {
9976
9978
  var UnlimitedText = /*#__PURE__*/function (_EncodedStringReprese7) {
9977
9979
  _inherits(UnlimitedText, _EncodedStringReprese7);
9978
9980
  function UnlimitedText() {
9979
- var _this24;
9981
+ var _this22;
9980
9982
  _classCallCheck(this, UnlimitedText);
9981
- _this24 = _callSuper(this, UnlimitedText, ["UT"]);
9982
- _this24.maxLength = null;
9983
- _this24.padByte = PADDING_SPACE;
9984
- return _this24;
9983
+ _this22 = _callSuper(this, UnlimitedText, ["UT"]);
9984
+ _this22.maxLength = null;
9985
+ _this22.padByte = PADDING_SPACE;
9986
+ return _this22;
9985
9987
  }
9986
9988
  _createClass(UnlimitedText, [{
9987
9989
  key: "readBytes",
@@ -9996,17 +9998,17 @@ var UnlimitedText = /*#__PURE__*/function (_EncodedStringReprese7) {
9996
9998
  }]);
9997
9999
  return UnlimitedText;
9998
10000
  }(EncodedStringRepresentation);
9999
- var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation10) {
10000
- _inherits(UnsignedShort, _ValueRepresentation10);
10001
+ var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation0) {
10002
+ _inherits(UnsignedShort, _ValueRepresentation0);
10001
10003
  function UnsignedShort() {
10002
- var _this25;
10004
+ var _this23;
10003
10005
  _classCallCheck(this, UnsignedShort);
10004
- _this25 = _callSuper(this, UnsignedShort, ["US"]);
10005
- _this25.maxLength = 2;
10006
- _this25.padByte = PADDING_NULL;
10007
- _this25.fixed = true;
10008
- _this25.defaultValue = 0;
10009
- return _this25;
10006
+ _this23 = _callSuper(this, UnsignedShort, ["US"]);
10007
+ _this23.maxLength = 2;
10008
+ _this23.padByte = PADDING_NULL;
10009
+ _this23.fixed = true;
10010
+ _this23.defaultValue = 0;
10011
+ return _this23;
10010
10012
  }
10011
10013
  _createClass(UnsignedShort, [{
10012
10014
  key: "readBytes",
@@ -10021,17 +10023,17 @@ var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation10) {
10021
10023
  }]);
10022
10024
  return UnsignedShort;
10023
10025
  }(ValueRepresentation);
10024
- var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation11) {
10025
- _inherits(UnsignedLong, _ValueRepresentation11);
10026
+ var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation1) {
10027
+ _inherits(UnsignedLong, _ValueRepresentation1);
10026
10028
  function UnsignedLong() {
10027
- var _this26;
10029
+ var _this24;
10028
10030
  _classCallCheck(this, UnsignedLong);
10029
- _this26 = _callSuper(this, UnsignedLong, ["UL"]);
10030
- _this26.maxLength = 4;
10031
- _this26.padByte = PADDING_NULL;
10032
- _this26.fixed = true;
10033
- _this26.defaultValue = 0;
10034
- return _this26;
10031
+ _this24 = _callSuper(this, UnsignedLong, ["UL"]);
10032
+ _this24.maxLength = 4;
10033
+ _this24.padByte = PADDING_NULL;
10034
+ _this24.fixed = true;
10035
+ _this24.defaultValue = 0;
10036
+ return _this24;
10035
10037
  }
10036
10038
  _createClass(UnsignedLong, [{
10037
10039
  key: "readBytes",
@@ -10049,12 +10051,12 @@ var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation11) {
10049
10051
  var UniqueIdentifier = /*#__PURE__*/function (_AsciiStringRepresent8) {
10050
10052
  _inherits(UniqueIdentifier, _AsciiStringRepresent8);
10051
10053
  function UniqueIdentifier() {
10052
- var _this27;
10054
+ var _this25;
10053
10055
  _classCallCheck(this, UniqueIdentifier);
10054
- _this27 = _callSuper(this, UniqueIdentifier, ["UI"]);
10055
- _this27.maxLength = 64;
10056
- _this27.padByte = PADDING_NULL;
10057
- return _this27;
10056
+ _this25 = _callSuper(this, UniqueIdentifier, ["UI"]);
10057
+ _this25.maxLength = 64;
10058
+ _this25.padByte = PADDING_NULL;
10059
+ return _this25;
10058
10060
  }
10059
10061
  _createClass(UniqueIdentifier, [{
10060
10062
  key: "readBytes",
@@ -10093,12 +10095,12 @@ var UniqueIdentifier = /*#__PURE__*/function (_AsciiStringRepresent8) {
10093
10095
  var UniversalResource = /*#__PURE__*/function (_AsciiStringRepresent9) {
10094
10096
  _inherits(UniversalResource, _AsciiStringRepresent9);
10095
10097
  function UniversalResource() {
10096
- var _this28;
10098
+ var _this26;
10097
10099
  _classCallCheck(this, UniversalResource);
10098
- _this28 = _callSuper(this, UniversalResource, ["UR"]);
10099
- _this28.maxLength = null;
10100
- _this28.padByte = PADDING_SPACE;
10101
- return _this28;
10100
+ _this26 = _callSuper(this, UniversalResource, ["UR"]);
10101
+ _this26.maxLength = null;
10102
+ _this26.padByte = PADDING_SPACE;
10103
+ return _this26;
10102
10104
  }
10103
10105
  _createClass(UniversalResource, [{
10104
10106
  key: "readBytes",
@@ -10111,30 +10113,30 @@ var UniversalResource = /*#__PURE__*/function (_AsciiStringRepresent9) {
10111
10113
  var UnknownValue = /*#__PURE__*/function (_BinaryRepresentation) {
10112
10114
  _inherits(UnknownValue, _BinaryRepresentation);
10113
10115
  function UnknownValue() {
10114
- var _this29;
10116
+ var _this27;
10115
10117
  _classCallCheck(this, UnknownValue);
10116
- _this29 = _callSuper(this, UnknownValue, ["UN"]);
10117
- _this29.maxLength = null;
10118
- _this29.padByte = PADDING_NULL;
10119
- _this29.noMultiple = true;
10120
- return _this29;
10118
+ _this27 = _callSuper(this, UnknownValue, ["UN"]);
10119
+ _this27.maxLength = null;
10120
+ _this27.padByte = PADDING_NULL;
10121
+ _this27.noMultiple = true;
10122
+ return _this27;
10121
10123
  }
10122
10124
  return _createClass(UnknownValue);
10123
10125
  }(BinaryRepresentation);
10124
10126
  var ParsedUnknownValue = /*#__PURE__*/function (_BinaryRepresentation2) {
10125
10127
  _inherits(ParsedUnknownValue, _BinaryRepresentation2);
10126
10128
  function ParsedUnknownValue(vr) {
10127
- var _this30;
10129
+ var _this28;
10128
10130
  _classCallCheck(this, ParsedUnknownValue);
10129
- _this30 = _callSuper(this, ParsedUnknownValue, [vr]);
10130
- _this30.maxLength = null;
10131
- _this30.padByte = 0;
10132
- _this30.noMultiple = true;
10133
- _this30._isBinary = true;
10134
- _this30._allowMultiple = false;
10135
- _this30._isExplicit = true;
10136
- _this30._storeRaw = true;
10137
- return _this30;
10131
+ _this28 = _callSuper(this, ParsedUnknownValue, [vr]);
10132
+ _this28.maxLength = null;
10133
+ _this28.padByte = 0;
10134
+ _this28.noMultiple = true;
10135
+ _this28._isBinary = true;
10136
+ _this28._allowMultiple = false;
10137
+ _this28._isExplicit = true;
10138
+ _this28._storeRaw = true;
10139
+ return _this28;
10138
10140
  }
10139
10141
  _createClass(ParsedUnknownValue, [{
10140
10142
  key: "read",
@@ -10168,52 +10170,52 @@ var ParsedUnknownValue = /*#__PURE__*/function (_BinaryRepresentation2) {
10168
10170
  var OtherWordString = /*#__PURE__*/function (_BinaryRepresentation3) {
10169
10171
  _inherits(OtherWordString, _BinaryRepresentation3);
10170
10172
  function OtherWordString() {
10171
- var _this31;
10173
+ var _this29;
10172
10174
  _classCallCheck(this, OtherWordString);
10173
- _this31 = _callSuper(this, OtherWordString, ["OW"]);
10174
- _this31.maxLength = null;
10175
- _this31.padByte = PADDING_NULL;
10176
- _this31.noMultiple = true;
10177
- return _this31;
10175
+ _this29 = _callSuper(this, OtherWordString, ["OW"]);
10176
+ _this29.maxLength = null;
10177
+ _this29.padByte = PADDING_NULL;
10178
+ _this29.noMultiple = true;
10179
+ return _this29;
10178
10180
  }
10179
10181
  return _createClass(OtherWordString);
10180
10182
  }(BinaryRepresentation);
10181
10183
  var OtherByteString = /*#__PURE__*/function (_BinaryRepresentation4) {
10182
10184
  _inherits(OtherByteString, _BinaryRepresentation4);
10183
10185
  function OtherByteString() {
10184
- var _this32;
10186
+ var _this30;
10185
10187
  _classCallCheck(this, OtherByteString);
10186
- _this32 = _callSuper(this, OtherByteString, ["OB"]);
10187
- _this32.maxLength = null;
10188
- _this32.padByte = PADDING_NULL;
10189
- _this32.noMultiple = true;
10190
- return _this32;
10188
+ _this30 = _callSuper(this, OtherByteString, ["OB"]);
10189
+ _this30.maxLength = null;
10190
+ _this30.padByte = PADDING_NULL;
10191
+ _this30.noMultiple = true;
10192
+ return _this30;
10191
10193
  }
10192
10194
  return _createClass(OtherByteString);
10193
10195
  }(BinaryRepresentation);
10194
10196
  var OtherDoubleString = /*#__PURE__*/function (_BinaryRepresentation5) {
10195
10197
  _inherits(OtherDoubleString, _BinaryRepresentation5);
10196
10198
  function OtherDoubleString() {
10197
- var _this33;
10199
+ var _this31;
10198
10200
  _classCallCheck(this, OtherDoubleString);
10199
- _this33 = _callSuper(this, OtherDoubleString, ["OD"]);
10200
- _this33.maxLength = null;
10201
- _this33.padByte = PADDING_NULL;
10202
- _this33.noMultiple = true;
10203
- return _this33;
10201
+ _this31 = _callSuper(this, OtherDoubleString, ["OD"]);
10202
+ _this31.maxLength = null;
10203
+ _this31.padByte = PADDING_NULL;
10204
+ _this31.noMultiple = true;
10205
+ return _this31;
10204
10206
  }
10205
10207
  return _createClass(OtherDoubleString);
10206
10208
  }(BinaryRepresentation);
10207
10209
  var OtherFloatString = /*#__PURE__*/function (_BinaryRepresentation6) {
10208
10210
  _inherits(OtherFloatString, _BinaryRepresentation6);
10209
10211
  function OtherFloatString() {
10210
- var _this34;
10212
+ var _this32;
10211
10213
  _classCallCheck(this, OtherFloatString);
10212
- _this34 = _callSuper(this, OtherFloatString, ["OF"]);
10213
- _this34.maxLength = null;
10214
- _this34.padByte = PADDING_NULL;
10215
- _this34.noMultiple = true;
10216
- return _this34;
10214
+ _this32 = _callSuper(this, OtherFloatString, ["OF"]);
10215
+ _this32.maxLength = null;
10216
+ _this32.padByte = PADDING_NULL;
10217
+ _this32.noMultiple = true;
10218
+ return _this32;
10217
10219
  }
10218
10220
  return _createClass(OtherFloatString);
10219
10221
  }(BinaryRepresentation); // these VR instances are precreate and are reused for each requested vr/tag
@@ -11302,13 +11304,15 @@ var Normalizer = /*#__PURE__*/function () {
11302
11304
  sopClassUIDMap[toUID.DeformableSpatialRegistration] = DSRNormalizer;
11303
11305
  sopClassUIDMap[toUID.OphthalmicPhotography8BitImage] = OPImageNormalizer;
11304
11306
  sopClassUIDMap[toUID.OphthalmicTomographyImage] = OCTImageNormalizer;
11307
+ sopClassUIDMap[toUID.LabelmapSegmentation] = SEGImageNormalizer; // Labelmap Segmentation uses the same normalizer as Segmentation
11305
11308
  return sopClassUIDMap[sopClassUID];
11306
11309
  }
11307
11310
  }, {
11308
11311
  key: "isMultiframeSOPClassUID",
11309
11312
  value: function isMultiframeSOPClassUID(sopClassUID) {
11310
11313
  var toUID = DicomMetaDictionary.sopClassUIDsByName;
11311
- var multiframeSOPClasses = [toUID.NMImage, toUID.EnhancedMRImage, toUID.LegacyConvertedEnhancedMRImage, toUID.EnhancedCTImage, toUID.LegacyConvertedEnhancedCTImage, toUID.EnhancedUSVolume, toUID.EnhancedPETImage, toUID.LegacyConvertedEnhancedPETImage, toUID.Segmentation, toUID.ParametricMapStorage, toUID.OphthalmicTomographyImage];
11314
+ var multiframeSOPClasses = [toUID.NMImage, toUID.EnhancedMRImage, toUID.LegacyConvertedEnhancedMRImage, toUID.EnhancedCTImage, toUID.LegacyConvertedEnhancedCTImage, toUID.EnhancedUSVolume, toUID.EnhancedPETImage, toUID.LegacyConvertedEnhancedPETImage, toUID.Segmentation, toUID.ParametricMapStorage, toUID.OphthalmicTomographyImage, toUID.LabelmapSegmentation // Labelmap Segmentation SOP Class UID
11315
+ ];
11312
11316
  return multiframeSOPClasses.indexOf(sopClassUID) !== -1;
11313
11317
  }
11314
11318
  }, {
@@ -11829,8 +11833,8 @@ var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
11829
11833
  }]);
11830
11834
  return OPImageNormalizer;
11831
11835
  }(Normalizer);
11832
- var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer10) {
11833
- _inherits(OCTImageNormalizer, _ImageNormalizer10);
11836
+ var OCTImageNormalizer = /*#__PURE__*/function (_ImageNormalizer0) {
11837
+ _inherits(OCTImageNormalizer, _ImageNormalizer0);
11834
11838
  function OCTImageNormalizer() {
11835
11839
  _classCallCheck(this, OCTImageNormalizer);
11836
11840
  return _callSuper(this, OCTImageNormalizer, arguments);
@@ -17080,7 +17084,7 @@ function generateToolState$1(imageIds, arrayBuffer, metadataProvider) {
17080
17084
  var SeriesInstanceUID = generalSeriesModule.seriesInstanceUID;
17081
17085
  var ImageOrientationPatient;
17082
17086
  var validOrientations;
17083
- var hasCoordinateSystem = ("FrameOfReferenceUID" in multiframe);
17087
+ var hasCoordinateSystem = "FrameOfReferenceUID" in multiframe;
17084
17088
  if (hasCoordinateSystem) {
17085
17089
  if (!imagePlaneModule) {
17086
17090
  console.warn("Insufficient metadata, imagePlaneModule missing.");
@@ -17283,7 +17287,7 @@ function checkSEGsOverlapping(pixelData, multiframe, imageIds, validOrientations
17283
17287
  var PerFrameFunctionalGroups = PerFrameFunctionalGroupsSequence[_frameSegment];
17284
17288
  var pixelDataI2D = ndarray$1(new Uint8Array(pixelData.buffer, _frameSegment * sliceLength, sliceLength), [Rows, Columns]);
17285
17289
  var alignedPixelDataI = void 0;
17286
- var hasCoordinateSystem = ("FrameOfReferenceUID" in multiframe);
17290
+ var hasCoordinateSystem = "FrameOfReferenceUID" in multiframe;
17287
17291
  if (hasCoordinateSystem) {
17288
17292
  var ImageOrientationPatientI = sharedImageOrientationPatient || PerFrameFunctionalGroups.PlaneOrientationSequence.ImageOrientationPatient;
17289
17293
  alignedPixelDataI = alignPixelDataWithSourceData(pixelDataI2D, ImageOrientationPatientI, validOrientations, tolerance);
@@ -17354,7 +17358,7 @@ function insertOverlappingPixelDataPlanar(segmentsOnFrame, segmentsOnFrameArray,
17354
17358
  }
17355
17359
  var pixelDataI2D = ndarray$1(new Uint8Array(pixelData.buffer, _i2 * sliceLength, sliceLength), [Rows, Columns]);
17356
17360
  var alignedPixelDataI;
17357
- var hasCoordinateSystem = ("FrameOfReferenceUID" in multiframe);
17361
+ var hasCoordinateSystem = "FrameOfReferenceUID" in multiframe;
17358
17362
  if (hasCoordinateSystem) {
17359
17363
  var ImageOrientationPatientI = sharedImageOrientationPatient || PerFrameFunctionalGroups.PlaneOrientationSequence.ImageOrientationPatient;
17360
17364
  alignedPixelDataI = alignPixelDataWithSourceData(pixelDataI2D, ImageOrientationPatientI, validOrientations, tolerance);
@@ -17444,7 +17448,7 @@ function insertPixelDataPlanar(segmentsOnFrame, segmentsOnFrameArray, labelmapBu
17444
17448
  var PerFrameFunctionalGroups = PerFrameFunctionalGroupsSequence[i];
17445
17449
  var pixelDataI2D = ndarray$1(new Uint8Array(pixelData.buffer, i * sliceLength, sliceLength), [Rows, Columns]);
17446
17450
  var alignedPixelDataI;
17447
- var hasCoordinateSystem = ("FrameOfReferenceUID" in multiframe);
17451
+ var hasCoordinateSystem = "FrameOfReferenceUID" in multiframe;
17448
17452
  if (hasCoordinateSystem) {
17449
17453
  var ImageOrientationPatientI = sharedImageOrientationPatient || PerFrameFunctionalGroups.PlaneOrientationSequence.ImageOrientationPatient;
17450
17454
  alignedPixelDataI = alignPixelDataWithSourceData(pixelDataI2D, ImageOrientationPatientI, validOrientations, tolerance);
@@ -21304,7 +21308,7 @@ var ContentSequence = /*#__PURE__*/function (_Array) {
21304
21308
  // filterBy(options) {
21305
21309
  // }
21306
21310
  return _createClass(ContentSequence);
21307
- }( /*#__PURE__*/_wrapNativeSuper(Array));
21311
+ }(/*#__PURE__*/_wrapNativeSuper(Array));
21308
21312
  var ContentItem = /*#__PURE__*/_createClass(function ContentItem(options) {
21309
21313
  _classCallCheck(this, ContentItem);
21310
21314
  if (options.name === undefined) {
@@ -21549,12 +21553,12 @@ var ContainerContentItem = /*#__PURE__*/function (_ContentItem9) {
21549
21553
  }
21550
21554
  return _createClass(ContainerContentItem);
21551
21555
  }(ContentItem);
21552
- var CompositeContentItem = /*#__PURE__*/function (_ContentItem10) {
21553
- _inherits(CompositeContentItem, _ContentItem10);
21556
+ var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
21557
+ _inherits(CompositeContentItem, _ContentItem0);
21554
21558
  function CompositeContentItem(options) {
21555
- var _this10;
21559
+ var _this0;
21556
21560
  _classCallCheck(this, CompositeContentItem);
21557
- _this10 = _callSuper(this, CompositeContentItem, [{
21561
+ _this0 = _callSuper(this, CompositeContentItem, [{
21558
21562
  name: options.name,
21559
21563
  relationshipType: options.relationshipType,
21560
21564
  valueType: ValueTypes.COMPOSITE
@@ -21574,17 +21578,17 @@ var CompositeContentItem = /*#__PURE__*/function (_ContentItem10) {
21574
21578
  var item = {};
21575
21579
  item.ReferencedSOPClassUID = options.referencedSOPClassUID;
21576
21580
  item.ReferencedSOPInstanceUID = options.referencedSOPInstanceUID;
21577
- _this10.ReferenceSOPSequence = [item];
21578
- return _this10;
21581
+ _this0.ReferenceSOPSequence = [item];
21582
+ return _this0;
21579
21583
  }
21580
21584
  return _createClass(CompositeContentItem);
21581
21585
  }(ContentItem);
21582
- var ImageContentItem = /*#__PURE__*/function (_ContentItem11) {
21583
- _inherits(ImageContentItem, _ContentItem11);
21586
+ var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
21587
+ _inherits(ImageContentItem, _ContentItem1);
21584
21588
  function ImageContentItem(options) {
21585
- var _this11;
21589
+ var _this1;
21586
21590
  _classCallCheck(this, ImageContentItem);
21587
- _this11 = _callSuper(this, ImageContentItem, [{
21591
+ _this1 = _callSuper(this, ImageContentItem, [{
21588
21592
  name: options.name,
21589
21593
  relationshipType: options.relationshipType,
21590
21594
  valueType: ValueTypes.IMAGE
@@ -21618,17 +21622,17 @@ var ImageContentItem = /*#__PURE__*/function (_ContentItem11) {
21618
21622
  // FIXME: value multiplicity
21619
21623
  item.ReferencedSegmentNumber = options.referencedSegmentNumbers;
21620
21624
  }
21621
- _this11.ReferencedSOPSequence = [item];
21622
- return _this11;
21625
+ _this1.ReferencedSOPSequence = [item];
21626
+ return _this1;
21623
21627
  }
21624
21628
  return _createClass(ImageContentItem);
21625
21629
  }(ContentItem);
21626
- var ScoordContentItem = /*#__PURE__*/function (_ContentItem12) {
21627
- _inherits(ScoordContentItem, _ContentItem12);
21630
+ var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
21631
+ _inherits(ScoordContentItem, _ContentItem10);
21628
21632
  function ScoordContentItem(options) {
21629
- var _this12;
21633
+ var _this10;
21630
21634
  _classCallCheck(this, ScoordContentItem);
21631
- _this12 = _callSuper(this, ScoordContentItem, [{
21635
+ _this10 = _callSuper(this, ScoordContentItem, [{
21632
21636
  name: options.name,
21633
21637
  relationshipType: options.relationshipType,
21634
21638
  valueType: ValueTypes.SCOORD
@@ -21651,7 +21655,7 @@ var ScoordContentItem = /*#__PURE__*/function (_ContentItem12) {
21651
21655
  if (options.graphicData[0] instanceof Array) {
21652
21656
  options.graphicData = [].concat.apply([], options.graphicData);
21653
21657
  }
21654
- _this12.GraphicData = options.graphicData;
21658
+ _this10.GraphicData = options.graphicData;
21655
21659
  options.pixelOriginInterpretation = options.pixelOriginInterpretation || PixelOriginInterpretations.VOLUME;
21656
21660
  if (!(typeof options.pixelOriginInterpretation === "string" || options.pixelOriginInterpretation instanceof String)) {
21657
21661
  throw new Error("Option 'pixelOriginInterpretation' must have type String.");
@@ -21663,18 +21667,18 @@ var ScoordContentItem = /*#__PURE__*/function (_ContentItem12) {
21663
21667
  if (!(typeof options.fiducialUID === "string" || options.fiducialUID instanceof String)) {
21664
21668
  throw new Error("Option 'fiducialUID' must have type String.");
21665
21669
  }
21666
- _this12.FiducialUID = options.fiducialUID;
21670
+ _this10.FiducialUID = options.fiducialUID;
21667
21671
  }
21668
- return _this12;
21672
+ return _this10;
21669
21673
  }
21670
21674
  return _createClass(ScoordContentItem);
21671
21675
  }(ContentItem);
21672
- var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem13) {
21673
- _inherits(Scoord3DContentItem, _ContentItem13);
21676
+ var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
21677
+ _inherits(Scoord3DContentItem, _ContentItem11);
21674
21678
  function Scoord3DContentItem(options) {
21675
- var _this13;
21679
+ var _this11;
21676
21680
  _classCallCheck(this, Scoord3DContentItem);
21677
- _this13 = _callSuper(this, Scoord3DContentItem, [{
21681
+ _this11 = _callSuper(this, Scoord3DContentItem, [{
21678
21682
  name: options.name,
21679
21683
  relationshipType: options.relationshipType,
21680
21684
  valueType: ValueTypes.SCOORD3D
@@ -21697,31 +21701,31 @@ var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem13) {
21697
21701
  if (options.graphicData[0] instanceof Array) {
21698
21702
  options.graphicData = [].concat.apply([], options.graphicData);
21699
21703
  }
21700
- _this13.GraphicType = options.graphicType;
21701
- _this13.GraphicData = options.graphicData;
21704
+ _this11.GraphicType = options.graphicType;
21705
+ _this11.GraphicData = options.graphicData;
21702
21706
  if (options.frameOfReferenceUID === undefined) {
21703
21707
  throw new Error("Option 'frameOfReferenceUID' is required for Scoord3DContentItem.");
21704
21708
  }
21705
21709
  if (!(typeof options.frameOfReferenceUID === "string" || options.frameOfReferenceUID instanceof String)) {
21706
21710
  throw new Error("Option 'frameOfReferenceUID' must have type String.");
21707
21711
  }
21708
- _this13.ReferencedFrameOfReferenceUID = options.frameOfReferenceUID;
21712
+ _this11.ReferencedFrameOfReferenceUID = options.frameOfReferenceUID;
21709
21713
  if ("fiducialUID" in options) {
21710
21714
  if (!(typeof options.fiducialUID === "string" || options.fiducialUID instanceof String)) {
21711
21715
  throw new Error("Option 'fiducialUID' must have type String.");
21712
21716
  }
21713
- _this13.FiducialUID = options.fiducialUID;
21717
+ _this11.FiducialUID = options.fiducialUID;
21714
21718
  }
21715
- return _this13;
21719
+ return _this11;
21716
21720
  }
21717
21721
  return _createClass(Scoord3DContentItem);
21718
21722
  }(ContentItem);
21719
- var TcoordContentItem = /*#__PURE__*/function (_ContentItem14) {
21720
- _inherits(TcoordContentItem, _ContentItem14);
21723
+ var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
21724
+ _inherits(TcoordContentItem, _ContentItem12);
21721
21725
  function TcoordContentItem(options) {
21722
- var _this14;
21726
+ var _this12;
21723
21727
  _classCallCheck(this, TcoordContentItem);
21724
- _this14 = _callSuper(this, TcoordContentItem, [{
21728
+ _this12 = _callSuper(this, TcoordContentItem, [{
21725
21729
  name: options.name,
21726
21730
  relationshipType: options.relationshipType,
21727
21731
  valueType: ValueTypes.TCOORD
@@ -21737,22 +21741,22 @@ var TcoordContentItem = /*#__PURE__*/function (_ContentItem14) {
21737
21741
  throw new Error("Option 'referencedSamplePositions' must have type Array.");
21738
21742
  }
21739
21743
  // TODO: ensure values are integers
21740
- _this14.ReferencedSamplePositions = options.referencedSamplePositions;
21744
+ _this12.ReferencedSamplePositions = options.referencedSamplePositions;
21741
21745
  } else if (options.referencedTimeOffsets === undefined) {
21742
21746
  if (!(_typeof(options.referencedTimeOffsets) === "object" || options.referencedTimeOffsets instanceof Array)) {
21743
21747
  throw new Error("Option 'referencedTimeOffsets' must have type Array.");
21744
21748
  }
21745
21749
  // TODO: ensure values are floats
21746
- _this14.ReferencedTimeOffsets = options.referencedTimeOffsets;
21750
+ _this12.ReferencedTimeOffsets = options.referencedTimeOffsets;
21747
21751
  } else if (options.referencedDateTime === undefined) {
21748
21752
  if (!(_typeof(options.referencedDateTime) === "object" || options.referencedDateTime instanceof Array)) {
21749
21753
  throw new Error("Option 'referencedDateTime' must have type Array.");
21750
21754
  }
21751
- _this14.ReferencedDateTime = options.referencedDateTime;
21755
+ _this12.ReferencedDateTime = options.referencedDateTime;
21752
21756
  } else {
21753
21757
  throw new Error("One of the following options is required for TcoordContentItem: " + "'referencedSamplePositions', 'referencedTimeOffsets', or " + "'referencedDateTime'.");
21754
21758
  }
21755
- return _this14;
21759
+ return _this12;
21756
21760
  }
21757
21761
  return _createClass(TcoordContentItem);
21758
21762
  }(ContentItem);
@@ -22441,11 +22445,11 @@ var ObservationContext = /*#__PURE__*/function (_Template5) {
22441
22445
  (_this9 = _this7).push.apply(_this9, _toConsumableArray(options.observerDeviceContext));
22442
22446
  }
22443
22447
  if (options.subjectContext !== undefined) {
22444
- var _this10;
22448
+ var _this0;
22445
22449
  if (options.subjectContext.constructor !== SubjectContext) {
22446
22450
  throw new Error("Option 'subjectContext' must have type SubjectContext");
22447
22451
  }
22448
- (_this10 = _this7).push.apply(_this10, _toConsumableArray(options.subjectContext));
22452
+ (_this0 = _this7).push.apply(_this0, _toConsumableArray(options.subjectContext));
22449
22453
  }
22450
22454
  return _this7;
22451
22455
  }
@@ -22454,10 +22458,10 @@ var ObservationContext = /*#__PURE__*/function (_Template5) {
22454
22458
  var ObserverContext = /*#__PURE__*/function (_Template6) {
22455
22459
  _inherits(ObserverContext, _Template6);
22456
22460
  function ObserverContext(options) {
22457
- var _this12;
22458
- var _this11;
22461
+ var _this10;
22462
+ var _this1;
22459
22463
  _classCallCheck(this, ObserverContext);
22460
- _this11 = _callSuper(this, ObserverContext);
22464
+ _this1 = _callSuper(this, ObserverContext);
22461
22465
  if (options.observerType === undefined) {
22462
22466
  throw new Error("Option 'observerType' is required for ObserverContext.");
22463
22467
  } else {
@@ -22474,7 +22478,7 @@ var ObserverContext = /*#__PURE__*/function (_Template6) {
22474
22478
  value: options.observerType,
22475
22479
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22476
22480
  });
22477
- _this11.push(observerTypeItem);
22481
+ _this1.push(observerTypeItem);
22478
22482
  if (options.observerIdentifyingAttributes === undefined) {
22479
22483
  throw new Error("Option 'observerIdentifyingAttributes' is required for ObserverContext.");
22480
22484
  }
@@ -22500,17 +22504,17 @@ var ObserverContext = /*#__PURE__*/function (_Template6) {
22500
22504
  } else {
22501
22505
  throw new Error("Option 'oberverType' must be either 'Person' or 'Device'.");
22502
22506
  }
22503
- (_this12 = _this11).push.apply(_this12, _toConsumableArray(options.observerIdentifyingAttributes));
22504
- return _this11;
22507
+ (_this10 = _this1).push.apply(_this10, _toConsumableArray(options.observerIdentifyingAttributes));
22508
+ return _this1;
22505
22509
  }
22506
22510
  return _createClass(ObserverContext);
22507
22511
  }(Template);
22508
22512
  var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
22509
22513
  _inherits(PersonObserverIdentifyingAttributes, _Template7);
22510
22514
  function PersonObserverIdentifyingAttributes(options) {
22511
- var _this13;
22515
+ var _this11;
22512
22516
  _classCallCheck(this, PersonObserverIdentifyingAttributes);
22513
- _this13 = _callSuper(this, PersonObserverIdentifyingAttributes);
22517
+ _this11 = _callSuper(this, PersonObserverIdentifyingAttributes);
22514
22518
  if (options.name === undefined) {
22515
22519
  throw new Error("Option 'name' is required for PersonObserverIdentifyingAttributes.");
22516
22520
  }
@@ -22523,7 +22527,7 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
22523
22527
  value: options.name,
22524
22528
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22525
22529
  });
22526
- _this13.push(nameItem);
22530
+ _this11.push(nameItem);
22527
22531
  if (options.loginName !== undefined) {
22528
22532
  var loginNameItem = new TextContentItem({
22529
22533
  name: new CodedConcept({
@@ -22534,7 +22538,7 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
22534
22538
  value: options.loginName,
22535
22539
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22536
22540
  });
22537
- _this13.push(loginNameItem);
22541
+ _this11.push(loginNameItem);
22538
22542
  }
22539
22543
  if (options.organizationName !== undefined) {
22540
22544
  var organizationNameItem = new TextContentItem({
@@ -22546,7 +22550,7 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
22546
22550
  value: options.organizationName,
22547
22551
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22548
22552
  });
22549
- _this13.push(organizationNameItem);
22553
+ _this11.push(organizationNameItem);
22550
22554
  }
22551
22555
  if (options.roleInOrganization !== undefined) {
22552
22556
  var roleInOrganizationItem = new CodeContentItem({
@@ -22558,7 +22562,7 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
22558
22562
  value: options.roleInOrganization,
22559
22563
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22560
22564
  });
22561
- _this13.push(roleInOrganizationItem);
22565
+ _this11.push(roleInOrganizationItem);
22562
22566
  }
22563
22567
  if (options.roleInProcedure !== undefined) {
22564
22568
  var roleInProcedureItem = new CodeContentItem({
@@ -22570,18 +22574,18 @@ var PersonObserverIdentifyingAttributes = /*#__PURE__*/function (_Template7) {
22570
22574
  value: options.roleInProcedure,
22571
22575
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22572
22576
  });
22573
- _this13.push(roleInProcedureItem);
22577
+ _this11.push(roleInProcedureItem);
22574
22578
  }
22575
- return _this13;
22579
+ return _this11;
22576
22580
  }
22577
22581
  return _createClass(PersonObserverIdentifyingAttributes);
22578
22582
  }(Template);
22579
22583
  var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
22580
22584
  _inherits(DeviceObserverIdentifyingAttributes, _Template8);
22581
22585
  function DeviceObserverIdentifyingAttributes(options) {
22582
- var _this14;
22586
+ var _this12;
22583
22587
  _classCallCheck(this, DeviceObserverIdentifyingAttributes);
22584
- _this14 = _callSuper(this, DeviceObserverIdentifyingAttributes);
22588
+ _this12 = _callSuper(this, DeviceObserverIdentifyingAttributes);
22585
22589
  if (options.uid === undefined) {
22586
22590
  throw new Error("Option 'uid' is required for DeviceObserverIdentifyingAttributes.");
22587
22591
  }
@@ -22594,7 +22598,7 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
22594
22598
  value: options.uid,
22595
22599
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22596
22600
  });
22597
- _this14.push(deviceObserverItem);
22601
+ _this12.push(deviceObserverItem);
22598
22602
  if (options.manufacturerName !== undefined) {
22599
22603
  var manufacturerNameItem = new TextContentItem({
22600
22604
  name: new CodedConcept({
@@ -22605,7 +22609,7 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
22605
22609
  value: options.manufacturerName,
22606
22610
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22607
22611
  });
22608
- _this14.push(manufacturerNameItem);
22612
+ _this12.push(manufacturerNameItem);
22609
22613
  }
22610
22614
  if (options.modelName !== undefined) {
22611
22615
  var modelNameItem = new TextContentItem({
@@ -22617,7 +22621,7 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
22617
22621
  value: options.modelName,
22618
22622
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22619
22623
  });
22620
- _this14.push(modelNameItem);
22624
+ _this12.push(modelNameItem);
22621
22625
  }
22622
22626
  if (options.serialNumber !== undefined) {
22623
22627
  var serialNumberItem = new TextContentItem({
@@ -22629,7 +22633,7 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
22629
22633
  value: options.serialNumber,
22630
22634
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22631
22635
  });
22632
- _this14.push(serialNumberItem);
22636
+ _this12.push(serialNumberItem);
22633
22637
  }
22634
22638
  if (options.physicalLocation !== undefined) {
22635
22639
  var physicalLocationItem = new TextContentItem({
@@ -22641,7 +22645,7 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
22641
22645
  value: options.physicalLocation,
22642
22646
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22643
22647
  });
22644
- _this14.push(physicalLocationItem);
22648
+ _this12.push(physicalLocationItem);
22645
22649
  }
22646
22650
  if (options.roleInProcedure !== undefined) {
22647
22651
  var roleInProcedureItem = new CodeContentItem({
@@ -22653,19 +22657,19 @@ var DeviceObserverIdentifyingAttributes = /*#__PURE__*/function (_Template8) {
22653
22657
  value: options.roleInProcedure,
22654
22658
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22655
22659
  });
22656
- _this14.push(roleInProcedureItem);
22660
+ _this12.push(roleInProcedureItem);
22657
22661
  }
22658
- return _this14;
22662
+ return _this12;
22659
22663
  }
22660
22664
  return _createClass(DeviceObserverIdentifyingAttributes);
22661
22665
  }(Template);
22662
22666
  var SubjectContext = /*#__PURE__*/function (_Template9) {
22663
22667
  _inherits(SubjectContext, _Template9);
22664
22668
  function SubjectContext(options) {
22665
- var _this16;
22666
- var _this15;
22669
+ var _this14;
22670
+ var _this13;
22667
22671
  _classCallCheck(this, SubjectContext);
22668
- _this15 = _callSuper(this, SubjectContext);
22672
+ _this13 = _callSuper(this, SubjectContext);
22669
22673
  if (options.subjectClass === undefined) {
22670
22674
  throw new Error("Option 'subjectClass' is required for SubjectContext.");
22671
22675
  }
@@ -22681,7 +22685,7 @@ var SubjectContext = /*#__PURE__*/function (_Template9) {
22681
22685
  value: options.subjectClass,
22682
22686
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22683
22687
  });
22684
- _this15.push(subjectClassItem);
22688
+ _this13.push(subjectClassItem);
22685
22689
  var fetus = new CodedConcept({
22686
22690
  value: "121026 ",
22687
22691
  schemeDesignator: "DCM",
@@ -22712,17 +22716,17 @@ var SubjectContext = /*#__PURE__*/function (_Template9) {
22712
22716
  } else {
22713
22717
  throw new Error("Option 'subjectClass' must be either 'Fetus', 'Specimen', or 'Device'.");
22714
22718
  }
22715
- (_this16 = _this15).push.apply(_this16, _toConsumableArray(options.subjectClassSpecificContext));
22716
- return _this15;
22719
+ (_this14 = _this13).push.apply(_this14, _toConsumableArray(options.subjectClassSpecificContext));
22720
+ return _this13;
22717
22721
  }
22718
22722
  return _createClass(SubjectContext);
22719
22723
  }(Template);
22720
- var SubjectContextFetus = /*#__PURE__*/function (_Template10) {
22721
- _inherits(SubjectContextFetus, _Template10);
22724
+ var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
22725
+ _inherits(SubjectContextFetus, _Template0);
22722
22726
  function SubjectContextFetus(options) {
22723
- var _this17;
22727
+ var _this15;
22724
22728
  _classCallCheck(this, SubjectContextFetus);
22725
- _this17 = _callSuper(this, SubjectContextFetus);
22729
+ _this15 = _callSuper(this, SubjectContextFetus);
22726
22730
  if (options.subjectID === undefined) {
22727
22731
  throw new Error("Option 'subjectID' is required for SubjectContextFetus.");
22728
22732
  }
@@ -22735,17 +22739,17 @@ var SubjectContextFetus = /*#__PURE__*/function (_Template10) {
22735
22739
  value: options.subjectID,
22736
22740
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22737
22741
  });
22738
- _this17.push(subjectIdItem);
22739
- return _this17;
22742
+ _this15.push(subjectIdItem);
22743
+ return _this15;
22740
22744
  }
22741
22745
  return _createClass(SubjectContextFetus);
22742
22746
  }(Template);
22743
- var SubjectContextSpecimen = /*#__PURE__*/function (_Template11) {
22744
- _inherits(SubjectContextSpecimen, _Template11);
22747
+ var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
22748
+ _inherits(SubjectContextSpecimen, _Template1);
22745
22749
  function SubjectContextSpecimen(options) {
22746
- var _this18;
22750
+ var _this16;
22747
22751
  _classCallCheck(this, SubjectContextSpecimen);
22748
- _this18 = _callSuper(this, SubjectContextSpecimen);
22752
+ _this16 = _callSuper(this, SubjectContextSpecimen);
22749
22753
  if (options.uid === undefined) {
22750
22754
  throw new Error("Option 'uid' is required for SubjectContextSpecimen.");
22751
22755
  }
@@ -22758,7 +22762,7 @@ var SubjectContextSpecimen = /*#__PURE__*/function (_Template11) {
22758
22762
  value: options.uid,
22759
22763
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22760
22764
  });
22761
- _this18.push(specimenUidItem);
22765
+ _this16.push(specimenUidItem);
22762
22766
  if (options.identifier !== undefined) {
22763
22767
  var specimenIdentifierItem = new TextContentItem({
22764
22768
  name: new CodedConcept({
@@ -22769,7 +22773,7 @@ var SubjectContextSpecimen = /*#__PURE__*/function (_Template11) {
22769
22773
  value: options.identifier,
22770
22774
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22771
22775
  });
22772
- _this18.push(specimenIdentifierItem);
22776
+ _this16.push(specimenIdentifierItem);
22773
22777
  }
22774
22778
  if (options.containerIdentifier !== undefined) {
22775
22779
  var containerIdentifierItem = new TextContentItem({
@@ -22781,7 +22785,7 @@ var SubjectContextSpecimen = /*#__PURE__*/function (_Template11) {
22781
22785
  value: options.containerIdentifier,
22782
22786
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22783
22787
  });
22784
- _this18.push(containerIdentifierItem);
22788
+ _this16.push(containerIdentifierItem);
22785
22789
  }
22786
22790
  if (options.specimenType !== undefined) {
22787
22791
  var specimenTypeItem = new CodeContentItem({
@@ -22793,18 +22797,18 @@ var SubjectContextSpecimen = /*#__PURE__*/function (_Template11) {
22793
22797
  value: options.specimenType,
22794
22798
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22795
22799
  });
22796
- _this18.push(specimenTypeItem);
22800
+ _this16.push(specimenTypeItem);
22797
22801
  }
22798
- return _this18;
22802
+ return _this16;
22799
22803
  }
22800
22804
  return _createClass(SubjectContextSpecimen);
22801
22805
  }(Template);
22802
- var SubjectContextDevice = /*#__PURE__*/function (_Template12) {
22803
- _inherits(SubjectContextDevice, _Template12);
22806
+ var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
22807
+ _inherits(SubjectContextDevice, _Template10);
22804
22808
  function SubjectContextDevice(options) {
22805
- var _this19;
22809
+ var _this17;
22806
22810
  _classCallCheck(this, SubjectContextDevice);
22807
- _this19 = _callSuper(this, SubjectContextDevice, [options]);
22811
+ _this17 = _callSuper(this, SubjectContextDevice, [options]);
22808
22812
  if (options.name === undefined) {
22809
22813
  throw new Error("Option 'name' is required for SubjectContextDevice.");
22810
22814
  }
@@ -22817,7 +22821,7 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template12) {
22817
22821
  value: options.name,
22818
22822
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22819
22823
  });
22820
- _this19.push(deviceNameItem);
22824
+ _this17.push(deviceNameItem);
22821
22825
  if (options.uid !== undefined) {
22822
22826
  var deviceUidItem = new UIDRefContentItem({
22823
22827
  name: new CodedConcept({
@@ -22828,7 +22832,7 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template12) {
22828
22832
  value: options.uid,
22829
22833
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22830
22834
  });
22831
- _this19.push(deviceUidItem);
22835
+ _this17.push(deviceUidItem);
22832
22836
  }
22833
22837
  if (options.manufacturerName !== undefined) {
22834
22838
  var manufacturerNameItem = new TextContentItem({
@@ -22840,7 +22844,7 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template12) {
22840
22844
  value: options.manufacturerName,
22841
22845
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22842
22846
  });
22843
- _this19.push(manufacturerNameItem);
22847
+ _this17.push(manufacturerNameItem);
22844
22848
  }
22845
22849
  if (options.modelName !== undefined) {
22846
22850
  var modelNameItem = new TextContentItem({
@@ -22852,7 +22856,7 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template12) {
22852
22856
  value: options.modelName,
22853
22857
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22854
22858
  });
22855
- _this19.push(modelNameItem);
22859
+ _this17.push(modelNameItem);
22856
22860
  }
22857
22861
  if (options.serialNumber !== undefined) {
22858
22862
  var serialNumberItem = new TextContentItem({
@@ -22864,7 +22868,7 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template12) {
22864
22868
  value: options.serialNumber,
22865
22869
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22866
22870
  });
22867
- _this19.push(serialNumberItem);
22871
+ _this17.push(serialNumberItem);
22868
22872
  }
22869
22873
  if (options.physicalLocation !== undefined) {
22870
22874
  var physicalLocationItem = new TextContentItem({
@@ -22876,18 +22880,18 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template12) {
22876
22880
  value: options.physicalLocation,
22877
22881
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
22878
22882
  });
22879
- _this19.push(physicalLocationItem);
22883
+ _this17.push(physicalLocationItem);
22880
22884
  }
22881
- return _this19;
22885
+ return _this17;
22882
22886
  }
22883
22887
  return _createClass(SubjectContextDevice);
22884
22888
  }(Template);
22885
- var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template13) {
22886
- _inherits(LanguageOfContentItemAndDescendants, _Template13);
22889
+ var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
22890
+ _inherits(LanguageOfContentItemAndDescendants, _Template11);
22887
22891
  function LanguageOfContentItemAndDescendants(options) {
22888
- var _this20;
22892
+ var _this18;
22889
22893
  _classCallCheck(this, LanguageOfContentItemAndDescendants);
22890
- _this20 = _callSuper(this, LanguageOfContentItemAndDescendants);
22894
+ _this18 = _callSuper(this, LanguageOfContentItemAndDescendants);
22891
22895
  if (options.language === undefined) {
22892
22896
  options.language = new CodedConcept({
22893
22897
  value: "en-US",
@@ -22904,18 +22908,18 @@ var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template13) {
22904
22908
  value: options.language,
22905
22909
  relationshipType: RelationshipTypes.HAS_CONCEPT_MOD
22906
22910
  });
22907
- _this20.push(languageItem);
22908
- return _this20;
22911
+ _this18.push(languageItem);
22912
+ return _this18;
22909
22913
  }
22910
22914
  return _createClass(LanguageOfContentItemAndDescendants);
22911
22915
  }(Template);
22912
- var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template14) {
22913
- _inherits(_MeasurementsAndQualitatitiveEvaluations, _Template14);
22916
+ var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
22917
+ _inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
22914
22918
  function _MeasurementsAndQualitatitiveEvaluations(options) {
22915
22919
  var _groupItem$ContentSeq;
22916
- var _this21;
22920
+ var _this19;
22917
22921
  _classCallCheck(this, _MeasurementsAndQualitatitiveEvaluations);
22918
- _this21 = _callSuper(this, _MeasurementsAndQualitatitiveEvaluations);
22922
+ _this19 = _callSuper(this, _MeasurementsAndQualitatitiveEvaluations);
22919
22923
  var groupItem = new ContainerContentItem({
22920
22924
  name: new CodedConcept({
22921
22925
  value: "125007",
@@ -22995,17 +22999,17 @@ var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template1
22995
22999
  groupItem.ContentSequence.push(evaluation);
22996
23000
  });
22997
23001
  }
22998
- _this21.push(groupItem);
22999
- return _this21;
23002
+ _this19.push(groupItem);
23003
+ return _this19;
23000
23004
  }
23001
23005
  return _createClass(_MeasurementsAndQualitatitiveEvaluations);
23002
23006
  }(Template);
23003
23007
  var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_MeasurementsAndQuali) {
23004
23008
  _inherits(_ROIMeasurementsAndQualitativeEvaluations, _MeasurementsAndQuali);
23005
23009
  function _ROIMeasurementsAndQualitativeEvaluations(options) {
23006
- var _this22;
23010
+ var _this20;
23007
23011
  _classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
23008
- _this22 = _callSuper(this, _ROIMeasurementsAndQualitativeEvaluations, [{
23012
+ _this20 = _callSuper(this, _ROIMeasurementsAndQualitativeEvaluations, [{
23009
23013
  trackingIdentifier: options.trackingIdentifier,
23010
23014
  timePointContext: options.timePointContext,
23011
23015
  findingType: options.findingType,
@@ -23013,7 +23017,7 @@ var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_Measurem
23013
23017
  measurements: options.measurements,
23014
23018
  qualitativeEvaluations: options.qualitativeEvaluations
23015
23019
  }]);
23016
- var groupItem = _this22[0];
23020
+ var groupItem = _this20[0];
23017
23021
  var wereReferencesProvided = [options.referencedRegions !== undefined, options.referencedVolume !== undefined, options.referencedSegmentation !== undefined];
23018
23022
  var numReferences = wereReferencesProvided.reduce(function (a, b) {
23019
23023
  return a + b;
@@ -23047,8 +23051,8 @@ var _ROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (_Measurem
23047
23051
  }
23048
23052
  groupItem.ContentSequence.push(options.referencedSegmentation);
23049
23053
  }
23050
- _this22[0] = groupItem;
23051
- return _this22;
23054
+ _this20[0] = groupItem;
23055
+ return _this20;
23052
23056
  }
23053
23057
  return _createClass(_ROIMeasurementsAndQualitativeEvaluations);
23054
23058
  }(_MeasurementsAndQualitatitiveEvaluations);
@@ -23097,12 +23101,12 @@ var VolumetricROIMeasurementsAndQualitativeEvaluations = /*#__PURE__*/function (
23097
23101
  }
23098
23102
  return _createClass(VolumetricROIMeasurementsAndQualitativeEvaluations);
23099
23103
  }(_ROIMeasurementsAndQualitativeEvaluations);
23100
- var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template15) {
23101
- _inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template15);
23104
+ var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
23105
+ _inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
23102
23106
  function MeasurementsDerivedFromMultipleROIMeasurements(options) {
23103
- var _this23;
23107
+ var _this21;
23104
23108
  _classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
23105
- _this23 = _callSuper(this, MeasurementsDerivedFromMultipleROIMeasurements, [options]);
23109
+ _this21 = _callSuper(this, MeasurementsDerivedFromMultipleROIMeasurements, [options]);
23106
23110
  if (options.derivation === undefined) {
23107
23111
  throw new Error("Option 'derivation' is required for " + "MeasurementsDerivedFromMultipleROIMeasurements.");
23108
23112
  }
@@ -23132,8 +23136,8 @@ var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Tem
23132
23136
  }
23133
23137
  (_valueItem$ContentSeq5 = valueItem.ContentSequence).push.apply(_valueItem$ContentSeq5, _toConsumableArray(options.measurementProperties));
23134
23138
  }
23135
- _this23.push(valueItem);
23136
- return _this23;
23139
+ _this21.push(valueItem);
23140
+ return _this21;
23137
23141
  }
23138
23142
  return _createClass(MeasurementsDerivedFromMultipleROIMeasurements);
23139
23143
  }(Template);
@@ -23153,12 +23157,12 @@ var MeasurementAndQualitativeEvaluationGroup = /*#__PURE__*/function (_Measureme
23153
23157
  }
23154
23158
  return _createClass(MeasurementAndQualitativeEvaluationGroup);
23155
23159
  }(_MeasurementsAndQualitatitiveEvaluations);
23156
- var ROIMeasurements = /*#__PURE__*/function (_Template16) {
23157
- _inherits(ROIMeasurements, _Template16);
23160
+ var ROIMeasurements = /*#__PURE__*/function (_Template14) {
23161
+ _inherits(ROIMeasurements, _Template14);
23158
23162
  function ROIMeasurements(options) {
23159
- var _this24;
23163
+ var _this22;
23160
23164
  _classCallCheck(this, ROIMeasurements);
23161
- _this24 = _callSuper(this, ROIMeasurements);
23165
+ _this22 = _callSuper(this, ROIMeasurements);
23162
23166
  if (options.method !== undefined) {
23163
23167
  var methodItem = new CodeContentItem({
23164
23168
  name: new CodedConcept({
@@ -23169,7 +23173,7 @@ var ROIMeasurements = /*#__PURE__*/function (_Template16) {
23169
23173
  value: options.method,
23170
23174
  relationshipType: RelationshipTypes.HAS_CONCEPT_MOD
23171
23175
  });
23172
- _this24.push(methodItem);
23176
+ _this22.push(methodItem);
23173
23177
  }
23174
23178
  if (options.findingSites !== undefined) {
23175
23179
  if (!(_typeof(options.findingSites) === "object" || options.findingSites instanceof Array)) {
@@ -23179,7 +23183,7 @@ var ROIMeasurements = /*#__PURE__*/function (_Template16) {
23179
23183
  if (!site || site.constructor !== FindingSite) {
23180
23184
  throw new Error("Items of option 'findingSites' must have type FindingSite.");
23181
23185
  }
23182
- _this24.push(site);
23186
+ _this22.push(site);
23183
23187
  });
23184
23188
  }
23185
23189
  if (options.measurements === undefined) {
@@ -23195,19 +23199,19 @@ var ROIMeasurements = /*#__PURE__*/function (_Template16) {
23195
23199
  if (!measurement || measurement.constructor !== Measurement) {
23196
23200
  throw new Error("Items of option 'measurements' must have type Measurement.");
23197
23201
  }
23198
- _this24.push(measurement);
23202
+ _this22.push(measurement);
23199
23203
  });
23200
- return _this24;
23204
+ return _this22;
23201
23205
  }
23202
23206
  return _createClass(ROIMeasurements);
23203
23207
  }(Template);
23204
- var MeasurementReport = /*#__PURE__*/function (_Template17) {
23205
- _inherits(MeasurementReport, _Template17);
23208
+ var MeasurementReport = /*#__PURE__*/function (_Template15) {
23209
+ _inherits(MeasurementReport, _Template15);
23206
23210
  function MeasurementReport(options) {
23207
23211
  var _item$ContentSequence, _item$ContentSequence2, _item$ContentSequence3;
23208
- var _this25;
23212
+ var _this23;
23209
23213
  _classCallCheck(this, MeasurementReport);
23210
- _this25 = _callSuper(this, MeasurementReport);
23214
+ _this23 = _callSuper(this, MeasurementReport);
23211
23215
  if (options.observationContext === undefined) {
23212
23216
  throw new Error("Option 'observationContext' is required for MeasurementReport.");
23213
23217
  }
@@ -23292,17 +23296,17 @@ var MeasurementReport = /*#__PURE__*/function (_Template17) {
23292
23296
  _containerItem2.ContentSequence = _construct(ContentSequence, _toConsumableArray(options.qualitativeEvaluations));
23293
23297
  item.ContentSequence.push(_containerItem2);
23294
23298
  }
23295
- _this25.push(item);
23296
- return _this25;
23299
+ _this23.push(item);
23300
+ return _this23;
23297
23301
  }
23298
23302
  return _createClass(MeasurementReport);
23299
23303
  }(Template);
23300
- var TimePointContext = /*#__PURE__*/function (_Template18) {
23301
- _inherits(TimePointContext, _Template18);
23304
+ var TimePointContext = /*#__PURE__*/function (_Template16) {
23305
+ _inherits(TimePointContext, _Template16);
23302
23306
  function TimePointContext(options) {
23303
- var _this26;
23307
+ var _this24;
23304
23308
  _classCallCheck(this, TimePointContext);
23305
- _this26 = _callSuper(this, TimePointContext, [options]);
23309
+ _this24 = _callSuper(this, TimePointContext, [options]);
23306
23310
  if (options.timePoint === undefined) {
23307
23311
  throw new Error("Option 'timePoint' is required for TimePointContext.");
23308
23312
  }
@@ -23315,7 +23319,7 @@ var TimePointContext = /*#__PURE__*/function (_Template18) {
23315
23319
  value: options.timePoint,
23316
23320
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
23317
23321
  });
23318
- _this26.push(timePointItem);
23322
+ _this24.push(timePointItem);
23319
23323
  if (options.timePointType !== undefined) {
23320
23324
  var timePointTypeItem = new CodeContentItem({
23321
23325
  name: new CodedConcept({
@@ -23326,7 +23330,7 @@ var TimePointContext = /*#__PURE__*/function (_Template18) {
23326
23330
  value: options.timePointType,
23327
23331
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
23328
23332
  });
23329
- _this26.push(timePointTypeItem);
23333
+ _this24.push(timePointTypeItem);
23330
23334
  }
23331
23335
  if (options.timePointOrder !== undefined) {
23332
23336
  var timePointOrderItem = new NumContentItem({
@@ -23338,7 +23342,7 @@ var TimePointContext = /*#__PURE__*/function (_Template18) {
23338
23342
  value: options.timePointOrder,
23339
23343
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
23340
23344
  });
23341
- _this26.push(timePointOrderItem);
23345
+ _this24.push(timePointOrderItem);
23342
23346
  }
23343
23347
  if (options.subjectTimePointIdentifier !== undefined) {
23344
23348
  var subjectTimePointIdentifierItem = new NumContentItem({
@@ -23350,7 +23354,7 @@ var TimePointContext = /*#__PURE__*/function (_Template18) {
23350
23354
  value: options.subjectTimePointIdentifier,
23351
23355
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
23352
23356
  });
23353
- _this26.push(subjectTimePointIdentifierItem);
23357
+ _this24.push(subjectTimePointIdentifierItem);
23354
23358
  }
23355
23359
  if (options.protocolTimePointIdentifier !== undefined) {
23356
23360
  var protocolTimePointIdentifierItem = new NumContentItem({
@@ -23362,7 +23366,7 @@ var TimePointContext = /*#__PURE__*/function (_Template18) {
23362
23366
  value: options.protocolTimePointIdentifier,
23363
23367
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
23364
23368
  });
23365
- _this26.push(protocolTimePointIdentifierItem);
23369
+ _this24.push(protocolTimePointIdentifierItem);
23366
23370
  }
23367
23371
  if (options.temporalOffsetFromEvent !== undefined) {
23368
23372
  // TODO: Missing LongitudinalTemporalOffsetFromEventContentItem
@@ -23375,18 +23379,18 @@ var TimePointContext = /*#__PURE__*/function (_Template18) {
23375
23379
  // "LongitudinalTemporalOffsetFromEventContentItem."
23376
23380
  // );
23377
23381
  // }
23378
- _this26.push(options.temporalOffsetFromEvent);
23382
+ _this24.push(options.temporalOffsetFromEvent);
23379
23383
  }
23380
- return _this26;
23384
+ return _this24;
23381
23385
  }
23382
23386
  return _createClass(TimePointContext);
23383
23387
  }(Template);
23384
- var ImageLibrary = /*#__PURE__*/function (_Template19) {
23385
- _inherits(ImageLibrary, _Template19);
23388
+ var ImageLibrary = /*#__PURE__*/function (_Template17) {
23389
+ _inherits(ImageLibrary, _Template17);
23386
23390
  function ImageLibrary() {
23387
- var _this27;
23391
+ var _this25;
23388
23392
  _classCallCheck(this, ImageLibrary);
23389
- _this27 = _callSuper(this, ImageLibrary);
23393
+ _this25 = _callSuper(this, ImageLibrary);
23390
23394
  var libraryItem = new ContainerContentItem({
23391
23395
  name: new CodedConcept({
23392
23396
  value: "111028",
@@ -23395,17 +23399,17 @@ var ImageLibrary = /*#__PURE__*/function (_Template19) {
23395
23399
  }),
23396
23400
  relationshipType: RelationshipTypes.CONTAINS
23397
23401
  });
23398
- _this27.push(libraryItem);
23399
- return _this27;
23402
+ _this25.push(libraryItem);
23403
+ return _this25;
23400
23404
  }
23401
23405
  return _createClass(ImageLibrary);
23402
23406
  }(Template);
23403
- var AlgorithmIdentification = /*#__PURE__*/function (_Template20) {
23404
- _inherits(AlgorithmIdentification, _Template20);
23407
+ var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
23408
+ _inherits(AlgorithmIdentification, _Template18);
23405
23409
  function AlgorithmIdentification(options) {
23406
- var _this28;
23410
+ var _this26;
23407
23411
  _classCallCheck(this, AlgorithmIdentification);
23408
- _this28 = _callSuper(this, AlgorithmIdentification);
23412
+ _this26 = _callSuper(this, AlgorithmIdentification);
23409
23413
  if (options.name === undefined) {
23410
23414
  throw new Error("Option 'name' is required for AlgorithmIdentification.");
23411
23415
  }
@@ -23421,7 +23425,7 @@ var AlgorithmIdentification = /*#__PURE__*/function (_Template20) {
23421
23425
  value: options.name,
23422
23426
  relationshipType: RelationshipTypes.HAS_CONCEPT_MOD
23423
23427
  });
23424
- _this28.push(nameItem);
23428
+ _this26.push(nameItem);
23425
23429
  var versionItem = new TextContentItem({
23426
23430
  name: new CodedConcept({
23427
23431
  value: "111003",
@@ -23431,7 +23435,7 @@ var AlgorithmIdentification = /*#__PURE__*/function (_Template20) {
23431
23435
  value: options.version,
23432
23436
  relationshipType: RelationshipTypes.HAS_CONCEPT_MOD
23433
23437
  });
23434
- _this28.push(versionItem);
23438
+ _this26.push(versionItem);
23435
23439
  if (options.parameters !== undefined) {
23436
23440
  if (!(_typeof(options.parameters) === "object" || options.parameters instanceof Array)) {
23437
23441
  throw new Error("Option 'parameters' must have type Array.");
@@ -23446,19 +23450,19 @@ var AlgorithmIdentification = /*#__PURE__*/function (_Template20) {
23446
23450
  value: parameter,
23447
23451
  relationshipType: RelationshipTypes.HAS_CONCEPT_MOD
23448
23452
  });
23449
- _this28.push(parameterItem);
23453
+ _this26.push(parameterItem);
23450
23454
  });
23451
23455
  }
23452
- return _this28;
23456
+ return _this26;
23453
23457
  }
23454
23458
  return _createClass(AlgorithmIdentification);
23455
23459
  }(Template);
23456
- var TrackingIdentifier = /*#__PURE__*/function (_Template21) {
23457
- _inherits(TrackingIdentifier, _Template21);
23460
+ var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
23461
+ _inherits(TrackingIdentifier, _Template19);
23458
23462
  function TrackingIdentifier(options) {
23459
- var _this29;
23463
+ var _this27;
23460
23464
  _classCallCheck(this, TrackingIdentifier);
23461
- _this29 = _callSuper(this, TrackingIdentifier, [options]);
23465
+ _this27 = _callSuper(this, TrackingIdentifier, [options]);
23462
23466
  if (options.uid === undefined) {
23463
23467
  throw new Error("Option 'uid' is required for TrackingIdentifier.");
23464
23468
  }
@@ -23472,7 +23476,7 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template21) {
23472
23476
  value: options.identifier,
23473
23477
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
23474
23478
  });
23475
- _this29.push(trackingIdentifierItem);
23479
+ _this27.push(trackingIdentifierItem);
23476
23480
  }
23477
23481
  var trackingUIDItem = new UIDRefContentItem({
23478
23482
  name: new CodedConcept({
@@ -23483,8 +23487,8 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template21) {
23483
23487
  value: options.uid,
23484
23488
  relationshipType: RelationshipTypes.HAS_OBS_CONTEXT
23485
23489
  });
23486
- _this29.push(trackingUIDItem);
23487
- return _this29;
23490
+ _this27.push(trackingUIDItem);
23491
+ return _this27;
23488
23492
  }
23489
23493
  return _createClass(TrackingIdentifier);
23490
23494
  }(Template);