It can't be legal in the case described first in the article. Although she signed the consent form in the presence of her father she clearly then told the doctor she didn't want him to continue. As an adult she is able to withdraw consent, and he should have stopped. The fact he told her he had to carry on and then did the invasive procedure means he assaulted her. He should be reported to the relevant professional body and to the police.