Along those lines it seems like an artificial pancreas could be made in a similar fashion and end Type 1 diabetes.
This is normally only done in patients with brittle diabetes because of the need for immunosuppression. This is a less complex procedure than a full pancreas transplant.