Hi,I am trying to read Dicom SR files.The best solution i found was to convert SR files to XML with (Dcm2xml.exe), and after that read XML file.Do i have any better choice??..However, when i try to convert this XML file into a DataSet, is not possible because XML structure is not readable..Attached are one Dicom SR example and the converted XML file.Can anyone help me please..Thanks,RegardsHugo Antunes

2. With "not readable", i mean that if i try to conver this xml file to DataSet schema, in order to read the information, is not possible, beacause the XML structure is not compliant with XML file definition structureI am using Visual Studio .NET 2013. If i try to read this XML file to a DataSet, immediately i get the answer saying that is not possible to read this XML file. 3. How can i attach the files?..It is not possible in the platform...Can i send it to any email address?

So, your SR file seems to violate the definitions of the DICOM standard by omitting the mandatory (Type 1) Concept Code Sequence for a CODE content item at position 1.8.1.Depending on which version of the dsr2xml tool (DCMTK 3.6.0 release or latest snapshot) you use, you could try to ignore this error with an appropriate command line option:

With "not readable", i mean that if i try to conver this xml file to DataSet schema, in order to read the information, is not possible, beacause the XML structure is not compliant with XML file definition structure

I thought that dsr2xml fails for your sample file. So "sr.xml" should be empty (or non-existent).

Quote:

How can i attach the files?..It is not possible in the platform...Can i send it to any email address?

You can send your sample SR file by email to "bugs/at/dcmtk/dot/org" for further analysis.

Hi,I have already sent the sample file via email.The Dicom Sr FIle is one sample SR that is coming from one Toshiba CT Modality. If you say that "it violates the definitions of the DICOM standard by omitting the mandatory (Type 1) Concept Code Sequence for a CODE content item at position 1.8.1." is because they are generating the SR files wrongly..

Iam using Dcmtk 3.6.0I tryied to use the options that you refered, but they are nor allowed..Should i update my Dcmtk version to allow this options?..Thanks,

Note sure why you've sent the output of dcm2xml (i.e. an XML document) instead of the binary DICOM file but...

Quote:

The Dicom Sr FIle is one sample SR that is coming from one Toshiba CT Modality. If you say that "it violates the definitions of the DICOM standard by omitting the mandatory (Type 1) Concept Code Sequence for a CODE content item at position 1.8.1." is because they are generating the SR files wrongly..

Yes, the CODE content items with the Concept Name "Target Region" are missing their value (which are stored in the Concept Code Sequence).If this is really the XML version of the SR document that was created by the Toshiba modality, you should inform them about this issue.

Quote:

I am using Dcmtk 3.6.0I tryied to use the options that you refered, but they are nor allowed..

These options were introduced after the release of DCMTK 3.6.0.

Quote:

Should i update my Dcmtk version to allow this options?..

If you want to use option --ignore-item-errors (-Ee) you should switch to the latest development snapshot (requires compilation of the source code).

Rismeier,Thanks for your support.I have already sent you the original DICOM SR.Regarding the latest development version, i have never tried to compile the source code.I have already downloaded the source code, and i have already take a look on the files.. But, how should i do it? is there any manual or something like that to follow the compilation process?I am used to develop with Visual Studio..is it possible to do it with this platform, or do i need to do it with a C++ compiler like Visual C++?Thanks,Regards,Hugo Antunes

Thank you for the files. From the ZIP archive, only one file seems to be correct (the one from GE). All others are incorrect (same error as above).

Quote:

Regarding the latest development version, i have never tried to compile the source code.I have already downloaded the source code, and i have already take a look on the files.. But, how should i do it? is there any manual or something like that to follow the compilation process?

Hi,Just to conlude, DICOM SR files that are coming from Toshiba Modality, are incorrect. They do not respect the Dicom Standard SR, and i should inform the Manufacturer about that, right?

However, if i try to convert this SR Files to XML with dsr2xml using error handling options, i should get a valid XML file.With "valid" i mean, a correct XML structure compliant with XML valid structure.

Just to conlude, DICOM SR files that are coming from Toshiba Modality, are incorrect. They do not respect the Dicom Standard SR, and i should inform the Manufacturer about that, right?

Correct.

Quote:

However, if i try to convert this SR Files to XML with dsr2xml using error handling options, i should get a valid XML file.With "valid" i mean, a correct XML structure compliant with XML valid structure.

Hi Riesmeier,I have already scheduled a meeting with local Toshiba staff to explain them that SR files are not well structured.What is the best way to show them that the SR files are incorrect?Does it exist any kind of "DICOM SR compliant tool" which i can use to show them that the files are bad structured?Of course that they will want to test the SR files with an "independent tool"...What is your suggestion?