pregnant time in hospital