Medical management of type 1 diabetes