The doctor wrote a sex prescription for three times a day