Edit the following sentence to make it grammatically correct: "The patient had to put on a ventilator to surgery"
The patient had to be put on a ventilator for surgery.
Complete the following task based on the instruction and optional input provided.### Instruction:
Edit the following sentence to make it grammatically correct: "The patient had to put on a ventilator to surgery"

### Output:
The patient had to be put on a ventilator for surgery.