The San Francisco Department of Public Health will open what could become the nation’s first legal safe injection sites.