Search code examples
pythonpython-2.7python-3.xdicompydicom

Is there any way to get private tags in pydicom?


I'm trying to get a private tag from a dicom file. It is an specific tag that only a model of CT has, which is the case, and the tag is:

(7005,xx40) 

I've tried to get it via

[0x7005xx40], ['7005','xx40']

but I can't get it anyway.
I could use some help.


Solution

  • There should be a private creator tag before this one (7005,00xx) where 'xx' is some number. This will tell you what the actual 'xx' value is for your tag.

    e.g.

    7005,0010 = CT_VENDOR_PRIVATE

    7005,1040 = the value you want