If you know the surgery is coming, you can donate blood to yourself.
I've seen that in action. You get “blood”. Not necessarily YOUR blood.