Weasis - can i customize annotations layer ?

560 views
Skip to first unread message

Cledio Moreira Paiva

unread,
Sep 30, 2015, 7:48:41 PM9/30/15
to dcm...@googlegroups.com
Hello, i`m trying to customize the annotations layer of weasis. I think that some xml config file can do this, but im not getting lucky to find it.
I want to display an specific DICOM field (0010,4000) "patient comments".
Has anyone faced this situation before ?

Thanks !

*PS maybe you haven't understood me, so I attach some images showing how i do it in Osirix. 
Screen-Shot-2014-10-15-at-10.32.49-AM-959x1024.png
Screen-Shot-2014-10-15-at-10.26.30-AM-1024x597.png

Nicolas Roduit

unread,
Oct 3, 2015, 7:18:22 AM10/3/15
to dcm...@googlegroups.com
You need to configure the file attributes-view.xml. In the portable distribution, this file is located in weasis/resources. For the web distribution, you need to modify the file in /resources.zip and either repackage weasis.war or make ressources.zip available from an URL, see details in http://www.dcm4che.org/confluence/display/WEA/Weasis+Preferences

Let me know if the explanations are not clear to modify attributes-view.xml. Basically, there is a default configuration for all the modality types (commented because already contained in Weasis). Then, you can override the default configuration for each modality. Currently SliceThickness is replaced by Image Comments for Secondary Capture. Not all the DICOM tags are available but Patient Comments is.

Cledio Moreira Paiva

unread,
Oct 3, 2015, 10:40:09 PM10/3/15
to dcm4che
It Worked perfectly ! Its very easy to customize. Thank you so much for your quick response.

Em sábado, 3 de outubro de 2015 08:18:22 UTC-3, Nicolas Roduit escreveu:
You need to configure the file attributes-view.xml. In the portable distribution, this file is located in weasis/resources. For the web distribution, you need to modify the file in /resources.zip and either repackage weasis.war or make ressources.zip available from an URL, see details in http://www.dcm4che.org/confluence/display/WEA/Weasis+Preferences

Let me know if the explanations are not cleared to modify attributes-view.xml. Basically, there is a default configuration for all the modality types (commented because already contained in Weasis). Then, you can override the default configuration for each modality. Currently SliceThickness is replaced by Image Comments for Secondary Capture. Not all the DICOM tags are available but Patient Comments is.

Marko

unread,
Jun 14, 2016, 9:56:58 AM6/14/16
to dcm4che
Hello,

is there a way to add the following tags in attributes-view.xml

Performing Physician’s Name (0008,1050)
Scheduled Procedure Step Description (0040,0007)
Code Meaning (0008,0104) (Series level)

Thank you
Marko

Nicolas Roduit

unread,
Jun 14, 2016, 4:04:43 PM6/14/16
to dcm4che
Currently, it works only if the tag exists in the class TagW and it has been loaded from DICOM header.

In the next release (weasis 2.5) all the DICOM tags will work and the value will be retrieve automatically.

macau ap

unread,
Apr 6, 2017, 3:27:37 PM4/6/17
to dcm4che
Hi! Tryed this method with current git branch, but no successs. I need dose tag on image annotation, i have values in tag CommentsOnRadiationDose in my dicom image, added this tag in xml attr config, but nothing (. Please, help me.

вторник, 14 июня 2016 г., 23:04:43 UTC+3 пользователь Nicolas Roduit написал:

Nicolas Roduit

unread,
Apr 9, 2017, 2:53:49 PM4/9/17
to dcm4che
You need to modify this file and and replace it in resources, see the end of this page (Customize resources).

macau ap

unread,
Apr 11, 2017, 3:21:55 PM4/11/17
to dcm4che
Did it already, but no luck. Added custom tag CommentsOnRadiationDose and KVP in to attributes-view.xml
Data for tag KVP shows ok, but data for tag CommentsOnRadiationDose is null (no string and data)
How can i make console output ore debuggadle to see where i missed?


воскресенье, 9 апреля 2017 г., 21:53:49 UTC+3 пользователь Nicolas Roduit написал:

Nicolas Roduit

unread,
Apr 14, 2017, 10:04:56 AM4/14/17
to dcm4che
CommentsOnRadiationDose seems to be in a DICOM sequence. Currently, it is not possible to extract an item from a sequence with the xml configuration. 

macau ap

unread,
Apr 14, 2017, 4:09:50 PM4/14/17
to dcm4che
Thank u. But it is possible to extract it via java cobe?
Dose information very important for diagnostic doctor, and best way to find it - put this info on the image.

пятница, 14 апреля 2017 г., 17:04:56 UTC+3 пользователь Nicolas Roduit написал:

Nicolas Roduit

unread,
Apr 22, 2017, 5:07:40 AM4/22/17
to dcm4che
Yes it is always possible to do it programmatically.

However, I will evaluate if it would possible to add a configuration through a dicom sequence.

macau ap

unread,
Apr 23, 2017, 8:23:26 AM4/23/17
to dcm4che
Thank u.

суббота, 22 апреля 2017 г., 12:07:40 UTC+3 пользователь Nicolas Roduit написал:
Reply all
Reply to author
Forward
0 new messages