Swap Beds

class operations.nh_clinical_patient_swap_beds(pool, cr)[source]

Represents the simultaneous movement of two patients that are located in bed usage location instances. The patients will end placed in the location the other patient was in.

It is meant to be used to move patients specially when there are no available beds to use as a buffer, although it can be used any time.

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

Creates and completes a movement for each patient to swap their locations.

Returns:True
Return type:bool
submit(*args, **kwargs)[source]

Checks the submitted data is correct and then calls submit.

Returns:True
Return type:bool