Stages of the affinity diagram creation from patients