Delivering treatments to someone under the age of 18 is to be outlawed under the legislation.