Complex sentence: It closed in 1702 and in the 19th century the old hospital buildings were demolished, except for the hospital chapel, dedicated to St John the Baptist.
Split into simpler sentences: It closed in 1702 and in the 19th century the old hospital buildings were demolished. The only hospital building to survive was its hospital chapel, dedicated to St John the Baptist.