the hospital was closed during the spanish independence war