long term care options

I have some major health issues and may be hospitalized long term. My spouse and I have a dog but I am the primary caretaker of the dog because my spouse has a disability. Also the hospital is 2 hours away from where we live. I don't see it possible that our dog can continue to live at our home while this is ongoing. My inlaws said they could watch the dog but I don't know how long they would. Does anyone have suggestions of what to do? My worst case scenario is surrendering her to the humane society. The local HS has all their dogs fostered because they don't have their own kennel space so it's not like she'd be put down. We actually adopted her from the HS last summer. It's breaking my already broken heart.