The actor — who was first introduced in season one of the medical drama — revealed his diagnosis on social media.