Diagnosis often involves a combination of patient history, clinical symptoms, and laboratory tests. Microscopic examination of urine or tissue samples can reveal the presence of needle-shaped crystals. Imaging techniques like X-rays or CT scans may be used to detect kidney stones formed by calcium oxalate.