There is zero evidence that Hamas used hospitals for military purposes.
Unless you are saying that people use schools to get education and hospitals to get medical treatment, well then yes.
Is this what you want to use your time for?
https://en.wikipedia.org/wiki/Alleged_military_use_of_al-Shi...