Diagnosis of hepatic impairment involves a combination of clinical assessment, laboratory tests, and imaging studies. Blood tests to measure liver enzymes (such as AST and ALT), bilirubin, and albumin levels are commonly used. Imaging techniques like ultrasound, CT scans, and MRI can help assess liver structure and detect any abnormalities. In certain cases, a liver biopsy may be required to determine the extent and nature of liver damage.