Something J used to do was to vomit at will.
He would either cough and cough until he was sick or he would find where I had hidden his favourite foods and gorge on them until he was sick - then gorge some more. He had a trick of drinking all the milk from the fridge - sometimes four litres at a time, and he would then vomit this up in the garden.
I am pretty sure it is a sensory thing and also a control issue - he can make himself sick at will which in turn gives him pleasure.
Now, this behaviour stopped a while ago, but as of yesterday evening he has started to do it again. I hear him coughing away and then trying to retch. When he does bring something up he starts laughing and giggling and is very happy with himself.
I do know this is not a virus as when he has had a vomiting virus he is very lethargic and lies on the floor in a foetal position making very low groaning noises and little whimpers.
So I am now finding little puddles of vomit around the house. The bleach is therefore out in force yet again!