What you describe should work as long as you are able to document every cent. Otherwise the senior can be deemed ineligible for Medicaid benefits until the nursing home costs equal the amount transferred. The way this works is that Medicaid creates a period of ineligibility for benefits for a period of time based on the amount transferred. If you can show that the funds transferred were used for the elder, they will be deemed as having been returned and as if they had never been gifted in the first place. But the burden of proof is on you.