Don't know about the vomiting. If you don't have insurance, then ask the hospital about financial assistance programs. Usually, they have ways to pay next to nothing
Did it cost you 4k or the insurance? If you had to pay 4k out of pocket, then you could still look into financial assistance.
Hernia surgery isn't bad I hear.
good luck