Thanks for writing to health care magic.
Children vomit after a bout of cough
particularly if their stomach is full.
What was the wrong medicine he had.
Do you mean that he aspirated the medicine after which he developed the problem?
Your kid needs to be taken immediately to the doctor if you feel he aspirated the medicine.
Please take him to the doctor if the symptoms persist or if he develops rapid breathing, chest retraction or nasal flaring or fever
or grunting etc.
Hope this helps.