The test is typically ordered during the first trimester of pregnancy, around 28 weeks of gestation, and after delivery if the baby is Rh-positive. It may also be ordered if the patient has had a blood transfusion with Rh-positive blood or if they have had a miscarriage or an ectopic pregnancy.