Doctor convicted of raping patient in hospital room