Advice

I was chocking on air and struggling to breathe I went to the doctors and they said I have tonsillitis, but my chest and ribs are killing me today and yesterday. Is it possible it's the wrong diagnosis and I actually have a chest infection?