extensions/xnat/src/utils/IO/classes/RoiImporter.js
/**
   * _polygonNotAlreadyPresent - Returns true if the polygon is not already on
   *                             the image.
   *
   * @param  {object} freehandToolData The freehandToolData for an image.
   * @param  {string} newPolygonUuid   The uuid of the polygon being checked.
   * @returns {boolean} True if the polygon is not already on the image.
   */
Returns true if the polygon is not already on
the image.

@param  {object} freehandToolData The freehandToolData for an image.
@param  {string} newPolygonUuid   The uuid of the polygon being checked.
@returns {boolean} True if the polygon is not already on the image.
Returns true if the polygon is not already on the image . @param { object } freehandToolData The freehandToolData for an image . @param { string } newPolygonUuid The uuid of the polygon being checked . @returns { boolean } True if the polygon is not already on the image .
_polygonNotAlreadyPresent(freehandToolData, newPolygonUuid) {
    for (let i = 0; i < freehandToolData.length; i++) {
      if (freehandToolData[i].uuid === newPolygonUuid) {
        return false;
      }
    }
    return true;
  }
_polygonNotAlreadyPresent ( freehandToolData , newPolygonUuid ) { for ( let i = 0 ; i < freehandToolData . length ; i ++ ) { if ( freehandToolData [ i ] . uuid === newPolygonUuid ) { return false ; } } return true ; }
_polygonNotAlreadyPresent - Returns true if the polygon is not already on
                             the image.
_polygonNotAlreadyPresent - Returns true if the polygon is not already on the image .