From 6a401c9e5204cb4f7af6aa33190ad5a8d0879de6 Mon Sep 17 00:00:00 2001 From: Christian-e-S <59229557+Christian-e-S@users.noreply.github.com> Date: Thu, 23 Dec 2021 21:35:37 +0100 Subject: [PATCH] fix: SeriesTime and SeriesDate are only set for the first series and undefined for the remaining ones (#2476) * set SeriesDate and SeriesTime for all series, instead of only for the first series * set SeriesDate and SeriesTime only when they are undefined * fix: equality operator Co-authored-by: Christian El Salloum Co-authored-by: Alireza --- .../core/src/studies/services/wado/studyInstanceHelpers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/core/src/studies/services/wado/studyInstanceHelpers.js b/platform/core/src/studies/services/wado/studyInstanceHelpers.js index bc99eaba4..301342a79 100644 --- a/platform/core/src/studies/services/wado/studyInstanceHelpers.js +++ b/platform/core/src/studies/services/wado/studyInstanceHelpers.js @@ -116,6 +116,11 @@ async function makeSOPInstance(server, study, instance) { }; study.seriesMap[SeriesInstanceUID] = series; study.series.push(series); + } else { + if (series.SeriesDate === undefined) + series.SeriesDate = naturalizedInstance.SeriesDate; + if (series.SeriesTime === undefined) + series.SeriesTime = naturalizedInstance.SeriesTime; } const wadouri = buildInstanceWadoUrl(