dcmjs 0.50.1 → 0.50.3

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
@@ -14857,7 +14857,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
14857
14857
  }
14858
14858
  }
14859
14859
  if (!(tagInfo.tag === TagHex.SpecificCharacterSet)) {
14860
- _context11.next = 21;
14860
+ _context11.next = 22;
14861
14861
  break;
14862
14862
  }
14863
14863
  if (!(values.length > 0)) {
@@ -14885,11 +14885,19 @@ var AsyncDicomReader = /*#__PURE__*/function () {
14885
14885
  case 20:
14886
14886
  throw Error("Unsupported character set: ".concat(coding));
14887
14887
  case 21:
14888
+ // Normalize to UTF-8 in the stored value, matching the synchronous
14889
+ // DicomMessage path which always rewrites SpecificCharacterSet to
14890
+ // ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
14891
+ //
14892
+ // TODO: the original charset value should also be preserved:
14893
+ // it is needed for bulk data decoding.
14894
+ values = ["ISO_IR 192"];
14895
+ case 22:
14888
14896
  values.forEach(function (value) {
14889
14897
  return listener.value(value);
14890
14898
  });
14891
14899
  return _context11.abrupt("return", values);
14892
- case 23:
14900
+ case 24:
14893
14901
  case "end":
14894
14902
  return _context11.stop();
14895
14903
  }
@@ -26656,7 +26664,7 @@ var NormalRangeProperties = /*#__PURE__*/function (_Template4) {
26656
26664
  function NormalRangeProperties(options) {
26657
26665
  var _this6;
26658
26666
  _classCallCheck(this, NormalRangeProperties);
26659
- _this6 = _callSuper(this, NormalRangeProperties, [options]);
26667
+ _this6 = _callSuper(this, NormalRangeProperties);
26660
26668
  if (options.values === undefined) {
26661
26669
  throw new Error("Option 'values' is required for NormalRangeProperties.");
26662
26670
  }
@@ -27082,7 +27090,7 @@ var SubjectContextDevice = /*#__PURE__*/function (_Template10) {
27082
27090
  function SubjectContextDevice(options) {
27083
27091
  var _this17;
27084
27092
  _classCallCheck(this, SubjectContextDevice);
27085
- _this17 = _callSuper(this, SubjectContextDevice, [options]);
27093
+ _this17 = _callSuper(this, SubjectContextDevice);
27086
27094
  if (options.name === undefined) {
27087
27095
  throw new Error("Option 'name' is required for SubjectContextDevice.");
27088
27096
  }
@@ -27382,7 +27390,7 @@ var MeasurementsDerivedFromMultipleROIMeasurements = /*#__PURE__*/function (_Tem
27382
27390
  function MeasurementsDerivedFromMultipleROIMeasurements(options) {
27383
27391
  var _this21;
27384
27392
  _classCallCheck(this, MeasurementsDerivedFromMultipleROIMeasurements);
27385
- _this21 = _callSuper(this, MeasurementsDerivedFromMultipleROIMeasurements, [options]);
27393
+ _this21 = _callSuper(this, MeasurementsDerivedFromMultipleROIMeasurements);
27386
27394
  if (options.derivation === undefined) {
27387
27395
  throw new Error("Option 'derivation' is required for " + "MeasurementsDerivedFromMultipleROIMeasurements.");
27388
27396
  }
@@ -27582,7 +27590,7 @@ var TimePointContext = /*#__PURE__*/function (_Template16) {
27582
27590
  function TimePointContext(options) {
27583
27591
  var _this24;
27584
27592
  _classCallCheck(this, TimePointContext);
27585
- _this24 = _callSuper(this, TimePointContext, [options]);
27593
+ _this24 = _callSuper(this, TimePointContext);
27586
27594
  if (options.timePoint === undefined) {
27587
27595
  throw new Error("Option 'timePoint' is required for TimePointContext.");
27588
27596
  }
@@ -27738,7 +27746,7 @@ var TrackingIdentifier = /*#__PURE__*/function (_Template19) {
27738
27746
  function TrackingIdentifier(options) {
27739
27747
  var _this27;
27740
27748
  _classCallCheck(this, TrackingIdentifier);
27741
- _this27 = _callSuper(this, TrackingIdentifier, [options]);
27749
+ _this27 = _callSuper(this, TrackingIdentifier);
27742
27750
  if (options.uid === undefined) {
27743
27751
  throw new Error("Option 'uid' is required for TrackingIdentifier.");
27744
27752
  }