From c5e94136be5dd0a4134ba7936ecdb558ac693c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=ADzio=20Salgado?= Date: Fri, 31 Mar 2017 19:47:19 -0300 Subject: [PATCH] WADOImageLoader fixes for dicomParser.parseTM (PR #189) Pull request https://github.com/chafey/cornerstoneTools/pull/189 --- .../ohif-cornerstone/client/cornerstoneWADOImageLoader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/ohif-cornerstone/client/cornerstoneWADOImageLoader.js b/Packages/ohif-cornerstone/client/cornerstoneWADOImageLoader.js index f3138c7bd..6cffc0c1a 100644 --- a/Packages/ohif-cornerstone/client/cornerstoneWADOImageLoader.js +++ b/Packages/ohif-cornerstone/client/cornerstoneWADOImageLoader.js @@ -1161,7 +1161,7 @@ if(typeof cornerstoneWADOImageLoader === 'undefined'){ return { radiopharmaceuticalInfo: { - radiopharmaceuticalStartTime: dicomParser.parseTM(getValue(radiopharmaceuticalInfo['00181072'])), + radiopharmaceuticalStartTime: dicomParser.parseTM(getValue(radiopharmaceuticalInfo['00181072'], 0, '')), radionuclideTotalDose: getNumberValue(radiopharmaceuticalInfo['00181074']), radionuclideHalfLife: getNumberValue(radiopharmaceuticalInfo['00181075']) } @@ -1685,7 +1685,7 @@ if(typeof cornerstoneWADOImageLoader === 'undefined'){ studyInstanceUID: dataSet.string('x0020000d'), seriesInstanceUID: dataSet.string('x0020000e'), seriesDate: dicomParser.parseDA(dataSet.string('x00080021')), - seriesTime: dicomParser.parseTM(dataSet.string('x00080031')) + seriesTime: dicomParser.parseTM(dataSet.string('x00080031') || '') }; } @@ -1746,7 +1746,7 @@ if(typeof cornerstoneWADOImageLoader === 'undefined'){ var firstRadiopharmaceuticalInfoDataSet = radiopharmaceuticalInfo.items[0].dataSet; return { radiopharmaceuticalInfo: { - radiopharmaceuticalStartTime: dicomParser.parseTM(firstRadiopharmaceuticalInfoDataSet.string('x00181072')), + radiopharmaceuticalStartTime: dicomParser.parseTM(firstRadiopharmaceuticalInfoDataSet.string('x00181072') || ''), radionuclideTotalDose: firstRadiopharmaceuticalInfoDataSet.floatString('x00181074'), radionuclideHalfLife: firstRadiopharmaceuticalInfoDataSet.floatString('x00181075') }