Genetic testing can be used to diagnose inherited blood disorders, such as sickle cell anemia and thalassemia.