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 +327 -323
- package/build/dcmjs.es.js.map +1 -1
- package/build/dcmjs.js +327 -323
- package/build/dcmjs.js.map +1 -1
- package/build/dcmjs.min.js +3 -0
- package/build/dcmjs.min.js.map +1 -0
- package/package.json +2 -1
- package/rollup.config.mjs +8 -0
- package/test/data.test.js +23 -0
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
|
|
9438
|
+
var _this0;
|
|
9437
9439
|
_classCallCheck(this, FloatingPointSingle);
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
return
|
|
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
|
|
9468
|
+
var _this1;
|
|
9467
9469
|
_classCallCheck(this, FloatingPointDouble);
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
return
|
|
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
|
|
9498
|
+
var _this10;
|
|
9497
9499
|
_classCallCheck(this, IntegerString);
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
return
|
|
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
|
|
9526
|
+
var _this11 = this;
|
|
9525
9527
|
var val = Array.isArray(value) ? value.map(function (is) {
|
|
9526
|
-
return
|
|
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
|
|
9538
|
+
var _this12;
|
|
9537
9539
|
_classCallCheck(this, LongString);
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
return
|
|
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
|
|
9561
|
+
var _this13;
|
|
9560
9562
|
_classCallCheck(this, LongText);
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
return
|
|
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
|
|
9584
|
+
var _this14;
|
|
9583
9585
|
_classCallCheck(this, PersonName);
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
return
|
|
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
|
|
9699
|
+
var _this15;
|
|
9698
9700
|
_classCallCheck(this, ShortString);
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
return
|
|
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
|
|
9722
|
+
var _this16;
|
|
9721
9723
|
_classCallCheck(this, SignedLong);
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
return
|
|
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
|
|
9747
|
+
var _this17;
|
|
9746
9748
|
_classCallCheck(this, SequenceOfItems);
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
return
|
|
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
|
|
9875
|
+
var _this18;
|
|
9874
9876
|
_classCallCheck(this, SignedShort);
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
return
|
|
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
|
|
9901
|
+
var _this19;
|
|
9900
9902
|
_classCallCheck(this, ShortText);
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
return
|
|
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
|
|
9924
|
+
var _this20;
|
|
9923
9925
|
_classCallCheck(this, TimeValue);
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
return
|
|
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
|
|
9957
|
+
var _this21;
|
|
9956
9958
|
_classCallCheck(this, UnlimitedCharacters);
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
return
|
|
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
|
|
9981
|
+
var _this22;
|
|
9980
9982
|
_classCallCheck(this, UnlimitedText);
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
return
|
|
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 (
|
|
10000
|
-
_inherits(UnsignedShort,
|
|
10001
|
+
var UnsignedShort = /*#__PURE__*/function (_ValueRepresentation0) {
|
|
10002
|
+
_inherits(UnsignedShort, _ValueRepresentation0);
|
|
10001
10003
|
function UnsignedShort() {
|
|
10002
|
-
var
|
|
10004
|
+
var _this23;
|
|
10003
10005
|
_classCallCheck(this, UnsignedShort);
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
return
|
|
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 (
|
|
10025
|
-
_inherits(UnsignedLong,
|
|
10026
|
+
var UnsignedLong = /*#__PURE__*/function (_ValueRepresentation1) {
|
|
10027
|
+
_inherits(UnsignedLong, _ValueRepresentation1);
|
|
10026
10028
|
function UnsignedLong() {
|
|
10027
|
-
var
|
|
10029
|
+
var _this24;
|
|
10028
10030
|
_classCallCheck(this, UnsignedLong);
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
return
|
|
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
|
|
10054
|
+
var _this25;
|
|
10053
10055
|
_classCallCheck(this, UniqueIdentifier);
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
return
|
|
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
|
|
10098
|
+
var _this26;
|
|
10097
10099
|
_classCallCheck(this, UniversalResource);
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
return
|
|
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
|
|
10116
|
+
var _this27;
|
|
10115
10117
|
_classCallCheck(this, UnknownValue);
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
return
|
|
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
|
|
10129
|
+
var _this28;
|
|
10128
10130
|
_classCallCheck(this, ParsedUnknownValue);
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
return
|
|
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
|
|
10173
|
+
var _this29;
|
|
10172
10174
|
_classCallCheck(this, OtherWordString);
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
return
|
|
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
|
|
10186
|
+
var _this30;
|
|
10185
10187
|
_classCallCheck(this, OtherByteString);
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
return
|
|
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
|
|
10199
|
+
var _this31;
|
|
10198
10200
|
_classCallCheck(this, OtherDoubleString);
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
return
|
|
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
|
|
10212
|
+
var _this32;
|
|
10211
10213
|
_classCallCheck(this, OtherFloatString);
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
return
|
|
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 (
|
|
11833
|
-
_inherits(OCTImageNormalizer,
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
}(
|
|
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 (
|
|
21553
|
-
_inherits(CompositeContentItem,
|
|
21556
|
+
var CompositeContentItem = /*#__PURE__*/function (_ContentItem0) {
|
|
21557
|
+
_inherits(CompositeContentItem, _ContentItem0);
|
|
21554
21558
|
function CompositeContentItem(options) {
|
|
21555
|
-
var
|
|
21559
|
+
var _this0;
|
|
21556
21560
|
_classCallCheck(this, CompositeContentItem);
|
|
21557
|
-
|
|
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
|
-
|
|
21578
|
-
return
|
|
21581
|
+
_this0.ReferenceSOPSequence = [item];
|
|
21582
|
+
return _this0;
|
|
21579
21583
|
}
|
|
21580
21584
|
return _createClass(CompositeContentItem);
|
|
21581
21585
|
}(ContentItem);
|
|
21582
|
-
var ImageContentItem = /*#__PURE__*/function (
|
|
21583
|
-
_inherits(ImageContentItem,
|
|
21586
|
+
var ImageContentItem = /*#__PURE__*/function (_ContentItem1) {
|
|
21587
|
+
_inherits(ImageContentItem, _ContentItem1);
|
|
21584
21588
|
function ImageContentItem(options) {
|
|
21585
|
-
var
|
|
21589
|
+
var _this1;
|
|
21586
21590
|
_classCallCheck(this, ImageContentItem);
|
|
21587
|
-
|
|
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
|
-
|
|
21622
|
-
return
|
|
21625
|
+
_this1.ReferencedSOPSequence = [item];
|
|
21626
|
+
return _this1;
|
|
21623
21627
|
}
|
|
21624
21628
|
return _createClass(ImageContentItem);
|
|
21625
21629
|
}(ContentItem);
|
|
21626
|
-
var ScoordContentItem = /*#__PURE__*/function (
|
|
21627
|
-
_inherits(ScoordContentItem,
|
|
21630
|
+
var ScoordContentItem = /*#__PURE__*/function (_ContentItem10) {
|
|
21631
|
+
_inherits(ScoordContentItem, _ContentItem10);
|
|
21628
21632
|
function ScoordContentItem(options) {
|
|
21629
|
-
var
|
|
21633
|
+
var _this10;
|
|
21630
21634
|
_classCallCheck(this, ScoordContentItem);
|
|
21631
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21670
|
+
_this10.FiducialUID = options.fiducialUID;
|
|
21667
21671
|
}
|
|
21668
|
-
return
|
|
21672
|
+
return _this10;
|
|
21669
21673
|
}
|
|
21670
21674
|
return _createClass(ScoordContentItem);
|
|
21671
21675
|
}(ContentItem);
|
|
21672
|
-
var Scoord3DContentItem = /*#__PURE__*/function (
|
|
21673
|
-
_inherits(Scoord3DContentItem,
|
|
21676
|
+
var Scoord3DContentItem = /*#__PURE__*/function (_ContentItem11) {
|
|
21677
|
+
_inherits(Scoord3DContentItem, _ContentItem11);
|
|
21674
21678
|
function Scoord3DContentItem(options) {
|
|
21675
|
-
var
|
|
21679
|
+
var _this11;
|
|
21676
21680
|
_classCallCheck(this, Scoord3DContentItem);
|
|
21677
|
-
|
|
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
|
-
|
|
21701
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21717
|
+
_this11.FiducialUID = options.fiducialUID;
|
|
21714
21718
|
}
|
|
21715
|
-
return
|
|
21719
|
+
return _this11;
|
|
21716
21720
|
}
|
|
21717
21721
|
return _createClass(Scoord3DContentItem);
|
|
21718
21722
|
}(ContentItem);
|
|
21719
|
-
var TcoordContentItem = /*#__PURE__*/function (
|
|
21720
|
-
_inherits(TcoordContentItem,
|
|
21723
|
+
var TcoordContentItem = /*#__PURE__*/function (_ContentItem12) {
|
|
21724
|
+
_inherits(TcoordContentItem, _ContentItem12);
|
|
21721
21725
|
function TcoordContentItem(options) {
|
|
21722
|
-
var
|
|
21726
|
+
var _this12;
|
|
21723
21727
|
_classCallCheck(this, TcoordContentItem);
|
|
21724
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
22448
|
+
var _this0;
|
|
22445
22449
|
if (options.subjectContext.constructor !== SubjectContext) {
|
|
22446
22450
|
throw new Error("Option 'subjectContext' must have type SubjectContext");
|
|
22447
22451
|
}
|
|
22448
|
-
(
|
|
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
|
|
22458
|
-
var
|
|
22461
|
+
var _this10;
|
|
22462
|
+
var _this1;
|
|
22459
22463
|
_classCallCheck(this, ObserverContext);
|
|
22460
|
-
|
|
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
|
-
|
|
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
|
-
(
|
|
22504
|
-
return
|
|
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
|
|
22515
|
+
var _this11;
|
|
22512
22516
|
_classCallCheck(this, PersonObserverIdentifyingAttributes);
|
|
22513
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22577
|
+
_this11.push(roleInProcedureItem);
|
|
22574
22578
|
}
|
|
22575
|
-
return
|
|
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
|
|
22586
|
+
var _this12;
|
|
22583
22587
|
_classCallCheck(this, DeviceObserverIdentifyingAttributes);
|
|
22584
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22660
|
+
_this12.push(roleInProcedureItem);
|
|
22657
22661
|
}
|
|
22658
|
-
return
|
|
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
|
|
22666
|
-
var
|
|
22669
|
+
var _this14;
|
|
22670
|
+
var _this13;
|
|
22667
22671
|
_classCallCheck(this, SubjectContext);
|
|
22668
|
-
|
|
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
|
-
|
|
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
|
-
(
|
|
22716
|
-
return
|
|
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 (
|
|
22721
|
-
_inherits(SubjectContextFetus,
|
|
22724
|
+
var SubjectContextFetus = /*#__PURE__*/function (_Template0) {
|
|
22725
|
+
_inherits(SubjectContextFetus, _Template0);
|
|
22722
22726
|
function SubjectContextFetus(options) {
|
|
22723
|
-
var
|
|
22727
|
+
var _this15;
|
|
22724
22728
|
_classCallCheck(this, SubjectContextFetus);
|
|
22725
|
-
|
|
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
|
-
|
|
22739
|
-
return
|
|
22742
|
+
_this15.push(subjectIdItem);
|
|
22743
|
+
return _this15;
|
|
22740
22744
|
}
|
|
22741
22745
|
return _createClass(SubjectContextFetus);
|
|
22742
22746
|
}(Template);
|
|
22743
|
-
var SubjectContextSpecimen = /*#__PURE__*/function (
|
|
22744
|
-
_inherits(SubjectContextSpecimen,
|
|
22747
|
+
var SubjectContextSpecimen = /*#__PURE__*/function (_Template1) {
|
|
22748
|
+
_inherits(SubjectContextSpecimen, _Template1);
|
|
22745
22749
|
function SubjectContextSpecimen(options) {
|
|
22746
|
-
var
|
|
22750
|
+
var _this16;
|
|
22747
22751
|
_classCallCheck(this, SubjectContextSpecimen);
|
|
22748
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22800
|
+
_this16.push(specimenTypeItem);
|
|
22797
22801
|
}
|
|
22798
|
-
return
|
|
22802
|
+
return _this16;
|
|
22799
22803
|
}
|
|
22800
22804
|
return _createClass(SubjectContextSpecimen);
|
|
22801
22805
|
}(Template);
|
|
22802
|
-
var SubjectContextDevice = /*#__PURE__*/function (
|
|
22803
|
-
_inherits(SubjectContextDevice,
|
|
22806
|
+
var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
|
|
22807
|
+
_inherits(SubjectContextDevice, _Template10);
|
|
22804
22808
|
function SubjectContextDevice(options) {
|
|
22805
|
-
var
|
|
22809
|
+
var _this17;
|
|
22806
22810
|
_classCallCheck(this, SubjectContextDevice);
|
|
22807
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
22883
|
+
_this17.push(physicalLocationItem);
|
|
22880
22884
|
}
|
|
22881
|
-
return
|
|
22885
|
+
return _this17;
|
|
22882
22886
|
}
|
|
22883
22887
|
return _createClass(SubjectContextDevice);
|
|
22884
22888
|
}(Template);
|
|
22885
|
-
var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (
|
|
22886
|
-
_inherits(LanguageOfContentItemAndDescendants,
|
|
22889
|
+
var LanguageOfContentItemAndDescendants = /*#__PURE__*/function (_Template11) {
|
|
22890
|
+
_inherits(LanguageOfContentItemAndDescendants, _Template11);
|
|
22887
22891
|
function LanguageOfContentItemAndDescendants(options) {
|
|
22888
|
-
var
|
|
22892
|
+
var _this18;
|
|
22889
22893
|
_classCallCheck(this, LanguageOfContentItemAndDescendants);
|
|
22890
|
-
|
|
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
|
-
|
|
22908
|
-
return
|
|
22911
|
+
_this18.push(languageItem);
|
|
22912
|
+
return _this18;
|
|
22909
22913
|
}
|
|
22910
22914
|
return _createClass(LanguageOfContentItemAndDescendants);
|
|
22911
22915
|
}(Template);
|
|
22912
|
-
var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (
|
|
22913
|
-
_inherits(_MeasurementsAndQualitatitiveEvaluations,
|
|
22916
|
+
var _MeasurementsAndQualitatitiveEvaluations = /*#__PURE__*/function (_Template12) {
|
|
22917
|
+
_inherits(_MeasurementsAndQualitatitiveEvaluations, _Template12);
|
|
22914
22918
|
function _MeasurementsAndQualitatitiveEvaluations(options) {
|
|
22915
22919
|
var _groupItem$ContentSeq;
|
|
22916
|
-
var
|
|
22920
|
+
var _this19;
|
|
22917
22921
|
_classCallCheck(this, _MeasurementsAndQualitatitiveEvaluations);
|
|
22918
|
-
|
|
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
|
-
|
|
22999
|
-
return
|
|
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
|
|
23010
|
+
var _this20;
|
|
23007
23011
|
_classCallCheck(this, _ROIMeasurementsAndQualitativeEvaluations);
|
|
23008
|
-
|
|
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 =
|
|
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
|
-
|
|
23051
|
-
return
|
|
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 (
|
|
23101
|
-
_inherits(MeasurementsDerivedFromMultipleROIMeasurements,
|
|
23104
|
+
var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Template13) {
|
|
23105
|
+
_inherits(MeasurementsDerivedFromMultipleROIMeasurements, _Template13);
|
|
23102
23106
|
function MeasurementsDerivedFromMultipleROIMeasurements(options) {
|
|
23103
|
-
var
|
|
23107
|
+
var _this21;
|
|
23104
23108
|
_classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
|
|
23105
|
-
|
|
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
|
-
|
|
23136
|
-
return
|
|
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 (
|
|
23157
|
-
_inherits(ROIMeasurements,
|
|
23160
|
+
var ROIMeasurements = /*#__PURE__*/function (_Template14) {
|
|
23161
|
+
_inherits(ROIMeasurements, _Template14);
|
|
23158
23162
|
function ROIMeasurements(options) {
|
|
23159
|
-
var
|
|
23163
|
+
var _this22;
|
|
23160
23164
|
_classCallCheck(this, ROIMeasurements);
|
|
23161
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23202
|
+
_this22.push(measurement);
|
|
23199
23203
|
});
|
|
23200
|
-
return
|
|
23204
|
+
return _this22;
|
|
23201
23205
|
}
|
|
23202
23206
|
return _createClass(ROIMeasurements);
|
|
23203
23207
|
}(Template);
|
|
23204
|
-
var MeasurementReport = /*#__PURE__*/function (
|
|
23205
|
-
_inherits(MeasurementReport,
|
|
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
|
|
23212
|
+
var _this23;
|
|
23209
23213
|
_classCallCheck(this, MeasurementReport);
|
|
23210
|
-
|
|
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
|
-
|
|
23296
|
-
return
|
|
23299
|
+
_this23.push(item);
|
|
23300
|
+
return _this23;
|
|
23297
23301
|
}
|
|
23298
23302
|
return _createClass(MeasurementReport);
|
|
23299
23303
|
}(Template);
|
|
23300
|
-
var TimePointContext = /*#__PURE__*/function (
|
|
23301
|
-
_inherits(TimePointContext,
|
|
23304
|
+
var TimePointContext = /*#__PURE__*/function (_Template16) {
|
|
23305
|
+
_inherits(TimePointContext, _Template16);
|
|
23302
23306
|
function TimePointContext(options) {
|
|
23303
|
-
var
|
|
23307
|
+
var _this24;
|
|
23304
23308
|
_classCallCheck(this, TimePointContext);
|
|
23305
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23382
|
+
_this24.push(options.temporalOffsetFromEvent);
|
|
23379
23383
|
}
|
|
23380
|
-
return
|
|
23384
|
+
return _this24;
|
|
23381
23385
|
}
|
|
23382
23386
|
return _createClass(TimePointContext);
|
|
23383
23387
|
}(Template);
|
|
23384
|
-
var ImageLibrary = /*#__PURE__*/function (
|
|
23385
|
-
_inherits(ImageLibrary,
|
|
23388
|
+
var ImageLibrary = /*#__PURE__*/function (_Template17) {
|
|
23389
|
+
_inherits(ImageLibrary, _Template17);
|
|
23386
23390
|
function ImageLibrary() {
|
|
23387
|
-
var
|
|
23391
|
+
var _this25;
|
|
23388
23392
|
_classCallCheck(this, ImageLibrary);
|
|
23389
|
-
|
|
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
|
-
|
|
23399
|
-
return
|
|
23402
|
+
_this25.push(libraryItem);
|
|
23403
|
+
return _this25;
|
|
23400
23404
|
}
|
|
23401
23405
|
return _createClass(ImageLibrary);
|
|
23402
23406
|
}(Template);
|
|
23403
|
-
var AlgorithmIdentification = /*#__PURE__*/function (
|
|
23404
|
-
_inherits(AlgorithmIdentification,
|
|
23407
|
+
var AlgorithmIdentification = /*#__PURE__*/function (_Template18) {
|
|
23408
|
+
_inherits(AlgorithmIdentification, _Template18);
|
|
23405
23409
|
function AlgorithmIdentification(options) {
|
|
23406
|
-
var
|
|
23410
|
+
var _this26;
|
|
23407
23411
|
_classCallCheck(this, AlgorithmIdentification);
|
|
23408
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23453
|
+
_this26.push(parameterItem);
|
|
23450
23454
|
});
|
|
23451
23455
|
}
|
|
23452
|
-
return
|
|
23456
|
+
return _this26;
|
|
23453
23457
|
}
|
|
23454
23458
|
return _createClass(AlgorithmIdentification);
|
|
23455
23459
|
}(Template);
|
|
23456
|
-
var TrackingIdentifier = /*#__PURE__*/function (
|
|
23457
|
-
_inherits(TrackingIdentifier,
|
|
23460
|
+
var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
|
|
23461
|
+
_inherits(TrackingIdentifier, _Template19);
|
|
23458
23462
|
function TrackingIdentifier(options) {
|
|
23459
|
-
var
|
|
23463
|
+
var _this27;
|
|
23460
23464
|
_classCallCheck(this, TrackingIdentifier);
|
|
23461
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23487
|
-
return
|
|
23490
|
+
_this27.push(trackingUIDItem);
|
|
23491
|
+
return _this27;
|
|
23488
23492
|
}
|
|
23489
23493
|
return _createClass(TrackingIdentifier);
|
|
23490
23494
|
}(Template);
|