how to diagnosis