
    In a busy emergency room, patients are assigned an initial severity score based on their vital signs and symptoms, with higher scores indicating more critical conditions. The triage system needs to calculate a weighted urgency metric by summing the decreasing threshold levels of medical urgency, starting from the initial severity score and decreasing by 2 points at each step until reaching zero or a negative value. For example, if a patient has an initial severity score of 7, the system would calculate 7 + 5 + 3 + 1 to determine their final triage priority score. Design a function that computes this cumulative urgency metric to help medical staff efficiently prioritize patient care.
    

    
def sum_series(n):
    """
    In a busy emergency room, patients are assigned an initial severity score based on their vital signs and symptoms, with higher scores indicating more critical conditions. The triage system needs to calculate a weighted urgency metric by summing the decreasing threshold levels of medical urgency, starting from the initial severity score and decreasing by 2 points at each step until reaching zero or a negative value. For example, if a patient has an initial severity score of 7, the system would calculate 7 + 5 + 3 + 1 to determine their final triage priority score. Design a function that computes this cumulative urgency metric to help medical staff efficiently prioritize patient care.
    

    """
def sum_series(n):
    """
    In a busy emergency room, patients are assigned an initial severity score based on their vital signs and symptoms, with higher scores indicating more critical conditions. The triage system needs to calculate a weighted urgency metric by summing the decreasing threshold levels of medical urgency, starting from the initial severity score and decreasing by 2 points at each step until reaching zero or a negative value. For example, if a patient has an initial severity score of 7, the system would calculate 7 + 5 + 3 + 1 to determine their final triage priority score. Design a function that computes this cumulative urgency metric to help medical staff efficiently prioritize patient care.
    

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