Welcome to HCM,
You suffered recently mycoplasma
Pneumonia which is Atypical Pneumonia
and took treatment for it.
You acquired a klebsiella Pneumonia,please do not worry your respiratory infection can be treated with suitable antibiotics.
klebsiella micro organisms are usually present in hospital environment that is why visiting hospital to a patient may be source of infection and these are called hospital acquired Pneumonia or Nosocomial Pneumonia.
It is possible that atypical Pneumonia like Mycoplasma may reduce immunity transiently and klebsiella Pneumonia was acquired.
Other condition like compromised immunity can predispose to hospital acquired Pneumonia, like alcoholism
,old age etc.
You are not contagious once the infection is treated with proper antibiotics.There are very good drugs available even for resistant one take proper treatment and you will recover soon.
Please take care in future