A healthcare worker at HMP Doncaster who exploited her position to start a relationship with an inmate and steal medication has been jailed.