These procedures are not associated with pregnancy loss during the second trimester but they are associated with miscarriages and birth defects in the first trimester. Miscarriage caused by invasive prenatal diagnosis (chorionic villus sampling (CVS) and amniocentesis) is rare (about 1%). Surgery
The effects of surgery on pregnancy are not well-known including the effects of bariatric surgery. Abdominal and pelvic surgery are not risk factors for miscarriage. Ovarian tumours and cysts that are removed have not been found to increase the risk of miscarriage. The exception to this is the removal of the corpus luteum from the ovary. This can cause fluctuations in the hormones necessary to maintain the pregnancy. Medications
There is no significant association between antidepressant medication exposure and spontaneous abortion. The risk of miscarriage is not likely decreased by discontinuing SSRIs prior to pregnancy. Some available data suggest that there is a small increased risk of miscarriage for women taking any antidepressant, though this risk becomes less statistically significant when excluding studies of poor quality.Medicines that increase the risk of miscarriage include:

retinoids
nonsteroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen
misoprostol
methotrexate
statins

Immunizations
Immunizations have not been found to cause miscarriage. Live vaccinations, like the MMR vaccine, can theoretically cause damage to the fetus as the live virus can cross the placenta and potentially increase the risk for miscarriage. Therefore, the Center for Disease Control (CDC) recommends against pregnant women receiving live vaccinations.
Miscarriage, also known in medical terms as a spontaneous abortion and pregnancy loss, is the death of an embryo or fetus before it is able to survive independently. Some use the cutoff of 20 weeks of gestation, after which fetal death is known as a stillbirth. The most common symptom of a miscarriage is vaginal bleeding with or without pain. Sadness, anxiety, and guilt may occur afterwards. Tissue and clot-like material may leave the uterus and pass through and out of the vagina. Recurrent miscarriage may also be considered a form of infertility.Risk factors for miscarriage include being an older parent, previous miscarriage, exposure to tobacco smoke, obesity, diabetes, thyroid problems, and drug or alcohol use. About 80% of miscarriages occur in the first 12 weeks of pregnancy (the first trimester). The underlying cause in about half of cases involves chromosomal abnormalities. Diagnosis of a miscarriage may involve checking to see if the cervix is open or closed, testing blood levels of human chorionic gonadotropin (hCG), and an ultrasound. Other conditions that can produce similar symptoms include an ectopic pregnancy and implantation bleeding.Prevention is occasionally possible with good prenatal care. Avoiding drugs, alcohol, infectious diseases, and radiation may decrease the risk of miscarriage. No specific treatment is usually needed during the first 7 to 14 days. Most miscarriages will complete without additional interventions. Occasionally the medication misoprostol or a procedure such as vacuum aspiration is used to remove the remaining tissue.