Terrorist cell embedded itself within civilians around Al-Quds Hospital, fired from the hospital entrance at IDF soldiers, and was subsequently eliminated
Specific protection of medical establishments and units (including hospitals) is the general rule under IHL. Therefore, specific protection to which hospitals are entitled shall not cease unless they are used by a party to the conflict to commit, outside their humanitarian functions, an “act harmful to the enemy”. In case of doubt as to whether medical units of establishments are used to commit an “act harmful to the enemy”, they should be presumed not to be so used.
This is literally true.
Emphasis mine.
Proportionality is another factor you’re ignoring.
They’re also still required to attempt to limit targeting to avoid civilian casualties and yet they don’t