updated the fix_opd_diagnosis script