Thank you for your question.
During surgical anesthesia, respiratory reflexes such as gag reflexes that normally prevent vomited food or gastric juices from entering the lungs are suppressed. Food, stomach juices, blood or saliva can enter the trachea, the tube that leads to the lungs. Aspiration of the substance into the lungs can cause respiratory problems. Aspiration can occur in people undergoing emergency surgery who have recently eaten, people who are obese or pregnant, or those under deep anesthesia.
Generally, recovery time can vary depending upon your general health, promptness of medical attention, and severity of the infection. A majority of sufferers recover completely within a few weeks, with residual coughing persisting some weeks after the infection has gone. Speak to your doctor who knows your health history and can provide more detailed information.