Medical certificate for residence permit in Morocco

I'm a student in Rabat. I want to apply for residence permit. Please what test will I do before I am given medical certificate. What if any of the test is positive? Thanks

How do I get the certificate? What would be tested? How do I know I pass? Can my residence be denied in that basis? Thanks

@sanele2 hi, how was your medical check? What did they check on you?