The probation order may contain requirements that the offender—
(a) submit to medical, psychiatric or psychological treatment; and
(b) comply, during the whole or part of the period of the order, with the conditions that the court considers are necessary—(i) to cause the offender to behave in a way that is acceptable to the community; or(ii) to stop the offender from again committing the offence for which the order was made; or(iii) to stop the offender from committing other offences.