@@ -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,15 +42,22 @@ 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' ] ) ,
5758 studyDate : getValue ( metaData [ '00080020' ] ) ,
58- studyTime : getValue ( metaData [ '00080030' ] )
59+ studyTime : getValue ( metaData [ '00080030' ] ) ,
60+ accessionNumber : getValue ( metaData [ '00080050' ] )
5961 } ;
6062 }
6163
0 commit comments