Bleeding at 19 weeks 2days

Has any one had bleeding at 19 weeks ? I went to hospital to get checked they gave me like a smear test thing they said the cervix was closed and didnt know where the bleeding was coming from and sent me home