Does death cure all ills?

In a previous answer, I mentioned the possibility of killing a character and restoring them to life as a possible method of removing conditions from them. On reflection, I have no idea whether this works or not, and I can’t find anything in my books to prove or disprove it.

Are some or all conditions removed when a character dies? If the answer is some, which ones?