remove_ltcf_residents_from_potential_workers#
- remove_ltcf_residents_from_potential_workers(facilities_by_uids, potential_worker_uids, potential_worker_uids_by_age, workers_by_age_to_assign_count, age_by_uid)[source]#
Remove facilities residents from potential workers
- Parameters:
facilities_by_uids (list) – A list of lists, where each sublist represents a skilled nursing or long term care facility and the ids of the residents living within it
potential_worker_uids (dict) – dictionary of potential workers mapping their id to their age
potential_worker_uids_by_age (dict) – dictionary mapping age to the list of worker ids with that age
workers_by_age_to_assign_count (dict) – dictionary of the count of workers left to assign by age
age_by_uid_dic (dict) – dictionary mapping id to age for all individuals in the population
- Returns:
Updated dictionaries for potential worker ids, lists of potential worker ids mapped to age, and the number of workers left to assign by age.