I think there is a big difference between a child finishing a course of antibiotics where a parent/carer/neighbour/friend should go in to administer the dose - and take the meds in with them, as many need to be stored in a double locked fridge on school premises and, long term medical conditions that require regular medication.
To administer medication there needs to be specific signed documentation from the prescribing GP and the primary carer.
Medication needs to be stored safely - normally in a locked cabinet within a locked cupboard, apart from emergency meds such as those for anaphylactis, asthma and epilepsy, which need to be easily accessible to staff but locked away from pupils.
Medication given by schools needs to be administered with 2 members of staff present, one to give the drug and one to check and countersign.
The staff and school have to have all the correct procedures in place. To cover themselves and keep everyone safe.
It is not as simple as just going to the office at playtime for a spoonful of whatever.
Schools priority is to educate and care for the pupils, I don't think discriminating against working parents, by not being able to cover the staffing and legal requirements to give short term meds can also be their responsibilty.
A child who requires medication long term should absolutely be given it at school and all the correct procedures followed and this will make up part of the child's EHC plan. Otherwise the CHILD is being descriminated against.