An endocrinologist is a specially trained doctor who can diagnose and treat diseases that affect your glands, hormones and your endocrine system. The pancreas is part of the endocrine system, and insulin is one of the central hormones the body needs to function properly.