Take medical first. Then with the medical receipt and visa copy go to emigration office.You can extend your visa from there.Take your ATM card also with you for payment.Good Luck