Pharmacies in the UK will gain new powers to swap prescription medicines when items are out of stock, without requiring patients to return to their GP.

Staff will be able to dispense the same drug in a different strength or form. Examples include providing two 5mg tablets instead of a 10mg pill, or a cream in place of an ointment. For decades, pharmacists have operated under 1968 Medicines Act rules requiring them to provide exactly the medicine a doctor prescribed.

Public health minister Diana Johnson said the change would reduce patient hassle. "When you go to the pharmacy to pick up your prescription, there is nothing worse than being told you need to contact your GP again because the exact medicine they've prescribed isn't available at that time, or in that form," she said.

The changes will apply across the UK once approved by the relevant parliaments and assemblies. Children in England who miss flu vaccination at school will also be able to receive it at a pharmacy for the first time.

Henry Gregg from the National Pharmacy Association called the measures a step forward but said they do not address root causes of shortages. "These measures are a step forward but do not fix the underlying causes of shortages," he said, adding that the government should take action to prevent manufacturers from favouring other countries when stocks are low internationally.