Depending on the school there's also different ways of handling it.
A friend of mine in Melbourne has her step son at a very good private primary. There is a child there who has anaphylatic reactions to various products - particularly nuts. Whilst there are rules in place re no nut food...