Swap Beds

class wardboard.wardboard_swap_beds(pool, cr)[source]

Allows a patient to swap beds with another patient on the same ward.

do_swap(*args, **kwargs)[source]

Swaps the bed locations of two patients.

Parameters:ids (list) – list of ids for records
Returns:True
Return type:bool
onchange_location2(*args, **kwargs)[source]

Returns dictionary containing the patient id of patient in the location of the location2_id parameter.

Parameters:location2_id (int) – location id
Returns:dictionary containing patient id
Return type:dict