Sword attacker to leave hospital