Complex sentence: It was a sanatorium from 1875 to 1976 and also served as a hospital, military sanatorium and hospital for invalids before being closed in 1991.
Split into simpler sentences: It was a sanatorium from 1875 to 1976. Also it was a hospital, military sanatorium, hospital for invalids and was closed in 1991.