Diagnosis of HSRs is primarily based on the clinical presentation and timing of symptoms in relation to drug administration. Medical history, including any known drug allergies, plays a vital role. In some cases, skin testing or in vitro assays may be used to confirm the diagnosis.