Hospital electric bed with 3 functions