Great advice above... will add...
When you do come back, whether soon or after a procedure and full rehab, do NOT throw off the mound when there is pain. Also, three weeks might be a bit short to go from a full shut-down to a pen on a mound, IMO.
Sounds like you have some gifts and a work ethic. Be smart with it and take care of those gifts. Don't pitch thru pain and don't rush back. Do make sure, if at all possible, you are seeing a reputable sports ortho. It can make all the difference in the world for your baseball future.
I hope you find a good path back!