Off course it’s a fallacy to try and grade importance/need of medical assistance on age basis.
Oh no it isn't!
Its called "triage" and is an age old and accepted medical concept that is practiced on a daily basis in hospitals, at accident scenes etc.