diagnosis

The careful finding of what problem or illness is wrong.