Complex sentence: The function as an asylum was taken over by Tone Vale Hospital in 1897, after which Mendip Hospital provided services for long-stay elderly and mentally infirm patients.
Split into simpler sentences: The function as an asylum was taken over by Tone Vale Hospital in 1897. After which it provided services for long-stay elderly and mentally infirm patients.