Urinalysis is a test to determine urine content and can detect diseases, especially kidney-related issues, and drug abuse. Kidney function is assessed through various methods including analysis of urine characteristics, chemical composition, and microscopic examination, with abnormalities indicating potential health problems. Key indicators include the presence of red blood cells, white blood cells, proteins, and specific gravity, alongside tests for substances like glucose and ketones.