I am asking for chest X-ray by immigration department. I am 19 weeks pregnant. Is it 100% safe to do chest x-ray. I am really worried about is baby.

Safe. Don't worry. No single diagnostic x-ray contains enough radiation to put the fetus at significant risk. You need a lot of chest x-rays to really increase that risk. Take care!