# HG changeset patch # User Sebastien Jodogne # Date 1657888505 -7200 # Node ID 31fd7aba48ca32efd0790352dd95ba4316fe7ac8 # Parent 3c68cdfbdcabdc7a6db532dc471164b3148f5872 Support of DICOM images without the Study Date (0008,0020) tag diff -r 3c68cdfbdcab -r 31fd7aba48ca Applications/StoneWebViewer/NEWS --- a/Applications/StoneWebViewer/NEWS Thu Jun 02 21:22:24 2022 +0200 +++ b/Applications/StoneWebViewer/NEWS Fri Jul 15 14:35:05 2022 +0200 @@ -2,6 +2,7 @@ =============================== * More tolerance wrt. bad values of the Pixel Spacing (0028,0030) tag +* Support of DICOM images without the Study Date (0008,0020) tag Version 2.3 (2022-03-24) diff -r 3c68cdfbdcab -r 31fd7aba48ca Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Thu Jun 02 21:22:24 2022 +0200 +++ b/Applications/StoneWebViewer/WebApplication/app.js Fri Jul 15 14:35:05 2022 +0200 @@ -568,7 +568,15 @@ } }, - SetResources: function(sourceStudies, sourceSeries) { + SetResources: function(sourceStudies, sourceSeries) { + // Here one can fix input studies/series for missing DICOM tags + // that are needed for the Stone Web viewer (e.g. "hand.dcm") + for (var i = 0; i < sourceStudies.length; i++) { + if (!(STUDY_DATE in sourceStudies[i])) { + sourceStudies[i][STUDY_DATE] = ''; + } + } + var indexStudies = {}; var studies = [];