I believe Dr. Beverly Crusher held the rank of Commander on the Enterprise. I suspect the rank of other scientists & doctors would depend on their accomplishments & time in the Starfleet service.
an upper-middle-class citizen.