Nucleic acid-based assay for the diagnosis of viral pathogens