Diabetic ketoacidosis and hyperglycemic hyperosmolar state