Prophylaxis is preferred to treatment, as venous thromboembolism can be hard to diagnose and, in the case of PE, there is often no warning that the patient is at risk. Death due to PE is often immediate or occurs within 1 to 2 hours of onset.