The doctor allowed the patient to have sex, thinking of something personal