It's up to IDRC, then you do what they say or you go back to court and the Judge won't be happy.
Only if you get convicted and irdc mandates it for you as part of the treatment plan. Best bet is to get yourself a good lawyer and then you will have the best chance of eliminating this possibility.