Illegal Dicom Group
Moderator: Moderator Team
Illegal Dicom Group
I am trying to use dcmodify to change and add a couple of Dicom tags before sending them to our pacs.
1 of these tags specific to the PACS vendor is group 0005 which dcmodify reports is an ilegal group.
I have tried many times to get this to work unsuccessfully.
How can I get dcmodify to insert the needed group 5 tags ?
Thanks for any help
Steven
1 of these tags specific to the PACS vendor is group 0005 which dcmodify reports is an ilegal group.
I have tried many times to get this to work unsuccessfully.
How can I get dcmodify to insert the needed group 5 tags ?
Thanks for any help
Steven
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
These elements in group "0005" are illegal as DICOM PS 3.5 states in section 7.1:
You should contact the vendor and tell him that he is creating non-standard conformant DICOM objects!Private Data Elements have an odd Group Number that is not (0001,eeee), (0003,eeee),
(0005,eeee), (0007,eeee), or (FFFF,eeee).
Illegal or not, unfortunately they are not going to change their entire installed base just because I asked them too. ( btw I did already ask ).
Without being able to insert 1 entery in Group 5 and 1 entry in group 50 then the images will not import to where they are supposed to and will take a lot of manual work to correct.
Is there any way around the ilegal issue to get these 2 keys in ?
Steven
Without being able to insert 1 entery in Group 5 and 1 entry in group 50 then the images will not import to where they are supposed to and will take a lot of manual work to correct.
Is there any way around the ilegal issue to get these 2 keys in ?
Steven
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
As far as I can see, there is currently no way to ignore this standard violation (data elements in group 0x0005) with dcmodify. But I already added this as a "nice-to-have" to our to-do list.
Of course, you can write your own little program based on the DCMTK. Or, you could use dcmdump/dump2dcm or dcm2xml/xml2dcm to perform this task.
Of course, you can write your own little program based on the DCMTK. Or, you could use dcmdump/dump2dcm or dcm2xml/xml2dcm to perform this task.
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
I have removed the 0005 exclusion and compiled a new version.
Now I get " NO private reservation found"
This is my command line
And the private.dic file has.
I also tried
Is there something I am doing wrong ?
Steven
Now I get " NO private reservation found"
This is my command line
Code: Select all
c:\scripts\dicom\dcmodify1.exe -nb -ll trace -i "(0005,0005)=TESTDATA" c:\temp\Import\1.3.DCM
Code: Select all
(0005,0005) CS MYTAG 1 DICOM
Code: Select all
(0005,"MYTAG",05) CS MYTAG 1 DICOM
Steven
-
- DCMTK Developer
- Posts: 120
- Joined: Thu, 2009-11-26, 08:15
-
- DCMTK Developer
- Posts: 120
- Joined: Thu, 2009-11-26, 08:15
The only "corrupted data" message that this could be means, that reading the file failed.
Can dcmdump read the file? Could you paste the output of dcmodify or dcmdump started with the --debug flag (and for dcmodify, whatever other flags you are trying)?
Can you upload the dicom file somewhere or send it via mail to dicom (at) offis (dot) de togehter with the dcmodify command that you are trying to execute?
Uli
Can dcmdump read the file? Could you paste the output of dcmodify or dcmdump started with the --debug flag (and for dcmodify, whatever other flags you are trying)?
Can you upload the dicom file somewhere or send it via mail to dicom (at) offis (dot) de togehter with the dcmodify command that you are trying to execute?
Uli
Who is online
Users browsing this forum: Google [Bot] and 1 guest