Mercurial > hg > orthanc-stone
changeset 1947:31fd7aba48ca
Support of DICOM images without the Study Date (0008,0020) tag
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Jul 2022 14:35:05 +0200 |
parents | 3c68cdfbdcab |
children | d459477804bf |
files | Applications/StoneWebViewer/NEWS Applications/StoneWebViewer/WebApplication/app.js |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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 = [];