finish by_diagnosis report