90 Consent of child to certain procedures.S
Nothing in this Part of this Act shall prejudice any capacity of a child enjoyed by virtue of section 2(4) of the M1Age of Legal Capacity (Scotland) Act 1991 (capacity of child with sufficient understanding to consent to surgical, medical or dental procedure or treatment; and without prejudice to that generality where a condition contained, by virtue of—
(a)section 66(4)(a), section 67(2) or section 69(9)(a) of this Act, in a warrant; or
(b)section 70(5)(a) of this Act, in a supervision requirement,
requires a child to submit to any examination or treatment but the child has the capacity mentioned in the said section 2(4), the examination or treatment shall only be carried out if the child consents.