extensions/xnat/src/components/XNATSegmentationImportMenu/XNATSegmentationImportMenu.js
/**
   * _collectionEligibleForImport - Returns true if the roiCollection references
   * the active series, and hasn't already been imported.
   *
   * @param  {Object} collectionInfoJSON  An object containing information about
   *                                      the collection.
   * @returns {boolean}                    Whether the collection is eligible
   *                                      for import.
   */
Returns true if the roiCollection references
the active series, and hasn't already been imported.

@param  {Object} collectionInfoJSON  An object containing information about
the collection.
@returns {boolean}                    Whether the collection is eligible
for import.
Returns true if the roiCollection references the active series and hasn ' t already been imported . @param { Object } collectionInfoJSON An object containing information about the collection . @returns { boolean } Whether the collection is eligible for import .
_collectionEligibleForImport(collectionInfoJSON) {
    const item = collectionInfoJSON.items[0];
    const collectionType = item.data_fields.collectionType;
    if (!this._validTypes.some(type => type === collectionType)) {
      return false;
    }
    return true;
  }
_collectionEligibleForImport ( collectionInfoJSON ) { const item = collectionInfoJSON . items [ 0 ] ; const collectionType = item . data_fields . collectionType ; if ( ! this . _validTypes . some ( type => type === collectionType ) ) { return false ; } return true ; }
_collectionEligibleForImport - Returns true if the roiCollection references
 the active series, and hasn't already been imported.
_collectionEligibleForImport - Returns true if the roiCollection references the active series and hasn ' t already been imported .