Z86: Personal history of certain other diseases

Z86.5: Personal history of other mental and behavioural disorders

Sometimes such a disease may cause symptoms to develop later, or symptoms may remain.