I have very severe allergies that make me cough all

Patient: I have very severe allergies that make me cough all the time I constantly cough till I start vomiting . Why am I vomiting white foam? And why does it hurt so bad to do?

Doctor: