you want to work in Canada for more than six months, and you lived in a designated country or territory for six consecutive months during the year right before the date you intend to enter Canada.
If any of the above is applicable to you, then you need to get a medical exam, otherwise medical exam is not needed.