I am pregnant in four month I had a bleeding befor two weeks it is stopped now but still I have a little pain like a period and little brown discharge maybe dark color My baby is ok and i am taking a treatment like injection and tablet

can anyone please tell me it is happen this miscarried urging ppregnancy