Refine findByParentId method for diagnosis group tree.