I don't know what kind of medicine it was--for the baby--but if it was nonprescription medicine she probably could have given him a dose then that would have lasted through the flight; or if it were an issue, could have not flown just then.
If my son were having asthma problems and someone tried to take his inhaler away, we'd turn around and go home.