If i have to give blood for medical reason on a fasting day, does it void my fast? The test does not requier me to eat or drink anything

No it not invalidate your fast.
https://www.sistani.org/english/qa/01137/