The diagnosis is mainly based on the use of polymerase chain reaction for the detection of viral ribonucleic acid in the sputum or tracheal fluids.