Responding to a couple different posters on this thread, but the comments apply broadly.
I do not see why you would ever have to disclose your diagnosis to anyone (unless you want to). I'm fairly confident your doctor could write a letter for detailing the accommodations required to support your health without specifically saying the diagnosis.
I'm worried about what my peers and preceptors will think. Who cares what they think. I know that's easy for me to say, but if people think less of you for prioritizing your own well-being then these aren't the people you want to be working with as a future physician anyways. Unfortunately healthcare professionals often fail to extend the compassion they have for their patients to their colleagues. Just my 2 cents, but the 'old school' of medicine with infallible, near god-status physicians is falling away, we're all human here. You don't want to end up matching, training, or practicing somewhere with physicians that don't prioritize well-being. Ironic that we're a profession of healers but struggle to support our own colleagues eh?
I'm wondering if anybody has had to do this before? I have multiple friends that have received accommodations throughout their medical education. I would highly recommend speaking with your school's OSA (Office of Student Affairs) for guidance through the process. You won't be the first student to request this, they will be able to provide guidance. If you prefer to maintain a distance from your college of medicine, another option is to contact your provincial medical association's physician health program.
How did you approach the topic with your preceptors? They don't have a right to know what your accommodations are. For the most part, staff don't know students' schedules, so you can just tell them what your shift is and hit the road when you're done.
A Couple other thoughts:
This thread seemed to take a dive towards residency really quick. My advice would be focus on one thing at a time, clerkship first then residency. It is definitely a good idea to think about career paths that promote your well-being. If you're passionate about IM but hesitant about the residency, you should consider a family med - hospitalist rotation in clerkship. It is honestly fantastic, you essentially function as a GIM but with all the lifestyle freedom being a fam doc provides (and only a 2 year residency). It compensates extremely well to boot.
$$$$$$ - Having a disability can qualify individuals for additional financial support from their university, increase the amount of grants you receive on student loans, have beneficial tax implications with the CRA, and even get you an extra $750/mo on CESB. These programs exist for a reason, utilize them!
At the end of the day it's your life and your health. Don't worry about what your colleagues think, do what is best for you.