38weeks 4 days

I can't to the ER for pain and they check my cervix I was dilated to a 1cm 2 days after I couldn't handle the pain came back again doctors checked me I was contraction 4-5 minutes apart but doctor didn't care he checked my cervix again I was still a 1cm he said I have to be at least 3cm to stay I can't handle the pain anymore idk what to do .