Could There Be a Medical Cause Behind My Panic Attacks?

I have been having a lot of medical problems lately, and now it seems like I am starting to get panic attacks as well. I am wondering if it is possible that the two are related. Do some of the possible panic attacks causes include medical conditions or the medications that are used to treat them? I am trying to figure out if the medical problems might be making me more susceptible, or if maybe they are just stressing me out so much that I am starting to have these attacks. Hopefully when I get my health straightened out these attacks will stop as well.