I would think if you were caught wetting the bed during basic traning,you will be teased about by the other recruits,and if your NCOs became aware,then there is a good chance they will keep an eye on things.
So yes there is a good chance that you would end up having a medical,but i honestly DO NOT see them prosicting you,as they would need to show that you lied in your application,and if there is nothing on your medical records of it in recent times it could be caused by stress.
The best of luck to you in the military,and i hope you get things sorted out soon.