After a few incidents like that I started carrying a small zip lock bag with some soft treats that not only the dogs would like, but something that I might be able to nibble on in case of emergency. Little nutter butter pieces, or worse come to worse part of a sandwich or quarter pounder, or if it is Friday during lent, your fish sandwich that you did not get to finish. If you are a vegan just hope they are Doxies, most will eat veggies.
I would also might suggest a small canned air horn, if you are like me. I carried a junk bag with stuff I might be able to use, normally from the dollar store. Just go there and use your imagination when you walk down the isles. Back to the air horn, most dogs will scurry away from the noise. If you use the treat method, look for a room you can throw them toward the back of and closed the door. If the fire Dept is on the scene, CO2 extinguishers work great, especially with big dogs. Learned that when I was a SWAT medic and one of our Operators went A little over the top when he, “neutralized” a Pitbull when it came around the corner, while we where serving a warrant. So we chose a little less of an deadly method. If your patient‘s home has a window or an outside window or door you can bang on to distract them try that.
These are just a few things I have used over the years. I have also experimented on my dogs also. So there you go.