
    Given a list of daily patient admission counts across multiple emergency room departments, create a function that calculates the sum of individual digits for each admission number to generate a simplified workload indicator for staffing decisions. For example, if a department reports 234 admissions, the workload indicator would be 9 (2+3+4), helping managers quickly assess staffing needs across departments.
    

    
def sum_of_digits(nums):
    """
    Given a list of daily patient admission counts across multiple emergency room departments, create a function that calculates the sum of individual digits for each admission number to generate a simplified workload indicator for staffing decisions. For example, if a department reports 234 admissions, the workload indicator would be 9 (2+3+4), helping managers quickly assess staffing needs across departments.
    

    """
def sum_of_digits(nums):
    """
    Given a list of daily patient admission counts across multiple emergency room departments, create a function that calculates the sum of individual digits for each admission number to generate a simplified workload indicator for staffing decisions. For example, if a department reports 234 admissions, the workload indicator would be 9 (2+3+4), helping managers quickly assess staffing needs across departments.
    

    """
    return sum((int(el) for n in nums for el in str(n) if el.isdigit()))