"all of the people who are wrongfully diagnosed, wrongfully affected by malpractice/surgeries, wrong prescriptions/ poorly managed prescriptions, what about wait times, lack of proper medical equipment, sterilization, quacks? ad nauseum etc" are all factors that affect average life expectancy, and all fit under the heading "quality of health care".

Genes are significant, but I know of no evidence that there is any relevant genetic difference among national populations (there is no country known to have an inherently longer-lived population). Food supply has everything to do with health care. Malnutrition is a medical condition, the cure for which is an adequate diet, and a country that can't provide its people with adequate food is missing the foundation of its health care system.