Rehabilitation and care bed