@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.
- package/dist/esm/adapters/Cornerstone3D/MeasurementReport.js +7 -3
- package/dist/esm/adapters/helpers/copySeriesTags.d.ts +5 -0
- package/dist/esm/adapters/helpers/copySeriesTags.js +17 -0
- package/dist/esm/adapters/helpers/index.d.ts +1 -0
- package/dist/esm/adapters/helpers/index.js +1 -0
- package/package.json +4 -4
|
@@ -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
|
-
|
|
287
|
-
const
|
|
288
|
-
return
|
|
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,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.
|
|
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.
|
|
88
|
-
"@cornerstonejs/tools": "^3.10.
|
|
87
|
+
"@cornerstonejs/core": "^3.10.31",
|
|
88
|
+
"@cornerstonejs/tools": "^3.10.31"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "f7d656d8b175c3ff00b145cdd5ceedf910afeda1"
|
|
91
91
|
}
|