A dictionary of medicine from 1882 suggests that common usage of the word has become more narrow, not less, and that there was some level of debate about the technical meaning [1]. Stedman's Medical Dictionary (1920) gives a more modern definition, "a disease attacking nearly simultaneously a large number of people", without restriction to infectious diseases.
[1] https://www.google.co.uk/books/edition/A_Dictionary_of_Medic...
but short sightedness caused by lack of sunlight exposure is infectuous.
why do you think kids are being kept at home? because of their parents. and why do the parents keep them at home? because of a cultural and societal shift in behavior. and why is this shift happening? because some ideas floating around have infected a large enough number of people.
human ideas (or memes if you like) are precisely like viruses, and if short-sightedness is caused by some ideas being spread then it's no different than it being an actual virally caused disease.
In this case that's not so though, the etymology is from the Greek '(upon|near|against) the people, and does not necessarily refer only to disease.
What the server /accepts/ is left to configuration (some still recommend, "Strict in formulating the output, loose in interpreting the input"). What is "legitimate" is another matter, and will have to consider the term's curriculum, also because other proposals are faulty (e.g. conventionalism: "/whose/ convention?").
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3373038/#!po=96...
Medicine started to use already existing word, which is fine, but it does not mean original meaning must be erased.
Please do also see the sibling post from member 'one-more-minute'.