The prime minister 's office said that while Mr. Sharon was under anesthetic , his duties were transferred to his deputy , Ehud Olmert .