assign_facility_staff#
- assign_facility_staff(datadir, location, state_location, country_location, ltcf_staff_age_min, ltcf_staff_age_max, facilities, workers_by_age_to_assign_count, potential_worker_uids_by_age, potential_worker_uids, facilities_by_uids, age_by_uid, use_default=False)[source]#
Assign Long Term Care Facility staff to the generated facilities with residents.
- Parameters:
datadir (string) – The file path to the data directory.
location – name of the location
state_location (string) – name of the state the location is in
country_location (string) – name of the country the location is in
ltcf_staff_age_min (int) – Long term care facility staff minimum age.
ltcf_staff_age_max (int) – Long term care facility staff maximum age.
facilities (list) – A list of lists where each sublist is a facility with the resident ages
workers_by_age_to_assign_count (dict) – A dictionary mapping age to the count of employed individuals of that age.
potential_worker_uids (dict) – dictionary of potential workers mapping their id to their age
facilities – A list of lists where each sublist is a facility with the resident IDs
age_by_uid (dict) – dictionary mapping id to age for all individuals in the population
use_default (bool) – If True, try to first use the other parameters to find data specific to the location under study; otherwise, return default data drawing from default_location, default_state, default_country.
- Returns:
A list of lists with the facility staff IDs for each facility.
- Return type:
list