Critical Care (Star Trek: Voyager)

[3] The Doctor's mobile emitter is stolen from Voyager by an alien trader named Gar and sold to an overcrowded hospital run by the hardnosed Administrator Chellick.

When the Doctor is activated and told to get to work on the patients of overcrowded and underequipped level "Red", he protests his kidnapping, but must comply due to his Hippocratic Oath.

The Doctor is able to convince the nurses to provide him with extra doses of medicine, which he smuggles to the lower level and administers to Tebbis and others.

With this leverage, the Doctor convinces Chellick to move the low-TC patients, including himself, to level Blue to receive care.

Back aboard ship, the Doctor considers if his ethics subroutines have failed as he willingly infected Chellick, but Seven of Nine assures him that they did not, which means he acted entirely of his own accord.