Complex sentence: In 1989, while working on the set, O'Connor was hospitalized and had to undergo open heart surgery, which caused him to miss four episodes at the end of the second season.
Split into simpler sentences: In 1989, while working on the set, O'Connor was hospitalized and had to undergo open heart surgery. This caused him to miss four episodes of the show at the end of the second season.