Pneumonia is an infection in your lungs and when you have it, the x-rays show a shadow in your lungs.
Since this is an serious infection you may be weaker than before and it would take some time to completely recover.
After I had pneumonia last year I was really weak and got sick very often, almost every month. I had a lot of problem with shortness of breath and dry cough, I spent months without able to walk a block! There were 2 times that I got way too sick so I asked my doctor to get an x-ray just to make sure that the pneumonia wasn't back. I didn't get it again, and the x-ray helped me stop worring about that.
I'm guessing you are getting sick because you are still weak but just to make sure, I would recommend you to get an x-ray.
go to nature sunshine on the net and look up colloidal silver order this and take this for pneumonia as you would antibiotic (a teaspoon in a very small amount of juice 1/2 ounce) every eight hours for three to seven days until the mucus that you cough up is clear (not yellow,green or brown) when the mucus clears this lets you know that the infection is gone. Stop taking the colloidal silver even though the cough may still be there and you may be coughing up clear mucus. Again, pneumonia is there when the infection is there. I've had aspiration pneumonia 5 times so I know. You also need to get on a probiotic. I recommend Dr. Ohhira's probiotic because antibiotics kill the good bacteria in the body and you'll experience yeast infection and many other illnesses. You have to know what questions to ask because doctors don't volunteer this info. Last but not least, look up bioactive nutrients on the net, call them and let them know your symptoms they should help you.
I don't think that is necessarily related to your heart. I've had those occassional sharp pains and it does sound like a nerve. Sometimes moving positions makes it better. Like something isn't lined up perfect, or getting pinched.
I personally have an irregular heartbeat and it is not sharp pains. It is a heaviness, sometimes a fluttering, but not sharp pains. And it is always in one spot, right atop my heart. Not around the ribcage.