changing hospitals

Has anyone had to change hospitals towards the end of their prenatal care? I may need to move and have no choice but I am due to deliver in my current city. Can I switch doctors and everything? Will I be able to get the OB deposit that I paid at
My current hospital!?