Hi,
Is there a convenient way to add to Identical Documents Sequence into a DSRDocument? There is a getIdenticalDocuments () method that creates DSRSOPInstanceReferenceList but how to create and add one?
How to create Identical Documents Sequence (0040,A525)
Moderator: Moderator Team
Ok, I did it.
I just created DSRSOPInstanceReferenceList :
and then, before saving file and after writing sr to it's dataset:
i did something like that:
It works!
I just created DSRSOPInstanceReferenceList :
Code: Select all
DSRSOPInstanceReferenceList identDocSeq( DCM_IdenticalDocumentsSequence );
Code: Select all
DcmFileFormat *newfileformat = new DcmFileFormat();
OFCondition status = doc.write(*newfileformat->getDataset());
Code: Select all
DSRSOPInstanceReferenceList identDocSeq( DCM_IdenticalDocumentsSequence );
identDocSeq.addItem( studyUID,seriesUID,sopClassUID,instanceUID);
identDocSeq.write( *newfileformat->getDataset(), NULL );
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest