Personal question

Has anyone else had brown discharge after having a orgasm? I've been put on pelvic rest cause of it. Why doea it happen? What was the outcome from others that had this happen?