Generally speaking you should not go against what your probation officer tells you unless and until you can prove that what they are telling you is not correct or you can get before a Judge to allow what is going on.  I would seek some guidance from your criminal attorney that defended you n the matter.  There are conditions of probation that were set after you pled guilty.  Those conditions need to be read and understood.  If your doctor thinks that this form of treatment is the only form that can help you with your problem then you may have to get an affidavit from him or her and petition the court to allow the treatment.  Good luck.