ALBANY, N.Y. — Drug overdose patients rushed to some emergency rooms in New York’s Hudson Valley are asked a series of questions: Do you have stable housing? Do you have food? Times and location of overdoses are noted too.

The information is entered into a new overdose-tracking system that provides near real-time glimpses into the ravages of the opioid-fueled drug crisis. The Hudson Valley Interlink Analytic System is among a number of surveillance systems being adopted around the country by police, government agencies and community groups. While the number of drug overdose deaths appears to have fallen nationally in 2018 for the first time in nearly three decades, the overdose death rate remains about seven times higher than a generation ago.

If there’s a spike in overdoses, the system will send text alerts to health administrators and community workers. And system users can see what drugs are being abused for faster and focused responses to the ever-evolving problem.

“We can’t get ahead of a situation that’s already passed. This kind of information has to be given almost instantaneously or else the narcotics that we’re trying to track have already been sold, and they’re already on to the next batch,” said Sgt. Julio Fernandez of the New York National Guard’s Counterdrug Task Force, which helped usher in the system.

The Hudson Valley system was adopted earlier this year by two hospitals north of New York City serving areas hard-hit by drug abuse: St. Luke’s Cornwall Hospital in Newburgh and Ellenville Regional Hospital. Administrators are talking to other hospitals in the region about signing up.

When a patient comes in, a nurse or another worker enters data about the overdose and the drug. Patients retain their legally required anonymity, but system users can still glean general information about the age, gender and housing status of people in trouble.

The idea is to “get that information out there as efficiently and as quickly as we can,” said Daniel Maughan, a senior vice president at St. Luke’s.

The data has helped track the rise of fentanyl being laced into cocaine, Fernandez said. Dawn Wilkin, director of prevention services at Catholic Charities of Orange, Sullivan, & Ulster, said the system has guided workers on where to conduct needle cleanup within days, instead of waiting a week or more.

Wilkin said there have been no text alerts to warn of a spike in overdoses sent out yet, likely due in part to a drop in overdoses locally.

Participation by patients is voluntary. If someone is unresponsive or unwilling to answer questions, workers enter the data that’s available. Kathy Sheehan, director of emergency and trauma services at St. Luke’s, said many patients cooperate, though there are just as many others who are not willing to speak.

“They’re private,” she said, “they’re maybe afraid of the repercussions.”

Around the country, workers on the front lines of the opioid crisis are looking to speedier data access as part of their prevention strategy.