Refine diagnosis_group groovy script.