Just a few years ago, children with type 1 diabetes reported to the school nurse several times a day to get a finger pricked to check whether their blood sugar was dangerously high or low.