If it is the exact same medication, I think it is alright. However, if it is a cough and the child has not recovered after finished the prescribed medication, I would go back to the doctor as it seemed like the medication is not working. Would want to try another medication instead if there is no signs of recovery.
Read more