updated the outpatient_diagnosis script