Medicals are done after you join. Sometimes during the first two weeks they will schedule you for a medical examination at the Medical Commission in Doha. This includes a chest X-ray (to check for Tuberculosis) and blood labs (to check for HIV and Hepatitis). After you pass the medical they will process your Residency Permit (RP). You can do ground school without your RP but you must have it by the time you start SIM. I recommend you do all this medical tests on your own before you head over to Doha to be 100 % sure that you can pass the medical. Your job offer will be cancelled if for some reason you don't pass the medical and you will be sent back home.