@cornerstonejs/adapters 1.37.1 → 1.38.1

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.
@@ -3796,6 +3796,7 @@ var MeasurementReport = /** @class */ (function () {
3796
3796
  var REPORT = "Imaging Measurements";
3797
3797
  var GROUP = "Measurement Group";
3798
3798
  var TRACKING_IDENTIFIER = "Tracking Identifier";
3799
+ var TRACKING_UNIQUE_IDENTIFIER = "Tracking Unique Identifier";
3799
3800
  // Identify the Imaging Measurements
3800
3801
  var imagingMeasurementContent = toArray(dataset.ContentSequence).find(codeMeaningEquals(REPORT));
3801
3802
  // Retrieve the Measurements themselves
@@ -3817,12 +3818,19 @@ var MeasurementReport = /** @class */ (function () {
3817
3818
  TRACKING_IDENTIFIER;
3818
3819
  });
3819
3820
  var TrackingIdentifierValue_1 = TrackingIdentifierGroup.TextValue;
3821
+ var TrackingUniqueIdentifierGroup = measurementGroupContentSequence.find(function (contentItem) {
3822
+ return contentItem.ConceptNameCodeSequence.CodeMeaning ===
3823
+ TRACKING_UNIQUE_IDENTIFIER;
3824
+ });
3825
+ var TrackingUniqueIdentifierValue = TrackingUniqueIdentifierGroup === null || TrackingUniqueIdentifierGroup === void 0 ? void 0 : TrackingUniqueIdentifierGroup.UID;
3820
3826
  var toolClass = ((_a = hooks === null || hooks === void 0 ? void 0 : hooks.getToolClass) === null || _a === void 0 ? void 0 : _a.call(hooks, measurementGroup, dataset, registeredToolClasses)) ||
3821
3827
  registeredToolClasses.find(function (tc) {
3822
3828
  return tc.isValidCornerstoneTrackingIdentifier(TrackingIdentifierValue_1);
3823
3829
  });
3824
3830
  if (toolClass) {
3825
3831
  var measurement = toolClass.getMeasurementData(measurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata);
3832
+ measurement.TrackingUniqueIdentifier =
3833
+ TrackingUniqueIdentifierValue;
3826
3834
  console.log("=== ".concat(toolClass.toolType, " ==="));
3827
3835
  console.log(measurement);
3828
3836
  measurementData[toolClass.toolType].push(measurement);