irregular bleeding

So on April 10 I got my first depo shot about three days ago I started to get brown discharge ive been having pain on the right side of my pelvis and just started my period I also haven't had my period since march and at the beginning of April I was admitted to the hospital because they thought something was wrong with my appendix but I have a 24mm cyst on my right ovary.. if anyone has and idea please help thank you