Refine diagnoses group tree.