The diagnosis of G6PD deficiency can be confirmed through various methods such as enzyme activity assays, genetic testing, and histological examination of blood smears. Specific staining techniques can highlight the presence of Heinz bodies, which are aggregates of denatured hemoglobin, indicating oxidative damage in red blood cells.