Antibiotic choice and duration of treatment should be based on safety and efficacy in pregnancy.