Because of his original purpose, it makes sense that the Doctor wouldn’t have held a Starfleet rank during Voyager.
However, in Prodigy, he still doesn’t have pips. This leads to my questions:
- Can a self-aware hologram hold rank or a non-com position in Starfleet?
- If so, how would the Doctor attaib it?
According to the STO wiki, he doesn’t wear them by choice but does have a rank. That might be a reasonable explanation; I can’t imagine Janeway not at least trying to field commission him.
He would most certainly be assigned a rank if for no other reason than to ensure he (as an asset) is treated by crewmen with care and respect. It is the same approach in logic that militaries and police use with K-9 units. Dogs always outrank the handlers as a further mechanism to ensure proper treatment of the self-aware asset.