@cornerstonejs/adapters 3.10.29 → 3.10.31

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.
@@ -4,6 +4,7 @@ import { toArray } from '../helpers/toArray.js';
4
4
  import { codeMeaningEquals } from '../helpers/codeMeaningEquals.js';
5
5
  import 'buffer';
6
6
  import { copyStudyTags } from '../helpers/copyStudyTags.js';
7
+ import { copySeriesTags } from '../helpers/copySeriesTags.js';
7
8
  import CodingScheme from './CodingScheme.js';
8
9
 
9
10
  var _MeasurementReport;
@@ -283,9 +284,12 @@ _MeasurementReport.codeValueMatch = (group, code, oldCode) => {
283
284
  return CodingSchemeDesignator == code.CodingSchemeDesignator && CodeValue == code.CodeValue || oldCode && CodingSchemeDesignator == oldCode.CodingSchemeDesignator && CodeValue == oldCode.CodeValue;
284
285
  };
285
286
  _MeasurementReport.generateDerivationSourceDataset = instance => {
286
- _MeasurementReport.generateDatasetMeta();
287
- const derivationSourceDataset = copyStudyTags(instance);
288
- return derivationSourceDataset;
287
+ const studyTags = copyStudyTags(instance);
288
+ const seriesTags = copySeriesTags(instance);
289
+ return {
290
+ ...studyTags,
291
+ ...seriesTags
292
+ };
289
293
  };
290
294
 
291
295
  export { MeasurementReport as default };
@@ -0,0 +1,5 @@
1
+ export declare const seriesTags: string[];
2
+ export declare function copySeriesTags(src: any): {
3
+ _meta: any;
4
+ _vrMap: any;
5
+ };
@@ -0,0 +1,17 @@
1
+ const seriesTags = ["SeriesInstanceUID", "SeriesNumber", "SeriesDescription", "Modality", "SeriesDate", "SeriesTime"];
2
+ function copySeriesTags(src) {
3
+ const study = {
4
+ _meta: src._meta,
5
+ _vrMap: src._vrMap
6
+ };
7
+ for (const tagKey of seriesTags) {
8
+ const value = src[tagKey];
9
+ if (value === undefined) {
10
+ continue;
11
+ }
12
+ study[tagKey] = value;
13
+ }
14
+ return study;
15
+ }
16
+
17
+ export { copySeriesTags, seriesTags };
@@ -3,4 +3,5 @@ import { codeMeaningEquals } from "./codeMeaningEquals";
3
3
  import { graphicTypeEquals } from "./graphicTypeEquals";
4
4
  import { downloadDICOMData } from "./downloadDICOMData";
5
5
  export { copyStudyTags } from "./copyStudyTags";
6
+ export { copySeriesTags } from "./copySeriesTags";
6
7
  export { toArray, codeMeaningEquals, graphicTypeEquals, downloadDICOMData };
@@ -3,3 +3,4 @@ export { codeMeaningEquals } from './codeMeaningEquals.js';
3
3
  export { graphicTypeEquals } from './graphicTypeEquals.js';
4
4
  export { downloadDICOMData } from './downloadDICOMData.js';
5
5
  export { copyStudyTags } from './copyStudyTags.js';
6
+ export { copySeriesTags } from './copySeriesTags.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/adapters",
3
- "version": "3.10.29",
3
+ "version": "3.10.31",
4
4
  "description": "Adapters for Cornerstone3D to/from formats including DICOM SR and others",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -84,8 +84,8 @@
84
84
  "ndarray": "^1.0.19"
85
85
  },
86
86
  "peerDependencies": {
87
- "@cornerstonejs/core": "^3.10.29",
88
- "@cornerstonejs/tools": "^3.10.29"
87
+ "@cornerstonejs/core": "^3.10.31",
88
+ "@cornerstonejs/tools": "^3.10.31"
89
89
  },
90
- "gitHead": "48f5d2a8f7be1363f03c6a5761cf9839bf612e40"
90
+ "gitHead": "f7d656d8b175c3ff00b145cdd5ceedf910afeda1"
91
91
  }