changeset 2015:d0e68dd335dd

patient sex is displayed in the top-left information panel
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 03 Dec 2022 07:59:13 +0100
parents a7b5cb068fb8
children f30d7055ed6a
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	Sat Dec 03 07:44:09 2022 +0100
+++ b/Applications/StoneWebViewer/NEWS	Sat Dec 03 07:59:13 2022 +0100
@@ -5,6 +5,7 @@
 * Annotations are grouped into one submenu for narrow screens
 * Fix measurement of arcs
 * Width of the vertical slider has doubled to ease user interactions
+* Patient sex is displayed in the top-left information panel
 
 
 Version 2.4 (2022-11-02)
--- a/Applications/StoneWebViewer/WebApplication/app.js	Sat Dec 03 07:44:09 2022 +0100
+++ b/Applications/StoneWebViewer/WebApplication/app.js	Sat Dec 03 07:59:13 2022 +0100
@@ -34,6 +34,7 @@
 var SERIES_DESCRIPTION = '0008,103e';
 var MODALITY = '0008,0060';
 var PATIENT_BIRTH_DATE = '0010,0030';
+var PATIENT_SEX = '0010,0040';
 
 // Registry of the PDF series for which the instance metadata is still waiting
 var pendingSeriesPdf_ = {};
--- a/Applications/StoneWebViewer/WebApplication/index.html	Sat Dec 03 07:44:09 2022 +0100
+++ b/Applications/StoneWebViewer/WebApplication/index.html	Sat Dec 03 07:59:13 2022 +0100
@@ -769,7 +769,8 @@
                   <div v-if="'tags' in content.series" class="wv-overlay-topleft">
                     {{ content.series.tags[PATIENT_NAME] }}<br/>
                     {{ content.series.tags[PATIENT_ID] }}<br/>
-                    {{ app.FormatDate(content.series.tags[PATIENT_BIRTH_DATE]) }}
+                    {{ app.FormatDate(content.series.tags[PATIENT_BIRTH_DATE]) }} -
+                    {{ content.series.tags[PATIENT_SEX] }}
                   </div>
                   <div v-if="'tags' in content.series" class="wv-overlay-topright"
                        v-bind:class="{ 'wvInfoRightMargin' : numberOfFrames > 1 }">