It may or may not make a difference, depending on the Referee/Judge involved. More likely, the Referee/Judge will instruct your daughter's dad to dispense the medication as prescribed. But if you keep documenting instances like this, and have truly good, hard evidence for each instance, that may well sway a future recommendation. You should also strongly consider working with an attorney in these matters.
Sign up to receive a 3-part series of useful information and advice about child custody law.