Hepatitis B virus may be transmitted to the neonate immediately after delivery or, less often, to the fetus transplacentally; test all pregnant women for HBsAg to determine whether precautions against vertical transmission are needed.