The hospital really needs to move the patients out immediately if the local military starts military operations from within hospital (which is basically a war crime).
Then, if the commanders force patients to stay by threat of violence to stay as human shields, that's a further war crime. The responsibility of casualties here is more with those using patients like this, than anyone else.