def parent=(new_parent)
      # First take care of 'dependencies':
      if self.parent
        # Remove ourselves from the previous parent:
        if self.is_a?(Item)
          self.parent.delete(self.index, :no_follow => true)
        else
          self.parent.delete(self.tag, :no_follow => true)
        end
      end
      if new_parent
        # Add ourselves to the new parent:
        if self.is_a?(Item)
          new_parent.add_item(self, :no_follow => true)
        else
          new_parent.add(self, :no_follow => true)
        end
      end
      # Set the new parent (should we bother to test for parent validity here?):
      @parent = new_parent
    end
def parent=(new_parent)
      # First take care of 'dependencies':
      if self.parent
        # Remove ourselves from the previous parent:
        if self.is_a?(Item)
          self.parent.delete(self.index, :no_follow => true)
        else
          self.parent.delete(self.tag, :no_follow => true)
        end
      end
      if new_parent
        # Add ourselves to the new parent:
        if self.is_a?(Item)
          new_parent.add_item(self, :no_follow => true)
        else
          new_parent.add(self, :no_follow => true)
        end
      end
      # Set the new parent (should we bother to test for parent validity here?):
      @parent = new_parent
    end
Sets a specified parent instance as this elemental's parent, while taking
 care to delete this elemental from any previous parent, as well as adding
 itself to the new parent (unless new parent is nil).

 @param [DObject, Item, Sequence, NilClass] new_parent the new parent object for this elemental
 @example Create a new Sequence and connect it to a DObject instance
   structure_set_roi = Sequence.new("3006,0020")
   structure_set_roi.parent = dcm