SIMPLE SOLUTION: Stop stocking Gazan hospitals with Hamas operatives who are using those facilities as their miltant centers and hide-outs (with easy access to the terror tunnels built beneath them) and weapons/rockets depots.
There. Problem solved.