Diagnosis of G6PD deficiency is usually made through a blood test that measures the activity level of the G6PD enzyme. It is particularly important to diagnose this condition before administering any potentially harmful drugs. Genetic testing can also be employed to confirm the presence of mutations in the G6PD gene.