The Secretary of the Air Force may order the hospitalization, medical and surgical treatment, and domiciliary care for as long as necessary, of any member of the Air Force or the Space Force on active duty, and may incur obligations with respect thereto, whether or not the member incurred an injury, illness, or disease in line of duty, except in the case of a member treated in a private hospital, or by a civilian physician, while on leave of absence for more than 24 hours.