A Doncaster healthcare worker who used a false name and a fraudulent phone line to communicate with a prison inmate she was in a relationship with has been jailed.