
    Given the current number of required hospital beds based on patient admission data, determine the smallest standardized ward size (which must be a power of 2) that can accommodate all patients while ensuring capacity for potential surges. The solution will help hospital administrators efficiently organize ward spaces and allocate medical resources in standardized blocks.
    

    
def next_power_of_2(n):
    """
    Given the current number of required hospital beds based on patient admission data, determine the smallest standardized ward size (which must be a power of 2) that can accommodate all patients while ensuring capacity for potential surges. The solution will help hospital administrators efficiently organize ward spaces and allocate medical resources in standardized blocks.
    

    """
def next_power_of_2(n):
    """
    Given the current number of required hospital beds based on patient admission data, determine the smallest standardized ward size (which must be a power of 2) that can accommodate all patients while ensuring capacity for potential surges. The solution will help hospital administrators efficiently organize ward spaces and allocate medical resources in standardized blocks.
    

    """
    if n and (not n & n - 1):
        return n
    count = 0
    while n != 0:
        n >>= 1
        count += 1
    return 1 << count