I won't say you can't be released for it, as that is beyond my knowledge. I can tell you that I wasn't. I had bi-lateral inguinal hernias, went for the day surgery had some light duties and physio. Back to full duty in about 4 months, full strength about 6 months.
This was my case, and results may vary, but for me, having the repair done was a fairly straight forward process. Whatever you do, don't brush this off and try to suck it up. It will only get worse, and the risks can be pretty freaky. Get it looked at.
Hope this helps.