Rucaparib is used as maintenance treatment in patients with ovarian cancer, fallopian tube cancer, or primary peritoneal cancer that has come back. It is only used in patients who have a certain type of inherited (germline) or acquired (somatic) abnormal BRCA gene. Your doctor will test for the presence of this gene