It's crazy that we've kind of been capable of this for almost a decade now. You can buy all the parts to make an artificial pancreas, and use open source software from GitHub to get them to talk to each other, but none of the biotech giants want to put the parts in a box and sell it as an artificial pancreas because the liability would be insane. One little firmware glitch could literally kill a ton of kids in their sleep.