Miscarriage or cancer?

Patient: I had vaginal bleeding that started 12 days before my period. It stopped after 3 days for 2 days and then was heavy. Did I miscarry or was it something else? I am still in pain but the bleeding stopped over a week ago

Symptoms: Vaginal bleeding, vaginal pain, abdominal pain, pain during sex

Doctor: