Add a Dicom tag to the dictionary.

487 views
Skip to first unread message

4it...@gmail.com

unread,
Sep 24, 2013, 9:10:20 PM9/24/13
to fo-d...@googlegroups.com
I would like to add a proprietary tag to the dictionary and seem unable to either find the right object or get it to work.

 

I would greatly appreciate if someone could show me an example.
 
Steven 

 

 

 

 

 

 

 

DeLe

unread,
Oct 1, 2013, 10:28:27 AM10/1/13
to fo-d...@googlegroups.com
Create an xml file with your tags.
 
Like this -->
 
<?xml version="1.0" encoding="UTF-8"?>
<dictionaries>
<dictionary creator="STENTOR">
 <tag group="0073" element="0010" vr="ST" vm="1">Stentor Private Tag</tag>
 <tag group="0073" element="1001" vr="ST" vm="1">Sending Hostname</tag>
 <tag group="0073" element="1002" vr="ST" vm="1">Sending IP Address</tag>
 <tag group="0073" element="1003" vr="ST" vm="1">Sending AE Title</tag>
 <tag group="0073" element="1006" vr="UI" vm="1">Sending Transfer Syntax</tag>
</dictionary>
</dictionaries>
Then in your code, something like this -->
 
DicomDictionary.Default.Load("Path\\privateDictionary.xml", DicomDictionaryFormat.XML);
 
 

 

 

 

Matias

unread,
Mar 15, 2014, 10:45:23 AM3/15/14
to fo-d...@googlegroups.com
Hi Lee,

what's next after you add the DicomDictionary? how you can write the tags into your DCM / DicomDIr?

Thanks!

Jingkun Hu

unread,
May 22, 2023, 11:05:49 AM5/22/23
to Fellow Oak DICOM
I followed Lee's instruction, defining my own dictionary and invoking  DicomDictionary.Default.Load(). However, it seems my private tags not being added to the dictionary.
Any other steps needed?

Thanks,
Jingkun

Reply all
Reply to author
Forward
0 new messages