The addiction treatment program at Highland Hospital’s emergency room is only one way that cities and health care providers are connecting with people in unusual settings.

Another is in San Francisco, where city health workers are taking to the streets to find homeless people with opioid use disorder and offering them buprenorphine prescriptions on the spot.

The city is spending $6 million on the program in the next two years, partly in response to a striking increase in the number of people injecting drugs on sidewalks and in other public areas. Most of the money will go toward hiring 10 new clinicians for the city’s Street Medicine Team, which already provides medical care for the homeless.

Members of the team will travel around the city offering buprenorphine prescriptions to addicted homeless people, which they can fill the same day at a city-run pharmacy.