Positive after miscarriage

B

How long after an early miscarriage (under 6 weeks) will a test still be positive?