
    In a hospital's patient monitoring system, develop a function that analyzes the progression of a patient's condition by calculating the cumulative severity score across multiple assessment intervals. Starting from an initial severity score, the function should sum the scores at decreasing intervals of 2 points until reaching a non-positive value. For example, if a patient starts with a severity score of 7, the function would calculate 7 + 5 + 3 + 1, tracking the potential deterioration pattern. This assessment helps medical staff identify critical thresholds where intervention may be necessary and provides a quantitative measure of the patient's decline rate. The calculation must stop when the decremented score becomes zero or negative, ensuring only valid severity measurements are included in the analysis.
    

    
def sum_series(n):
    """
    In a hospital's patient monitoring system, develop a function that analyzes the progression of a patient's condition by calculating the cumulative severity score across multiple assessment intervals. Starting from an initial severity score, the function should sum the scores at decreasing intervals of 2 points until reaching a non-positive value. For example, if a patient starts with a severity score of 7, the function would calculate 7 + 5 + 3 + 1, tracking the potential deterioration pattern. This assessment helps medical staff identify critical thresholds where intervention may be necessary and provides a quantitative measure of the patient's decline rate. The calculation must stop when the decremented score becomes zero or negative, ensuring only valid severity measurements are included in the analysis.
    

    """
def sum_series(n):
    """
    In a hospital's patient monitoring system, develop a function that analyzes the progression of a patient's condition by calculating the cumulative severity score across multiple assessment intervals. Starting from an initial severity score, the function should sum the scores at decreasing intervals of 2 points until reaching a non-positive value. For example, if a patient starts with a severity score of 7, the function would calculate 7 + 5 + 3 + 1, tracking the potential deterioration pattern. This assessment helps medical staff identify critical thresholds where intervention may be necessary and provides a quantitative measure of the patient's decline rate. The calculation must stop when the decremented score becomes zero or negative, ensuring only valid severity measurements are included in the analysis.
    

    """
    if n < 1:
        return 0
    else:
        return n + sum_series(n - 2)