Bed assembly to lift up a lying patient at an adjustable height and position