
    In a patient monitoring system, develop an algorithm that determines the next higher alert threshold by rearranging the digits of a current vital sign reading. The new threshold should be the smallest possible number greater than the current reading that can be formed using the same digits, which helps healthcare providers establish incremental monitoring boundaries without manually calculating each level.
    

    
def rearrange_bigger(n):
    """
    In a patient monitoring system, develop an algorithm that determines the next higher alert threshold by rearranging the digits of a current vital sign reading. The new threshold should be the smallest possible number greater than the current reading that can be formed using the same digits, which helps healthcare providers establish incremental monitoring boundaries without manually calculating each level.
    

    """
def rearrange_bigger(n):
    """
    In a patient monitoring system, develop an algorithm that determines the next higher alert threshold by rearranging the digits of a current vital sign reading. The new threshold should be the smallest possible number greater than the current reading that can be formed using the same digits, which helps healthcare providers establish incremental monitoring boundaries without manually calculating each level.
    

    """
    nums = list(str(n))
    for i in range(len(nums) - 2, -1, -1):
        if nums[i] < nums[i + 1]:
            z = nums[i:]
            y = min(filter(lambda x: x > z[0], z))
            z.remove(y)
            z.sort()
            nums[i:] = [y] + z
            return int(''.join(nums))
    return False