Hospitals in Israel are generally guarded the same way hospitals in the US are: by police and security guards. As opposed to Hamas, the IDF doesn't use hospitals as bases. They don't build terror tunnels under hospitals. They don't take hostages to hospitals and kill them there. They don't shoot from hospitals. They don't store weapons in hospitals. Hamas does all of those things.