Occurs during or after a treatment for another infection. For example, a bacterial pneumonia may follow an upper respiratory infection caused by a virus.