However, not all patients have such pain.Why the test is performedYour doctor may order this test if you have abnormal types or numbers of red or white blood cells or platelets on a complete blood count (CBC).This test is used to diagnose leukemia, infections, some types of anemia, and other blood disorders.