added diagnosis api