Can you be on military orders with a medical issue?

Of course. Any officer or enlisted is ALWAYS "on orders" of one kind or another, even if they are "standing orders," such as in a permanent duty station.