extensions/xnat/src/utils/IO/classes/RTStructReader.js
/**
   * _createNewROIContourAndGetUid - Creates a new ROIContour and returns its UID.
   *
   * @param  {number} ROINumber The index of the ROIContour.
   * @returns {string}  The ROICOntourUid.
   */
Creates a new ROIContour and returns its UID.
@param  {number} ROINumber The index of the ROIContour.
@returns {string}  The ROICOntourUid.
Creates a new ROIContour and returns its UID . @param { number } ROINumber The index of the ROIContour . @returns { string } The ROICOntourUid .
_createNewROIContourAndGetUid(ROINumber) {
    const freehand3DStore = this._freehand3DStore;
    let name;
    let uid;
    uid = `${this._sopInstanceUid}.${this._structureSetLabel}.${ROINumber}`;
    const roiName = this._roiNames[ROINumber];
    if (roiName) {
      name = roiName;
    } else {
      if (this._structureSetName) {
        name = `${this._structureSetName} Lesion ${ROINumber}`;
      } else {
        name = ` ${this._structureSetLabel} Lesion ${ROINumber}`;
      }
    }
    this._addStructureSetIfNotPresent();
    const ROIContourUid = freehand3DStore.setters.ROIContour(
      this._seriesInstanceUidToImport,
      this._roiCollectionLabel,
      name,
      {
        uid,
      }
    );
    return ROIContourUid;
  }
_createNewROIContourAndGetUid ( ROINumber ) { const freehand3DStore = this . _freehand3DStore ; let name ; let uid ; uid = ` ${ this . _sopInstanceUid } ${ this . _structureSetLabel } ${ ROINumber } ` ; const roiName = this . _roiNames [ ROINumber ] ; if ( roiName ) { name = roiName ; } else { if ( this . _structureSetName ) { name = ` ${ this . _structureSetName } ${ ROINumber } ` ; } else { name = ` ${ this . _structureSetLabel } ${ ROINumber } ` ; } } this . _addStructureSetIfNotPresent ( ) ; const ROIContourUid = freehand3DStore . setters . ROIContour ( this . _seriesInstanceUidToImport , this . _roiCollectionLabel , name , { uid , } ) ; return ROIContourUid ; }
_createNewROIContourAndGetUid - Creates a new ROIContour and returns its UID.
_createNewROIContourAndGetUid - Creates a new ROIContour and returns its UID .
// StructureSetName is Type 3: Optional // StructureSetLabel is Type: Mandatory and not empty