A high resolution melting (HRM) technology-based assay for cost-efficient clinical detection and genotyping of herpes simplex virus (HSV)-1 and HSV-2.