The "condRes" refers to "ECC_invalid value", any suggestion? Thanks!
PS: when I change the "doc->createNewDocument(DSRTypes::DT_XRayRadiationDoseSR)" to doc->createNewDocument(DSRTypes::DT_MammographyCadSR), it still works well, why?
The "condRes" refers to "ECC_invalid value", any suggestion?
What does the debug logger say?
when I change the "doc->createNewDocument(DSRTypes::DT_XRayRadiationDoseSR)" to doc->createNewDocument(DSRTypes::DT_MammographyCadSR), it still works well, why?
I thought it does not work at all? Please note that the dcmsr module (currently) only checks IOD-specific restrictions but no templates.
The X-Ray Radiation Dose SR IOD defines the Enhanced General Equipment Module as being "mandatory", and in this module the "ManufacturerModelName" is required. The solution is easy: Just provide all required (type 1) attributes with a non-empty, valid value, and you should be able to write the SR document to a DICOM dataset and then to a DICOM file.
The X-Ray Radiation Dose SR IOD defines the Enhanced General Equipment Module as being "mandatory", and in this module the "ManufacturerModelName" is required. The solution is easy: Just provide all required (type 1) attributes with a non-empty, valid value, and you should be able to write the SR document to a DICOM dataset and then to a DICOM file.
you mean not only Enhanced General Equipment Module? All the TYPE1 tag of "M" Usage in DICOM PS 3.3 A.35.8.3 X-Ray RADIATION DOSE SR IOD MODULES?
No, you have to use DSRDocument::setManufacturerModelName() in order to set the value before you write the SR document to a DICOM dataset. And, of course, this also applies to the other three attributes of the Enhanced General Equipment Module. Here's a list from the DSRDocument header file:
J. Riesmeier wrote:No, you have to use DSRDocument::setManufacturerModelName() in order to set the value before you write the SR document to a DICOM dataset. And, of course, this also applies to the other three attributes of the Enhanced General Equipment Module. Here's a list from the DSRDocument header file:
btw: this constraint is strange, because it do not include other "Mandatory" Modules "type 1" tag, only the "Enhanced General Equipment Module".
But thank you for your patient rely anyway!
btw: this constraint is strange, because it do not include other "Mandatory" Modules "type 1" tag, only the "Enhanced General Equipment Module".
Of course, all other type 1 requirements are also checked, but most of these attribute are either set automatically (by default) or by some other method you've called.