A patient at a major Sydney hospital has been left fighting for life after a woman allegedly attacked him with a hammer.