File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,7 @@ import cornerstone from 'cornerstone-core';
22import cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader' ;
33import dicomParser from 'dicom-parser' ;
44
5- const {
6- getNumberString,
7- getNumberValue,
8- getNumberValues,
9- getValue
10- } = cornerstoneWADOImageLoader . wadors . metaData ;
5+ const { getNumberValue, getValue } = cornerstoneWADOImageLoader . wadors . metaData ;
116
127function wadoRsMetaDataProvider ( type , imageId ) {
138 const metaData = cornerstoneWADOImageLoader . wadors . metaDataManager . get (
@@ -47,10 +42,16 @@ function wadoRsMetaDataProvider(type, imageId) {
4742 if ( type === 'patientModule' ) {
4843 return {
4944 patientName : getValue ( metaData [ '00100010' ] ) ,
50- patientId : getValue ( metaData [ '00100020' ] )
45+ patientId : getValue ( metaData [ '00100020' ] ) ,
46+ patientSex : getValue ( metaData [ '00100040' ] ) ,
47+ patientBirthDate : getValue ( metaData [ '00100030' ] )
5148 } ;
5249 }
5350
51+ if ( type === 'spacingBetweenSlices' ) {
52+ return getValue ( metaData [ '00180088' ] ) ;
53+ }
54+
5455 if ( type === 'generalStudyModule' ) {
5556 return {
5657 studyDescription : getValue ( metaData [ '00081030' ] ) ,
You can’t perform that action at this time.
0 commit comments