RH negative

Has anyone had to get blood work done for being RH negative and found out the gender that way? If so how accurate is it? Also has anyone had the RHOgam shots for it? Any problems? My husband is RH positive and I am RH negative. We just found out we are having a girl.