dcmjs 0.34.4 → 0.35.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
@@ -366,13 +366,8 @@ var loglevel = {exports: {}};
366
366
  var loglevelExports = loglevel.exports;
367
367
  var log = /*@__PURE__*/getDefaultExportFromCjs(loglevelExports);
368
368
 
369
- /**
370
- * A validation log shows issues with data validation, and not internal issues itself.
371
- * This is validation.dcmjs to group the validation issues into a single validation set to allow
372
- * turning validation on/off.
373
- */
374
- var validationLog = log.create("validation.dcmjs");
375
- log.setLevel(process.env.LOG_LEVEL || "warn");
369
+ log.setLevel("warn");
370
+ var validationLog = log.getLogger("validation.dcmjs");
376
371
 
377
372
  /* eslint no-bitwise: 0 */
378
373
  var BitArray = {
@@ -8619,7 +8614,8 @@ DicomMetaDictionary.sopClassNamesByUID = {
8619
8614
  "1.2.840.10008.5.1.4.1.1.88.33": "ComprehensiveSR",
8620
8615
  "1.2.840.10008.5.1.4.1.1.128": "PETImage",
8621
8616
  "1.2.840.10008.5.1.4.1.1.130": "EnhancedPETImage",
8622
- "1.2.840.10008.5.1.4.1.1.128.1": "LegacyConvertedEnhancedPETImage"
8617
+ "1.2.840.10008.5.1.4.1.1.128.1": "LegacyConvertedEnhancedPETImage",
8618
+ "1.2.840.10008.5.1.4.1.1.77.1.5.1": "OphthalmicPhotography8BitImage"
8623
8619
  };
8624
8620
  DicomMetaDictionary.dictionary = dictionary;
8625
8621
  DicomMetaDictionary._generateNameMap();
@@ -11253,6 +11249,7 @@ var Normalizer = /*#__PURE__*/function () {
11253
11249
  sopClassUIDMap[toUID.LegacyConvertedEnhancedPETImage] = PETImageNormalizer;
11254
11250
  sopClassUIDMap[toUID.Segmentation] = SEGImageNormalizer;
11255
11251
  sopClassUIDMap[toUID.DeformableSpatialRegistration] = DSRNormalizer;
11252
+ sopClassUIDMap[toUID.OphthalmicPhotography8BitImage] = OPImageNormalizer;
11256
11253
  return sopClassUIDMap[sopClassUID];
11257
11254
  }
11258
11255
  }, {
@@ -11766,6 +11763,20 @@ var DSRNormalizer = /*#__PURE__*/function (_Normalizer2) {
11766
11763
  }]);
11767
11764
  return DSRNormalizer;
11768
11765
  }(Normalizer);
11766
+ var OPImageNormalizer = /*#__PURE__*/function (_Normalizer3) {
11767
+ _inherits(OPImageNormalizer, _Normalizer3);
11768
+ function OPImageNormalizer() {
11769
+ _classCallCheck(this, OPImageNormalizer);
11770
+ return _callSuper(this, OPImageNormalizer, arguments);
11771
+ }
11772
+ _createClass(OPImageNormalizer, [{
11773
+ key: "normalize",
11774
+ value: function normalize() {
11775
+ this.dataset = this.datasets[0]; // only one dataset per series and for now we assume it is normalized
11776
+ }
11777
+ }]);
11778
+ return OPImageNormalizer;
11779
+ }(Normalizer);
11769
11780
 
11770
11781
  var Segmentation$4 = /*#__PURE__*/function (_DerivedPixels) {
11771
11782
  _inherits(Segmentation, _DerivedPixels);