Neurosis is the result of a conflict between the ego and its id, whereas psychosis is the analogous outcome of a similar disturbance in the relation between the ego and its environment (outer world).
psychosisquotes
A transference neurosis corresponds to a conflict between ego and id, a narcissistic neurosis corresponds to that between between ego and super-ego, and a psychosis to that between ego and outer world.
ego / id / narcissistic / neurosis / psychosis