Is a person who does not visit a dying relative a sociopath?

not exactly. it is possible, but it is also possible that the person didn't care about the relative or it was impossible to get there.