When she becomes ill she expects Ellen to nurse her, which Ellen dutifully does up to the old lady's death.
Which Ellen dutifully does up to the old lady's death. This is what she expects Ellen to nurse her. She becomes ill.