Pulmonary embolism occurs when one or more arteries in the lungs become blocked by blood clots, usually originating from deep veins in the legs. It can cause sudden shortness of breath, chest pain, and coughing up blood. While potentially life-threatening, prompt treatment with anti-clotting medications can greatly reduce the risk of death if pulmonary embolism is diagnosed. A variety of tests are used to diagnose pulmonary embolism including chest x-rays, CT scans, ventilation-perfusion scans, and angiograms.