changeset 1807:634ff8993f6a

Stone Web viewer: Patient birth date is now displayed in the overlays
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 May 2021 17:17:56 +0200
parents 0840a25c6d41
children 797633f48a9c
files Applications/StoneWebViewer/NEWS Applications/StoneWebViewer/WebApplication/app.js Applications/StoneWebViewer/WebApplication/index.html
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/NEWS	Thu May 20 17:11:10 2021 +0200
+++ b/Applications/StoneWebViewer/NEWS	Thu May 20 17:17:56 2021 +0200
@@ -1,6 +1,7 @@
 Pending changes in the mainline
 ===============================
 
+* Patient birth date is now displayed in the overlays
 * New argument "token" to set HTTP header "Authorization: Bearer <token>"
   for each request to the DICOMweb server
 * Fix issue #197 (Support for passing credentials with all HTTP requests)
--- a/Applications/StoneWebViewer/WebApplication/app.js	Thu May 20 17:11:10 2021 +0200
+++ b/Applications/StoneWebViewer/WebApplication/app.js	Thu May 20 17:17:56 2021 +0200
@@ -32,6 +32,7 @@
 var SERIES_NUMBER = '0020,0011';
 var SERIES_DESCRIPTION = '0008,103e';
 var MODALITY = '0008,0060';
+var PATIENT_BIRTH_DATE = '0010,0030';
 
 // Registry of the PDF series for which the instance metadata is still waiting
 var pendingSeriesPdf_ = {};
--- a/Applications/StoneWebViewer/WebApplication/index.html	Thu May 20 17:11:10 2021 +0200
+++ b/Applications/StoneWebViewer/WebApplication/index.html	Thu May 20 17:17:56 2021 +0200
@@ -611,7 +611,8 @@
                 <div class="wv-overlay">
                   <div v-if="'tags' in content.series" class="wv-overlay-topleft">
                     {{ content.series.tags[PATIENT_NAME] }}<br/>
-                    {{ content.series.tags[PATIENT_ID] }}
+                    {{ content.series.tags[PATIENT_ID] }}<br/>
+                    {{ app.FormatDate(content.series.tags[PATIENT_BIRTH_DATE]) }}
                   </div>
                   <div v-if="'tags' in content.series" class="wv-overlay-topright">
                     {{ content.series.tags[STUDY_DESCRIPTION] }}<br/>