It was opened in 1848 to provide care but became a place with a dark history.