A doctor who was at the hospital as a patient kicked into action when another expectant mother went into labor.