The d-dimer test is a blood test that measures the level of d-dimer in the blood to help diagnose and rule out the presence of blood clotting disorders such as deep vein thrombosis (DVT) and pulmonary embolism (PE). The d-dimer test is particularly useful when a doctor suspects the presence of a severe blood clot, especially in the lung or deep within a vein of the leg or pelvis.