You are saying that your daughter had a collapsed lung and the treatment was a pneumonia shot? That doesn't even make sense to me.
There are various reasons a lung can collapse and there are varying degrees of how much of the lung is actually collapsed. Depending on that is how doctors treat the collapse of a lung. I have never heard of treating a collapsed lung with a shot until your post. Are you sure you understood the doctors correctly?