Refined patient statistics functionality.