By the letter of the rule it was shady but at the same time the doctor wouldn't have stopped it if not for Rahman doing all he could to get him to stop it (outside of actually saying stop it)