extensions/xnat/src/utils/IO/classes/RTStructReader.js
/**
   * _getRTReferenceSeries -  gets the RTReferencedSeries that corresponds to
   *                          the active series.
   *
   * @returns {object||null}  The referenced series node of the DICOM dataset.
   */
gets the RTReferencedSeries that corresponds to
the active series.

@returns {object||null}  The referenced series node of the DICOM dataset.
gets the RTReferencedSeries that corresponds to the active series . @returns { object||null } The referenced series node of the DICOM dataset .
_getRTReferenceSeries() {
    const ReferencedFrameofReferenceSequenceItems = this._dataSet.elements[
      RTStructTag['ReferencedFrameofReferenceSequence']
    ].items;
    for (let i = 0; i < ReferencedFrameofReferenceSequenceItems.length; i++) {
      const ReferencedFrameofReference =
        ReferencedFrameofReferenceSequenceItems[i];
      const RTReferencedStudySequenceItems =
        ReferencedFrameofReference.dataSet.elements[
          RTStructTag['RTReferencedStudySequence']
        ].items;
      for (let j = 0; j < RTReferencedStudySequenceItems.length; j++) {
        const RTReferencedStudy = RTReferencedStudySequenceItems[j];
        const RTReferencedSeriesSequenceItems =
          RTReferencedStudy.dataSet.elements[
            RTStructTag['RTReferencedSeriesSequence']
          ].items;
        for (let k = 0; k < RTReferencedSeriesSequenceItems.length; k++) {
          const RTReferencedSeries = RTReferencedSeriesSequenceItems[k];
          const seriesInstanceUid = RTReferencedSeries.dataSet.string(
            RTStructTag['SeriesInstanceUID']
          );
          if (seriesInstanceUid === this._seriesInstanceUidToImport) {
            return RTReferencedSeries;
          }
        }
      }
    }
    return null;
  }
_getRTReferenceSeries ( ) { const ReferencedFrameofReferenceSequenceItems = this . _dataSet . elements [ RTStructTag [ 'ReferencedFrameofReferenceSequence' ] ] . items ; for ( let i = 0 ; i < ReferencedFrameofReferenceSequenceItems . length ; i ++ ) { const ReferencedFrameofReference = ReferencedFrameofReferenceSequenceItems [ i ] ; const RTReferencedStudySequenceItems = ReferencedFrameofReference . dataSet . elements [ RTStructTag [ 'RTReferencedStudySequence' ] ] . items ; for ( let j = 0 ; j < RTReferencedStudySequenceItems . length ; j ++ ) { const RTReferencedStudy = RTReferencedStudySequenceItems [ j ] ; const RTReferencedSeriesSequenceItems = RTReferencedStudy . dataSet . elements [ RTStructTag [ 'RTReferencedSeriesSequence' ] ] . items ; for ( let k = 0 ; k < RTReferencedSeriesSequenceItems . length ; k ++ ) { const RTReferencedSeries = RTReferencedSeriesSequenceItems [ k ] ; const seriesInstanceUid = RTReferencedSeries . dataSet . string ( RTStructTag [ 'SeriesInstanceUID' ] ) ; if ( seriesInstanceUid === this . _seriesInstanceUidToImport ) { return RTReferencedSeries ; } } } } return null ; }
_getRTReferenceSeries -  gets the RTReferencedSeries that corresponds to
                          the active series.
_getRTReferenceSeries - gets the RTReferencedSeries that corresponds to the active series .