A community hospital opened in memory of World War One soldiers almost a century ago has been transformed into new homes.