Some systems may handle this as a single function. Others may require a multiple process in which:
a) patient A is assigned a temporary location
b) patient B is assigned patient As location
c) patient A is assigned patient Bs prior location
This three-step scenario requires three separate transfer messages instead of a single swap message. If all beds in a hospital are occupied, it may be necessary to use a dummy location.