
    Given today's patient census number in the hospital ward, determine the next possible higher occupancy scenario by rearranging the digits of the current census, which will help in proactive capacity planning. For example, if the current census is 234 patients, find the next higher possible arrangement (243) to prepare for potential near-term occupancy increases while maintaining the same digit composition.
    

    
def rearrange_bigger(n):
    """
    Given today's patient census number in the hospital ward, determine the next possible higher occupancy scenario by rearranging the digits of the current census, which will help in proactive capacity planning. For example, if the current census is 234 patients, find the next higher possible arrangement (243) to prepare for potential near-term occupancy increases while maintaining the same digit composition.
    

    """
def rearrange_bigger(n):
    """
    Given today's patient census number in the hospital ward, determine the next possible higher occupancy scenario by rearranging the digits of the current census, which will help in proactive capacity planning. For example, if the current census is 234 patients, find the next higher possible arrangement (243) to prepare for potential near-term occupancy increases while maintaining the same digit composition.
    

    """
    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