A D-Dimer test is a blood test that measures the presence of a protein fragment called D-dimer. This fragment is produced when a blood clot dissolves in the body. Elevated levels of D-dimer can indicate the presence of abnormal blood clotting, which is often associated with various medical conditions, including cancer.