Evaluating the outcome of endodontic treatment