extensions/xnat/src/utils/IO/classes/AIMReader.js
/**
   * _getSopInstancesInSeries - Extracts all the sopInstanceUids referenced in
   *                            the file that are associated with the active
   *                            series.
   *
   * @returns {string[]}  An array of the sopInstanceUids.
   */
Extracts all the sopInstanceUids referenced in
the file that are associated with the active
series.

@returns {string[]}  An array of the sopInstanceUids.
Extracts all the sopInstanceUids referenced in the file that are associated with the active series . @returns { string [] } An array of the sopInstanceUids .
_getSopInstancesInSeries() {
    let sopInstancesInSeries = [];
    const imageSeriesList = this._doc.getElementsByTagName('imageSeries');
    if (imageSeriesList.length === 0) {
      throw 'No image series information in AIM file!';
    }
    for (let i = 0; i < imageSeriesList.length; i++) {
      const seriesInstanceUid = this._getSeriesInstanceUid(imageSeriesList[i]);
      if (seriesInstanceUid === this._seriesInstanceUidToImport) {
        this._appendSopInstances(sopInstancesInSeries, imageSeriesList[i]);
      }
    }
    return sopInstancesInSeries;
  }
_getSopInstancesInSeries ( ) { let sopInstancesInSeries = [ ] ; const imageSeriesList = this . _doc . getElementsByTagName ( 'imageSeries' ) ; if ( imageSeriesList . length === 0 ) { throw 'No image series information in AIM file!' ; } for ( let i = 0 ; i < imageSeriesList . length ; i ++ ) { const seriesInstanceUid = this . _getSeriesInstanceUid ( imageSeriesList [ i ] ) ; if ( seriesInstanceUid === this . _seriesInstanceUidToImport ) { this . _appendSopInstances ( sopInstancesInSeries , imageSeriesList [ i ] ) ; } } return sopInstancesInSeries ; }
_getSopInstancesInSeries - Extracts all the sopInstanceUids referenced in
                            the file that are associated with the active
                            series.
_getSopInstancesInSeries - Extracts all the sopInstanceUids referenced in the file that are associated with the active series .