extensions/xnat/src/utils/IO/classes/AIMReader.js
/**
   * _appendSopInstances - Add all the sop instance UIDs in the AIM imageSeries
   *                       to the sopInstancesInSeries array.
   *
   * @param  {string[]} sopInstancesInSeries The array of sop instance UIDs.
   * @param  {HTMLElement} imageSeries          The AIM imageSeries to parse.
   * @modifies sopInstancesInSeries
   * @returns {null}
   */
Add all the sop instance UIDs in the AIM imageSeries
to the sopInstancesInSeries array.

@param  {string[]} sopInstancesInSeries The array of sop instance UIDs.
@param  {HTMLElement} imageSeries          The AIM imageSeries to parse.
@modifies sopInstancesInSeries
@returns {null}
Add all the sop instance UIDs in the AIM imageSeries to the sopInstancesInSeries array . @param { string [] } sopInstancesInSeries The array of sop instance UIDs . @param { HTMLElement } imageSeries The AIM imageSeries to parse . @modifies sopInstancesInSeries @returns { null }
_appendSopInstances(sopInstancesInSeries, imageSeries) {
    const sopInstanceUidElements = imageSeries.getElementsByTagName(
      'sopInstanceUid'
    );
    for (let i = 0; i < sopInstanceUidElements.length; i++) {
      const sopInstanceUid = sopInstanceUidElements[i].getAttribute('root');
      if (!sopInstancesInSeries.includes(sopInstanceUid)) {
        sopInstancesInSeries.push(sopInstanceUid);
      }
    }
  }
_appendSopInstances ( sopInstancesInSeries , imageSeries ) { const sopInstanceUidElements = imageSeries . getElementsByTagName ( 'sopInstanceUid' ) ; for ( let i = 0 ; i < sopInstanceUidElements . length ; i ++ ) { const sopInstanceUid = sopInstanceUidElements [ i ] . getAttribute ( 'root' ) ; if ( ! sopInstancesInSeries . includes ( sopInstanceUid ) ) { sopInstancesInSeries . push ( sopInstanceUid ) ; } } }
_appendSopInstances - Add all the sop instance UIDs in the AIM imageSeries
                       to the sopInstancesInSeries array.
_appendSopInstances - Add all the sop instance UIDs in the AIM imageSeries to the sopInstancesInSeries array .