Yeah, if only Hamas had killed all the patients, bombed the ambulances and expelled the doctors at gun point like the IDF did, I'm sure it wouldn't have been a problem.
It's not providing any medical services anymore. Because what need would anyone in Gaza have for medical services?
Whether Hamas had or didn't have anyone hiding there, at least it used to have doctors treating children's shrapnel and bullet wounds, but not any more.