I had a similar situation with my kid last year. This year she is doing better.
They hv to slowly build their immunity so its all a part of growing up. Its likely your daughter has a wheezing problem. When she has a too much of coughing. she cannot breathe smoothly so she ends up vomitting.
What really helped for me is that I diagonsed abt it early .. And we started using nebulizer (which is very very safe) to handle her wheezing. As soon as she could breathe comfortably. she started sleeping better.
wheezing attacks are at its peak at 5- 6 in the morning time. Elevating the head, by adding pillows helps. this makes the child restless and the child cannot sleep...
The doctor asked us to cut back on Milk products and instead focus on other green veggies cause all of them have ample calcium. And all this really helped, a good diet, medications where need be ...
Hope you find a solution. For us, we got great help fm a doctor here in Narayana hrudalaya.
And its all cause of allgery to certaint hings, dust, pollen, weather change , humidity etc/ As a precaution, we change bedsheets every week in kids room, wash their blankets on a regular basis, and do dusting.