Combating dual loyalty

If you were a medical practitioner- nurse, PA, or doctor- working in a jail, how might you combat dual loyalty? Is it necessary to work against dual loyalty or necessary while working in jails?