Heartworm disease is diagnosed through a blood test that detects the presence of heartworm proteins. Annual testing is recommended, even for dogs on preventive medication.