Diagnosis of HBV and HCV infections involves blood tests to detect viral antigens, antibodies, and genetic material. For HBV, the presence of HBsAg (Hepatitis B surface antigen) indicates infection. For HCV, anti-HCV antibodies and HCV RNA tests confirm the presence of the virus. Imaging studies and liver biopsies may be conducted to assess liver damage and the presence of cancer.