Hospital beds are the solution when change of position or safety is required. The mattress is built to fold at the appropriate places, and rails will keep the occupant in place.