LongTermCareFacility#

class LongTermCareFacility(ltcfid=None, resident_uids=array([], dtype=int64), staff_uids=array([], dtype=int64), **kwargs)[source]#

Bases: LayerGroup

A class for individual long term care facilities and methods to operate on each.

Parameters:

kwargs (dict) – data dictionary of the long term care facility

Attributes

member_uids

residents and staff.

Methods

validate()[source]#

Check that information supplied to make a long term care facility is valid and update to the correct type if necessary.

property member_uids#

residents and staff.

Returns:

ltcf member ids

Return type:

np.ndarray

Type:

Return ids of all ltcf members

member_ages(age_by_uid)[source]#

Return ages of all ltcf members: residents and staff.

Parameters:

age_by_uid (np.ndarray) – mapping of age to uid

Returns:

ltcf member ages

Return type:

np.ndarray

resident_ages(age_by_uid)[source]#

Return ages of ltcf residents.

Parameters:

age_by_uid (np.ndarray) – mapping of age to uid

Returns:

ltcf resident ages

Return type:

np.ndarray

staff_ages(age_by_uid)[source]#

Return ages of ltcf staff.

Parameters:

age_by_uid (np.ndarray) – mapping of age to uid

Returns:

ltcf staff ages

Return type:

np.ndarray