Bill Cosby on The Cosby Show was a doctor who dealt with pregnant woman and he delivered babies on the show.
So he was kind of a pediatrician but more a doctor that delivered babies and took care of expectant mothers before they gave birth.
The pregnant woman would come to his office in his house and then have a checkup before they gave birth to the baby.
Bill Cosby would then go deliver babies when they were ready to be born.
Even though Bill Cosby is in prison right now I still like his show and it's one of the best shows and he was a good comedian and actor.