ship's doctor syndrome
This describes a medical provider who cannot find land employment due to incompetence, personality or addiction, so they must seek work in a less desirable location in shipping or remote prisons.
The pill popping doctor working in a Mississippi prison is suffering from ship's doctor syndrome.