Class CopyOnlyHeadOfMultipleStructuredReportsAndReferences


  • public class CopyOnlyHeadOfMultipleStructuredReportsAndReferences
    extends java.lang.Object

    A class to process multiple SR files and their referenced instances (like Presentation States and Segmentations) and copy only the head (most recent) of the Predecessor Documents sequence chain and its references, ignoring earlier (obsolete) SR files and earlier references.

    • Field Detail

      • ourAETitle

        protected java.lang.String ourAETitle
    • Constructor Detail

      • CopyOnlyHeadOfMultipleStructuredReportsAndReferences

        public CopyOnlyHeadOfMultipleStructuredReportsAndReferences​(java.lang.String[] srcs,
                                                                    java.lang.String dstFolderName)
                                                             throws java.io.FileNotFoundException,
                                                                    java.io.IOException,
                                                                    DicomException

        Copy only the most recent SR files and their references.

        Parameters:
        srcs -
        dstFolderName -
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
        DicomException
    • Method Detail

      • main

        public static void main​(java.lang.String[] arg)

        Copy only the most recent SR files and their references.

        Parameters:
        arg - array of 2 or more strings - one or more source folder or DICOMDIR and a destination folder