I have T1D and I was at a community gathering yesterday. Nobody had been banned in any way from looking at their phones, but I felt very awkward doing so, to check my glucose, as I realise that it 'looks bad' - and that the people (of all ages) who refuse to use their phones responsibly and appropriately have socially poisoned the well for those who have a genuine need to glance at them.
It's all very well them saying that students with medical conditions who need their phones for monitoring purposes will be allowed to have them (goodness, how generous)... but the negative outworkings of this ruling will be manifold.
Other students will be jealous that Lily is allowed her phone, because "It's not fair" - which will then force Lily to 'justify' needing a medical aid by having to share her personal medical information with anybody who is in earshot. This may then lead to 'othering', gossiping about her 'privilege' and quite likely bullying - as nasty kids always love to seize on any disability or other vulnerability for targeting victims.
Meanwhile, even having been told why Lily needs her phone, some of the less mature ones will struggle/refuse to see further than "it's still not fair", as it's extremely common for able-bodied people to be bitterly jealous of the reasonable adjustments that disabled people are given but obviously not the disability that necessitates them. They'll be looking to catch her out - so if a silent notification happens to pop up for a WhatsApp, text or whatever - even though she ignores it - she'll be accused of messing around on it, because "she was on WhatsApp, and I'm not allowed my phone to go on WhatsApp at school, and it's not fair".
I would much prefer to trust students to use their phones sensibly and appropriately, and be right on it and ban the ones who prove that they can't/won't. Far better to have two groups of the 'trustworthy' and the 'rule-breakers', rather than separate them by 'medical need' and 'jealous'.
ETA - None of this was arguing with or criticising you personally, if that's how it came across (apologies if so) - just the situation with phones for medical needs not being quite as perfect as they might like to assume.