14 day period!!!

In June I miss my period July 1st I got my period 6 days. A week later I got my period again and it's been going on for 14 days. I took the test back in June and it came out negative I have hypo thyroidism and I'm wondering if this has anything to do is to why it came out negative and if this is a miscarriage.