How is their job defined. Are they a doctor (or whatever medical job they have)...or a soldier?

I was wondering because I noticed medical troops seem to be in their own corps.