@cornerstonejs/dicom-image-loader 4.11.2 → 4.11.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { metaData } from '@cornerstonejs/core';
|
|
1
2
|
function getInstanceModule(imageId, metaDataProvider, types) {
|
|
2
3
|
const result = {};
|
|
3
4
|
for (const t of types) {
|
|
@@ -7,7 +8,7 @@ function getInstanceModule(imageId, metaDataProvider, types) {
|
|
|
7
8
|
const capitalizedData = {};
|
|
8
9
|
for (const key in data) {
|
|
9
10
|
if (key in data) {
|
|
10
|
-
const capitalizedKey =
|
|
11
|
+
const capitalizedKey = metaData.toUpperCamelTag(key);
|
|
11
12
|
capitalizedData[capitalizedKey] = data[key];
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -20,7 +21,6 @@ function getInstanceModule(imageId, metaDataProvider, types) {
|
|
|
20
21
|
}
|
|
21
22
|
return result;
|
|
22
23
|
}
|
|
23
|
-
const capitalizeTag = (tag) => tag.charAt(0).toUpperCase() + tag.slice(1);
|
|
24
24
|
const instanceModuleNames = [
|
|
25
25
|
'multiframeModule',
|
|
26
26
|
'generalSeriesModule',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dicomParser from 'dicom-parser';
|
|
2
|
-
import { Enums, utilities } from '@cornerstonejs/core';
|
|
2
|
+
import { Enums, utilities, metaData as coreMetaData, } from '@cornerstonejs/core';
|
|
3
3
|
import getNumberValues from './getNumberValues';
|
|
4
4
|
import getNumberValue from './getNumberValue';
|
|
5
5
|
import getOverlayPlaneModule from './getOverlayPlaneModule';
|
|
@@ -252,7 +252,7 @@ function metaDataProvider(type, imageId) {
|
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
if (type === 'instance') {
|
|
255
|
-
return
|
|
255
|
+
return coreMetaData.getNormalized(imageId, instanceModuleNames);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
export function getImageUrlModule(imageId, metaData) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Enums } from '@cornerstonejs/core';
|
|
1
|
+
import { Enums, metaData } from '@cornerstonejs/core';
|
|
2
2
|
import * as dicomParser from 'dicom-parser';
|
|
3
3
|
import getNumberValues from './getNumberValues';
|
|
4
4
|
import parseImageId from '../parseImageId';
|
|
@@ -11,7 +11,7 @@ import { getDirectFrameInformation } from '../combineFrameInstanceDataset';
|
|
|
11
11
|
import multiframeDataset from '../retrieveMultiframeDataset';
|
|
12
12
|
import { getImageTypeSubItemFromDataset, extractOrientationFromDataset, extractPositionFromDataset, extractSpacingFromDataset, extractSliceThicknessFromDataset, } from './extractPositioningFromDataset';
|
|
13
13
|
import isNMReconstructable from '../../isNMReconstructable';
|
|
14
|
-
import {
|
|
14
|
+
import { instanceModuleNames } from '../../getInstanceModule';
|
|
15
15
|
import { getUSEnhancedRegions } from './USHelpers';
|
|
16
16
|
function metaDataProvider(type, imageId) {
|
|
17
17
|
const { MetadataModules } = Enums;
|
|
@@ -230,7 +230,7 @@ export function metadataForDataset(type, imageId, dataSet) {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
if (type === 'instance') {
|
|
233
|
-
return
|
|
233
|
+
return metaData.getNormalized(imageId, instanceModuleNames);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
export default metaDataProvider;
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.11.
|
|
1
|
+
export declare const version = "4.11.3";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.11.
|
|
1
|
+
export const version = '4.11.3';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/dicom-image-loader",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.3",
|
|
4
4
|
"description": "Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"DICOM",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"uuid": "9.0.1"
|
|
113
113
|
},
|
|
114
114
|
"peerDependencies": {
|
|
115
|
-
"@cornerstonejs/core": "4.11.
|
|
115
|
+
"@cornerstonejs/core": "4.11.3",
|
|
116
116
|
"dicom-parser": "1.8.21"
|
|
117
117
|
},
|
|
118
118
|
"config": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"path": "./node_modules/cz-conventional-changelog"
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "e7b0cea10f4ceb71710d3f01eaead75152180b7a"
|
|
124
124
|
}
|