added adding of diagnosis