The process of identifying and evaluating pain, its location, intensity, and duration.